/* Shared by privacy.html and terms.html. Same tokens as landing.html. */
html { overflow-x: hidden; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Alexandria', 'Noto Sans Arabic', Tahoma, sans-serif;
  background: oklch(0.19 0.008 70);
  color: oklch(0.96 0.004 85);
  overflow-wrap: break-word;
}
a { color: oklch(0.76 0.11 255); text-decoration: none; }
a:hover { color: oklch(0.84 0.09 255); }
/* .mono is for Latin and digits only — IBM Plex Mono has no Arabic coverage. */
.mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; }
:focus-visible { outline: 2px solid oklch(0.76 0.11 255); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

.btn-primary { display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; background: oklch(0.74 0.12 255); color: oklch(0.18 0.02 255); font-weight: 500; transition: background 0.15s; }
.btn-primary:hover { background: oklch(0.81 0.10 255); color: oklch(0.18 0.02 255); }
.navlink { color: oklch(0.74 0.008 70); }
.navlink:hover { color: oklch(0.97 0 0); }
.navlink[aria-current="page"] { color: oklch(0.97 0 0); }
.langbtn { font-family: inherit; border: 0; cursor: pointer; line-height: 1; background: transparent; color: oklch(0.66 0.008 70); }

/* ── header ─────────────────────────────────────────────── */
.hdr { height: 72px; display: flex; align-items: center; gap: 12px; padding: 0 64px; border-bottom: 1px solid oklch(0.28 0.008 70); }
.hdr-brand { display: flex; align-items: center; gap: 11px; color: inherit; }
.hdr-brand:hover { color: inherit; }
.logo { width: 24px; height: 24px; flex: 0 0 24px; background: oklch(0.96 0.004 85); -webkit-mask: url(/uploads/logo-mark.png) center / contain no-repeat; mask: url(/uploads/logo-mark.png) center / contain no-repeat; }
.hdr-nav { display: flex; align-items: center; gap: 28px; margin-inline-start: 48px; font-size: 13px; }
.hdr-right { margin-inline-start: auto; display: flex; align-items: center; gap: 16px; }
.langs { display: flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid oklch(0.32 0.008 70); border-radius: 9px; }
.langs .langbtn { padding: 5px 11px; border-radius: 6px; font-size: 12px; }
.langs .langbtn.mono { font-size: 11px; }

/* ── title band ─────────────────────────────────────────── */
.intro { padding: 72px 64px 56px; border-bottom: 1px solid oklch(0.26 0.008 70); background-image: radial-gradient(ellipse 50% 90% at 50% 0%, oklch(0.50 0.12 255 / 0.16), transparent 70%), linear-gradient(oklch(1 0 0 / 0.03) 1px, transparent 1px), linear-gradient(90deg, oklch(1 0 0 / 0.03) 1px, transparent 1px); background-size: 100% 100%, 48px 48px, 48px 48px; }
.intro-inner { max-width: 1080px; margin-inline: auto; }
.eyebrow { font-size: 13px; color: oklch(0.76 0.11 255); }
.intro h1 { margin: 14px 0 0; font-size: 44px; font-weight: 400; line-height: 1.35; text-wrap: balance; }
.intro p { margin: 16px 0 0; max-width: 680px; font-size: 16px; font-weight: 300; line-height: 1.9; color: oklch(0.76 0.008 70); text-wrap: pretty; }
.updated { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; padding: 5px 12px; border-radius: 20px; background: oklch(0.26 0.008 70); font-size: 12px; color: oklch(0.80 0.004 85); }

/* ── document ───────────────────────────────────────────── */
.doc { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 72px; max-width: 1080px; margin: 0 auto; padding: 64px 64px 96px; }
.toc { position: sticky; top: 24px; align-self: start; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.toc-title { margin-bottom: 10px; font-size: 12px; color: oklch(0.56 0.008 70); }
.toc a { display: block; padding: 6px 12px; border-inline-start: 1px solid oklch(0.30 0.008 70); color: oklch(0.70 0.008 70); line-height: 1.6; }
.toc a:hover { border-color: oklch(0.74 0.12 255); color: oklch(0.96 0.004 85); }

.prose { max-width: 720px; font-size: 15.5px; font-weight: 300; line-height: 2; color: oklch(0.86 0.004 85); }
.prose section { padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid oklch(0.26 0.008 70); scroll-margin-top: 24px; }
.prose section:last-child { border-bottom: 0; margin-bottom: 0; }
.prose h2 { display: flex; align-items: baseline; gap: 12px; margin: 0 0 14px; font-size: 21px; font-weight: 400; line-height: 1.6; color: oklch(0.97 0.004 85); }
.prose h2 .num { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 12px; color: oklch(0.76 0.11 255); }
.prose h3 { margin: 22px 0 6px; font-size: 16px; font-weight: 400; color: oklch(0.94 0.004 85); }
.prose p { margin: 0 0 12px; text-wrap: pretty; }
.prose ul { margin: 0 0 12px; padding-inline-start: 22px; }
.prose li { margin-bottom: 6px; padding-inline-start: 4px; }
.prose li::marker { color: oklch(0.56 0.008 70); }
.prose strong { font-weight: 500; color: oklch(0.96 0.004 85); }
.prose code { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 13px; padding: 1px 6px; border-radius: 5px; background: oklch(0.26 0.008 70); color: oklch(0.90 0.004 85); }
.note { margin: 16px 0 0; padding: 16px 18px; border: 1px solid oklch(0.32 0.03 255); border-radius: 12px; background: oklch(0.22 0.015 255); font-size: 14px; line-height: 1.9; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0 16px; }
.plan { padding: 14px 16px; border: 1px solid oklch(0.30 0.008 70); border-radius: 12px; background: oklch(0.22 0.008 70); line-height: 1.7; }
.plan b { display: block; font-weight: 400; font-size: 13px; color: oklch(0.72 0.008 70); }
.plan span { font-size: 20px; color: oklch(0.97 0.004 85); }

/* ── footer ─────────────────────────────────────────────── */
.footer { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 14px; padding: 22px 64px; border-top: 1px solid oklch(0.26 0.008 70); background: oklch(0.17 0.008 70); font-size: 12px; color: oklch(0.56 0.008 70); }
.footer .links { margin-inline-start: auto; display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (max-width: 960px) {
  .hdr-nav { display: none; }
  .doc { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .toc { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 12px; }
  .toc-title { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .hdr { padding: 12px 20px; }
  .intro { padding: 48px 20px 40px; }
  .intro h1 { font-size: 32px; }
  .doc { padding: 40px 20px 64px; }
  .footer { padding: 20px; }
  .plans { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .hdr { padding: 10px 16px; flex-wrap: wrap; row-gap: 10px; }
  .hdr-right { flex: 1 0 100%; margin-inline-start: 0; justify-content: space-between; }
  .langs .langbtn { padding: 11px 13px; }
  .hdr-cta { height: 44px !important; }
  .intro { padding: 40px 16px 36px; }
  .intro h1 { font-size: 28px; }
  .intro p { font-size: 15px; }
  .doc { padding: 32px 16px 56px; }
  .toc { grid-template-columns: minmax(0, 1fr); }
  .prose { font-size: 15px; }
  .prose h2 { font-size: 19px; }
  .footer { padding: 18px 16px; }
  .footer .links { margin-inline-start: 0; }
}
