@font-face { font-family: "M2 Cairo"; src: url("/legal/Cairo-arabic.v2.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+2066-2069; }
@font-face { font-family: "M2 Cairo"; src: url("/legal/Cairo-latin.v2.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: "M2 Grotesk"; src: url("/legal/SpaceGrotesk-latin.v2.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }

:root {
  --bg: #f4f8fb;
  --card: #ffffff;
  --ink: #05141f;
  --text: #1d2b36;
  --muted: #5b6b78;
  --line: #dde7ee;
  --primary: #55c8e8;
  --link: #0477a8;
  --soft: #e8f6fb;
  --navy: linear-gradient(160deg, #0a2744 0%, #05141f 100%);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #071521; --card: #0c1e2d; --ink: #eef6fb; --text: #d4e2ec; --muted: #8fa5b5;
    --line: #17324a; --link: #7fd6f0; --soft: #0f2a3d; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #071521; --card: #0c1e2d; --ink: #eef6fb; --text: #d4e2ec; --muted: #8fa5b5;
  --line: #17324a; --link: #7fd6f0; --soft: #0f2a3d; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.85 "M2 Cairo", system-ui, sans-serif;
}
a { color: var(--link); }
a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

.top { background: var(--navy); color: #fff; padding: 22px 16px 56px; }
.bar { max-width: 860px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bar img { height: 30px; width: auto; display: block; }
.lang {
  color: #fff; text-decoration: none; font: 600 14px/1 "M2 Grotesk", "M2 Cairo", sans-serif;
  border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 999px; padding: 9px 14px;
}
.lang:hover { background: rgba(255, 255, 255, 0.1); }
.head { max-width: 860px; margin: 34px auto 0; }
.head h1 { margin: 0; font: 700 clamp(28px, 5vw, 40px)/1.3 "M2 Cairo", sans-serif; color: #fff; }
.head p { margin: 10px 0 0; color: #b9d3e2; }
.dates { margin-top: 14px; font-size: 14px; color: #8fb6cb; }

main { max-width: 860px; margin: -32px auto 0; padding: 0 16px 56px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 28px clamp(18px, 4vw, 40px); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; }
.toc a {
  display: inline-block; text-decoration: none; font-size: 14px; color: var(--text);
  background: var(--soft); border-radius: 999px; padding: 4px 12px;
}
section { padding-top: 22px; border-top: 1px solid var(--line); margin-top: 22px; }
section:first-of-type { border-top: 0; margin-top: 8px; }
h2 { margin: 0 0 8px; font: 700 21px/1.5 "M2 Cairo", sans-serif; color: var(--ink); scroll-margin-top: 16px; }
h3 { margin: 16px 0 4px; font: 700 16.5px/1.6 "M2 Cairo", sans-serif; color: var(--ink); }
p { margin: 8px 0; }
ul { margin: 6px 0; padding-inline-start: 22px; }
li { margin: 4px 0; }
.note { background: var(--soft); border-radius: 12px; padding: 14px 16px; margin: 14px 0; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding-inline-start: 44px; margin: 14px 0; min-height: 32px; }
.steps li::before {
  content: counter(s); position: absolute; inset-inline-start: 0; top: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--navy); color: #fff; font: 700 15px/32px "M2 Grotesk", sans-serif; text-align: center;
}
table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 10px 0; }
th, td { text-align: start; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--ink); font-weight: 700; }
.mail {
  display: inline-block; margin-top: 6px; text-decoration: none; color: #05141f; font-weight: 700;
  background: linear-gradient(135deg, #55c8e8 0%, #0891b2 100%); border-radius: 999px; padding: 10px 20px;
}
.ltr { direction: ltr; unicode-bidi: isolate; }
footer { max-width: 860px; margin: 0 auto; padding: 0 16px 40px; color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px 16px; }
footer a { color: var(--muted); }
html[lang="en"] body { font-family: "M2 Grotesk", "M2 Cairo", system-ui, sans-serif; line-height: 1.75; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3 { font-family: "M2 Grotesk", "M2 Cairo", sans-serif; }
@media (max-width: 560px) {
  table, thead, tbody, tr, th, td { display: block; }
  thead { display: none; }
  tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  td { border: 0; padding: 2px 0; }
  td:first-child { font-weight: 700; color: var(--ink); }
}
