@font-face {
  font-family: "Tajawal";
  src: url("assets/fonts/Tajawal-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Tajawal";
  src: url("assets/fonts/Tajawal-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Tajawal";
  src: url("assets/fonts/Tajawal-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --navy: #001219;
  --deep-teal: #005f73;
  --teal: #0a9396;
  --mint: #94d2bd;
  --sand: #e9d8a6;
  --ochre: #ca6702;
  --canvas: #f5f8f7;
  --surface: #ffffff;
  --surface-soft: #edf4f1;
  --text: #102f35;
  --muted: #45666a;
  --line: #c2d2ce;
  --focus: #ee9b00;
  --shadow: 0 18px 55px rgb(0 18 25 / 8%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  min-width: 280px;
  background: var(--canvas);
  color: var(--text);
  font-family: "Tajawal", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 1.0625rem;
  line-height: 1.85;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--deep-teal);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 0.08em;
}

a:hover {
  color: var(--ochre);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  z-index: 50;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 20;
  border-block-end: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  background: color-mix(in srgb, var(--canvas) 92%, transparent);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100% - 40px));
  min-height: 84px;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

.brand span {
  display: grid;
  line-height: 1.2;
}

.brand strong {
  font-size: 1.08rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.language-switcher {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.language-switcher button {
  min-height: 44px;
  padding: 8px 16px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
}

.language-switcher button[aria-pressed="true"] {
  background: var(--deep-teal);
  color: #fff;
}

main {
  width: min(940px, calc(100% - 40px));
  margin-inline: auto;
}

.policy[hidden] {
  display: none;
}

.policy-hero {
  padding-block: clamp(48px, 8vw, 92px) 44px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--deep-teal);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.policy-hero h1 {
  max-width: 780px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.25rem, 6vw, 4.25rem);
  line-height: 1.13;
  letter-spacing: -0.035em;
}

.lead {
  max-width: 780px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.12rem, 2.2vw, 1.34rem);
  line-height: 1.75;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-block-start: 26px;
  color: var(--muted);
  font-size: 0.92rem;
}

.meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.meta-row span::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  content: "";
}

.summary {
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid color-mix(in srgb, var(--deep-teal) 32%, var(--line));
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.summary h2 {
  margin: 0 0 16px;
  color: var(--deep-teal);
  font-size: 1.55rem;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-inline-start: 32px;
}

.check-list li::before {
  position: absolute;
  inset-block-start: 0.48em;
  inset-inline-start: 0;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: var(--mint);
  color: var(--navy);
  content: "✓";
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
}

.contents {
  margin-block: 34px 14px;
  padding: 26px 30px;
  border-inline-start: 4px solid var(--ochre);
  background: var(--surface-soft);
}

.contents strong {
  display: block;
  margin-block-end: 10px;
}

.contents ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 30px;
  margin: 0;
  padding-inline-start: 26px;
}

.contents a {
  font-weight: 500;
}

.policy > section {
  padding-block: clamp(34px, 6vw, 62px);
  border-block-end: 1px solid var(--line);
}

.policy > section h2 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 18px;
  color: var(--navy);
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  line-height: 1.35;
}

.policy > section h2 span {
  color: var(--ochre);
  font-size: 0.82em;
  font-variant-numeric: tabular-nums;
}

.policy p,
.policy li {
  max-width: 78ch;
}

.policy p {
  margin-block: 0 16px;
}

.policy ul:not(.check-list):not(.link-list) {
  display: grid;
  gap: 8px;
  padding-inline-start: 28px;
}

code {
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--deep-teal);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88em;
  direction: ltr;
  unicode-bidi: isolate;
}

.notice {
  margin-block-start: 24px;
  padding: 22px 24px;
  border-inline-start: 4px solid var(--ochre);
  background: color-mix(in srgb, var(--sand) 42%, var(--surface));
}

.notice strong {
  display: block;
  margin-block-end: 6px;
  color: var(--navy);
}

.notice p {
  margin: 0;
}

.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
}

.link-list a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
}

.contact-section {
  border-block-end: 0 !important;
}

address {
  display: inline-grid;
  gap: 4px;
  padding: 20px 24px;
  border-radius: 16px;
  background: var(--deep-teal);
  color: #fff;
  font-style: normal;
}

address a {
  color: var(--mint);
  direction: ltr;
  unicode-bidi: isolate;
}

address a:hover {
  color: var(--sand);
}

.site-footer {
  width: min(940px, calc(100% - 40px));
  margin-inline: auto;
  padding-block: 30px 50px;
  border-block-start: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

@media (max-width: 680px) {
  html {
    scroll-padding-top: 144px;
  }

  .header-inner {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    width: min(100% - 28px, 940px);
    padding-block: 12px;
  }

  .brand {
    align-self: flex-start;
  }

  .language-switcher {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .language-switcher button {
    min-height: 46px;
  }

  main,
  .site-footer {
    width: min(100% - 28px, 940px);
  }

  .policy-hero {
    padding-block-start: 42px;
  }

  .policy-hero h1 {
    font-size: clamp(2.1rem, 13vw, 3.1rem);
  }

  .summary {
    border-radius: 18px;
  }

  .contents {
    padding: 22px;
  }

  .contents ol {
    grid-template-columns: 1fr;
  }

  .policy > section h2 {
    align-items: flex-start;
  }

  .link-list {
    align-items: stretch;
    flex-direction: column;
  }

  .link-list a {
    border-radius: 12px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #001219;
    --surface: #062a33;
    --surface-soft: #03212a;
    --text: #fff4d6;
    --muted: #c2d7d1;
    --line: #31545b;
    --shadow: 0 18px 55px rgb(0 0 0 / 22%);
  }

  a,
  .eyebrow {
    color: var(--mint);
  }

  .policy-hero h1,
  .policy > section h2,
  .notice strong {
    color: var(--sand);
  }

  .language-switcher button[aria-pressed="true"] {
    background: var(--teal);
    color: var(--navy);
  }

  .notice {
    background: color-mix(in srgb, var(--ochre) 18%, var(--surface));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media print {
  :root {
    color-scheme: light;
    --canvas: #fff;
    --surface: #fff;
    --surface-soft: #f5f5f5;
    --text: #111;
    --muted: #444;
    --line: #bbb;
  }

  .site-header,
  .site-footer,
  .contents {
    display: none;
  }

  main {
    width: 100%;
  }

  .policy-hero {
    padding-block-start: 0;
  }

  .summary {
    box-shadow: none;
  }

  .policy > section {
    break-inside: avoid;
  }
}
