@font-face { font-family: Tajawal; src: url('assets/Tajawal-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Tajawal; src: url('assets/Tajawal-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
:root { --cream: #fef7ed; --surface: #fffcf8; --ink: #0f172a; --muted: #625d57; --red: #bc2936; --line: #e9ded2; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; color: var(--ink); background: var(--cream); font: 400 18px/1.9 Tajawal, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 4px; }
a:hover { color: var(--red); }
a:focus-visible { outline: 2px solid var(--red); outline-offset: 6px; }
.wrap { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: fixed; top: -80px; right: 16px; padding: 8px 16px; background: var(--ink); color: white; }
.skip:focus { top: 12px; }
.header { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 20px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; font-size: 23px; line-height: 1; font-weight: 700; text-decoration: none; white-space: nowrap; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand b { color: var(--red); }
.back { font-size: 15px; }
.legal-heading { padding-block: 64px 40px; }
.legal-heading > p { font-size: 14px; color: var(--muted); margin: 0 0 16px; }
h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.4; margin: 0 0 16px; }
.legal-heading .intro { max-width: 760px; font-size: 20px; line-height: 1.8; margin: 0; }
.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; padding-bottom: 64px; align-items: start; }
.contents { position: sticky; top: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 24px; }
.contents strong { display: block; font-size: 16px; margin-bottom: 12px; }
.contents a { display: block; padding-block: 8px; font-size: 15px; line-height: 1.6; color: var(--muted); text-decoration: none; }
.contents a:hover { color: var(--red); }
article section { border-top: 1px solid var(--line); padding-block: 28px; }
article h2 { font-size: 26px; line-height: 1.5; margin: 0 0 16px; }
article p { color: var(--muted); margin: 0 0 16px; overflow-wrap: anywhere; }
article p:last-child { margin-bottom: 0; }
article a { color: var(--red); }
.footer { border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding-block: 28px 36px; font-size: 14px; color: var(--muted); }
.footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer [aria-current=page] { color: var(--ink); font-weight: 700; }
.footer small { font-size: 12px; }
@media (max-width: 800px) {
  .legal-layout { grid-template-columns: 1fr; gap: 32px; }
  .contents { position: static; }
  .contents a { display: inline-block; margin-inline-end: 24px; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 40px); }
  .header { min-height: 80px; padding-block: 16px; gap: 16px; }
  .brand { font-size: 20px; gap: 8px; }
  .brand img { width: 36px; height: 36px; }
  .back { font-size: 13px; }
  .legal-heading { padding-block: 40px 32px; }
  .legal-heading .intro { font-size: 18px; }
  .contents { padding: 20px; }
  .contents a { margin-inline-end: 16px; }
  article h2 { font-size: 24px; }
  article p { font-size: 17px; }
  .footer { align-items: start; flex-direction: column; }
}
@media (max-width: 360px) {
  .header { flex-wrap: wrap; gap: 12px; }
  .back { padding-inline-start: 44px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
