/* LongShot — site stylesheet. One system for every page, English and Arabic.
   Palette is the app's own "Paper & Ink". Terracotta is reserved, as in the app, for the
   recording moment: the call to action and the capture dot. Everything else is ink. */

:root {
  --paper: #fbf9f6;
  --paper-2: #f1eee8;
  --card: #ffffff;
  --ink: #1b1a17;
  --slate: #29303d;
  --slate-deep: #1e222a;
  --text-2: #5a554c;
  --text-3: #6b665b;
  --rule: #e6e1d8;
  --rule-2: #d4cec2;
  --accent: #b85c38;
  --accent-ink: #9c4b2c;
  --accent-soft: #e58b63;

  --f-display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --f-text: "Instrument Sans", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --gutter: clamp(16px, 4.5vw, 56px);
  --maxw: 1240px;
  --header-h: 64px;
  color-scheme: light;
}
:lang(ar) {
  --f-display: "Noto Kufi Arabic", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --f-text: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
:lang(ar) body { line-height: 1.85; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 700; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.privacy-band :focus-visible, .site-footer--dark :focus-visible { outline-color: var(--paper); }
::selection { background: var(--ink); color: var(--paper); }

.skip {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 12px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- type ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 800;
  font-stretch: 62%;
  line-height: 0.92;
  letter-spacing: -0.01em;
  word-spacing: 0.1em;
  text-wrap: balance;
}
:lang(ar) .display { font-stretch: 100%; font-weight: 800; line-height: 1.25; letter-spacing: 0; word-spacing: 0; }
.eyebrow {
  font-family: var(--f-mono); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3);
  display: inline-flex; align-items: center; gap: 0.6em;
}
:lang(ar) .eyebrow { font-family: var(--f-text); font-size: 0.9rem; letter-spacing: 0; text-transform: none; font-weight: 500; }
.rec { width: 0.62em; height: 0.62em; border-radius: 50%; background: var(--accent); flex: none; }
.lede { font-size: clamp(1.125rem, 1.6vw, 1.3rem); color: var(--text-2); max-width: 34em; text-wrap: pretty; }
.mono { font-family: var(--f-mono); }
:lang(ar) .mono { font-family: var(--f-mono); }
.num { direction: ltr; unicode-bidi: isolate; font-family: var(--f-mono); }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 19px; height: auto; }
.brand span { font-family: "Archivo", "Arial Narrow", Arial, sans-serif; font-stretch: 62%; font-weight: 800; font-size: 1.7rem; letter-spacing: -0.005em; line-height: 1; padding-top: 2px; }
.nav { display: none; gap: 28px; font-size: 0.95rem; }
.nav a { text-decoration: none; color: var(--text-2); padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.header-end { display: flex; align-items: center; gap: 18px; font-size: 0.95rem; }
.lang { text-decoration: none; padding: 6px 10px; border: 1px solid var(--rule-2); border-radius: 999px; font-size: 0.9rem; line-height: 1.2; }
.lang:hover { border-color: var(--ink); }
.header-play { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--accent); padding-block: 4px; }
@media (min-width: 900px) { .nav { display: flex; } }

/* ---------- play button (drawn, not Google's badge artwork) ---------- */
.play {
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 60px; padding: 10px 24px 10px 18px;
  background: var(--accent); color: #fff; text-decoration: none;
  border-radius: 12px; border: 1px solid var(--accent-ink);
  transition: background-color .18s ease, transform .18s ease;
}
:lang(ar) .play { padding: 10px 18px 10px 24px; }
.play:hover { background: var(--accent-ink); }
.play:active { transform: translateY(1px); }
.play svg { width: 26px; height: 26px; flex: none; }
.play span { display: grid; line-height: 1.1; text-align: start; }
.play small { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.02em; opacity: .95; }
.play strong { font-size: 1.28rem; font-weight: 700; letter-spacing: -0.005em; }
.cta-note { font-size: 0.9rem; color: var(--text-3); margin-top: 12px; }
.link-quiet { font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--rule-2); padding-block: 2px; }
.link-quiet:hover { border-bottom-color: var(--ink); }

/* ---------- story: hero + sticky phone ---------- */
.story { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "hero" "phone" "steps"; padding-inline: var(--gutter); max-width: var(--maxw); margin-inline: auto; }
.hero { grid-area: hero; padding-block: clamp(40px, 7vw, 96px) clamp(32px, 6vw, 72px); }
.hero h1 { font-size: clamp(4.1rem, 21vw, 6.6rem); margin: 22px 0 26px; }
.hero h1 span { display: block; text-wrap: balance; }
:lang(ar) .hero h1 { font-size: clamp(2.2rem, 10.2vw, 3.6rem); margin: 22px 0 22px; }
.hero .lede { margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; margin-top: clamp(32px, 5vw, 56px); border-top: 1px solid var(--ink); }
.facts div { padding: 14px 18px 0 0; margin-inline-end: 18px; }
:lang(ar) .facts div { padding: 14px 0 0 18px; }
.facts div + div { padding-inline-start: 18px; border-inline-start: 1px solid var(--rule-2); }
.facts dt { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
:lang(ar) .facts dt { font-family: var(--f-text); letter-spacing: 0; text-transform: none; font-size: 0.82rem; }
.facts dd { font-weight: 600; font-size: 0.98rem; line-height: 1.35; margin-top: 4px; }

.phone-col { grid-area: phone; position: relative; }
.stage { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding-block: 16px; }

.phone {
  --ratio: 2.1667;
  position: relative; flex: none;
  height: min(calc(100svh - 230px), 600px); aspect-ratio: 9 / 19.5; width: auto; max-width: 84vw;
  padding: 7px; border-radius: 34px;
  background: linear-gradient(160deg, #3a4252, var(--slate) 38%, #181c23);
  box-shadow: 0 1px 0 #4a5364 inset, 0 30px 60px -28px rgba(27, 26, 23, .45), 0 2px 6px rgba(27, 26, 23, .18);
}
.phone::before { /* punch-hole camera */
  content: ""; position: absolute; top: 15px; left: 50%; width: 8px; height: 8px; margin-left: -4px;
  border-radius: 50%; background: #0d0f13; z-index: 3;
}
.phone__screen {
  position: relative; height: 100%; border-radius: 28px; overflow: hidden; background: var(--paper);
  container-type: inline-size;
}
.phone__rec { /* the recording pill, as in the app */
  position: absolute; z-index: 2; top: 8cqw; inset-inline: 0; margin-inline: auto; width: max-content;
  display: flex; align-items: center; gap: .6em; padding: .5em 1.1em .5em .9em; border-radius: 999px;
  background: var(--slate); color: #fff; font-size: max(6.5px, 3.3cqw); font-weight: 600; letter-spacing: 0.01em; white-space: nowrap;
  box-shadow: 0 6px 14px -6px rgba(0,0,0,.4); transition: opacity .3s ease;
}
.phone__rec i { width: .7em; height: .7em; border-radius: 50%; background: var(--accent-soft); }
.phone.is-done .phone__rec { opacity: 0; }
.phone__scroller { height: 100%; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.phone__scroller::-webkit-scrollbar { display: none; }
.js-live .phone__scroller { overflow: hidden; }
.doc-track { will-change: transform; }

@media (min-width: 900px) {
  .phone { height: min(calc(100svh - 96px), 780px); }
}

/* the captions that travel with the phone on small screens */
.capt { display: none; }
.js-live .capt { display: block; }
.capt { width: min(100%, 420px); min-height: 8.2rem; text-align: start; border-top: 1px solid var(--ink); padding-top: 10px; }
.capt__k { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
:lang(ar) .capt__k { font-family: var(--f-text); font-size: 0.85rem; letter-spacing: 0; }
.capt h3 { font-family: var(--f-display); font-stretch: 62%; font-weight: 800; font-size: 2rem; line-height: 1; margin: 4px 0 6px; }
:lang(ar) .capt h3 { font-stretch: 100%; font-size: 1.45rem; line-height: 1.3; }
.capt p { margin: 0; font-size: 0.97rem; line-height: 1.5; color: var(--text-2); }
.capt [data-c] { display: none; }
.capt [data-c].on { display: block; }

.steps { grid-area: steps; }
.steps__head { padding-block: 8px 20px; }
.steps h2 { font-size: clamp(2.6rem, 11vw, 4rem); }
:lang(ar) .steps h2 { font-size: clamp(1.9rem, 7vw, 2.6rem); }
.step { padding-block: 36px 44px; border-top: 1px solid var(--rule-2); transition: opacity .35s ease; }
.step__k { font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
:lang(ar) .step__k { font-family: var(--f-text); font-size: 0.88rem; letter-spacing: 0; text-transform: none; }
.step h3 { font-family: var(--f-display); font-stretch: 62%; font-weight: 800; font-size: clamp(2.6rem, 6vw, 4.1rem); line-height: .95; margin: 8px 0 14px; }
:lang(ar) .step h3 { font-stretch: 100%; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.3; }
.step p { font-size: 1.1rem; color: var(--text-2); max-width: 28em; }

@media (min-width: 900px) {
  .story { grid-template-columns: minmax(0, 1fr) minmax(340px, 430px); grid-template-areas: "hero phone" "steps phone"; column-gap: clamp(32px, 6vw, 96px); }
  .hero { min-height: calc(100svh - var(--header-h)); display: flex; flex-direction: column; justify-content: center; }
  .hero h1 { font-size: clamp(5.4rem, 8.4vw, 8.8rem); }
  :lang(ar) .hero h1 { font-size: clamp(3rem, 4.6vw, 4.8rem); }
  .js-live .steps { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; }
  .js-live .capt { display: none; }
  .step { min-height: 78svh; display: flex; flex-direction: column; justify-content: center; }
  .js-live .step { opacity: .62; }
  .js-live .step.is-active { opacity: 1; }
  .steps__head { padding-block: 24px 28px; }
}
@media (max-width: 899px) {
  /* on small screens the live captions travel with the phone; the printed steps stay for screen readers */
  .js-live .steps { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .js-live .phone-col { height: 380svh; }
  .js-live .stage { top: 0; }
  .phone { height: min(calc(100svh - 270px), 560px); }
  .hero { padding-bottom: 8px; }
}
@media (max-width: 899px) { html:not(.js-live) .stage { height: auto; position: static; padding-block: 32px; } }
@media (max-width: 899px) and (max-height: 700px) { .phone { height: min(calc(100svh - 250px), 560px); } .capt { min-height: 7.4rem; } .capt h3 { font-size: 1.7rem; } }

/* ---------- the long page inside the phone (a demonstration, written for this site) ---------- */
.doc { font-size: calc(100cqw / 22); line-height: 1.45; color: #23221f; background: #fff; padding-top: 3.6em; position: relative; text-align: start; }
.doc * { margin: 0; }
.doc .bar { display: flex; align-items: center; gap: .8em; padding: .5em 1.13em 1.1em; font-weight: 600; font-size: 1.15em; }
.doc .bar svg { width: 1.1em; height: 1.1em; }
:lang(ar) .doc .bar svg { transform: scaleX(-1); }
.doc .brandrow { display: flex; align-items: center; gap: .7em; padding: 0 1.3em; font-weight: 700; }
.doc .brandrow b { width: 2em; height: 2em; border-radius: 50%; background: #3b4a3f; color: #fff; display: grid; place-items: center; font-size: 1em; }
.doc h4 { font-size: 1.75em; line-height: 1.12; font-weight: 750; letter-spacing: -.01em; padding: .65em .74em .2em; }
:lang(ar) .doc h4 { font-weight: 700; line-height: 1.4; }
.doc .meta { padding: 0 1.53em 1.6em; color: #6b675e; font-size: .85em; }
.doc section { padding: 1.2em 1.3em 1.3em; border-top: .45em solid #f3f1ec; }
.doc h5 { font-size: .74em; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6b675e; margin-bottom: .8em; }
:lang(ar) .doc h5 { letter-spacing: 0; text-transform: none; font-size: .85em; }
.doc .row { display: flex; justify-content: space-between; gap: 1em; padding: .55em 0; border-bottom: 1px solid #efece6; font-size: .95em; }
.doc .row:last-child { border-bottom: 0; }
.doc .row.tot { font-weight: 750; font-size: 1.05em; }
.doc .row > span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; direction: ltr; }
.doc p { font-size: .92em; color: #3d3b36; margin-bottom: .8em; }
.doc address { font-style: normal; font-size: .95em; line-height: 1.6; }
.doc .tl { position: relative; padding-inline-start: 1.7em; }
.doc .tl li { position: relative; padding-bottom: 1.1em; font-size: .93em; list-style: none; }
.doc .tl li::before { content: ""; position: absolute; inset-inline-start: -1.7em; top: .35em; width: .7em; height: .7em; border-radius: 50%; border: .13em solid #3b4a3f; background: #fff; }
.doc .tl li.done::before { background: #3b4a3f; }
.doc .tl li::after { content: ""; position: absolute; inset-inline-start: calc(-1.7em + .3em); top: 1.2em; bottom: -.1em; width: .1em; background: #cfcac0; }
.doc .tl li:last-child::after { display: none; }
.doc .tl small { display: block; color: #6b675e; font-size: .88em; }
.doc details-ish b { display: block; }
.doc .qa { padding: .7em 0; border-bottom: 1px solid #efece6; }
.doc .qa b { display: block; font-size: .95em; margin-bottom: .25em; }
.doc .qa p { margin: 0; }
.doc .foot { padding: 1.6em 1.3em 3em; background: #f3f1ec; color: #6b675e; font-size: .82em; text-align: center; }

/* redaction: the finished state is the default; the script only un-hides it for the first two steps */
.rd { background: var(--slate-deep); color: transparent; border-radius: .15em; padding: 0 .1em; box-decoration-break: clone; -webkit-box-decoration-break: clone; transition: background-color .35s ease, color .35s ease; user-select: none; }
.rd--px { background: repeating-linear-gradient(90deg, #6d7686 0 .55em, #8791a2 .55em 1.1em, #5d6676 1.1em 1.65em, #7a8496 1.65em 2.2em); }
.js-live .doc:not(.is-redacted) .rd { background: transparent; color: inherit; }

/* where each phone screen would have ended */
.cut { position: absolute; inset-inline: 0; height: 0; border-top: .1em dashed var(--accent); z-index: 1; pointer-events: none; top: calc(var(--k) * var(--ratio) * 100cqw); }
.cut span { position: absolute; inset-inline-end: .8em; top: .35em; font-family: var(--f-mono); font-size: .62em; color: var(--accent-ink); background: rgba(255,255,255,.85); padding: .1em .4em; border-radius: .3em; }
:lang(ar) .cut span { font-family: var(--f-text); font-size: .7em; }

/* ---------- sections ---------- */
.section { padding-block: clamp(64px, 10vw, 128px); }
.section--rule { border-top: 1px solid var(--ink); }
.sec-head { display: grid; gap: 16px; margin-bottom: clamp(28px, 5vw, 56px); }
.sec-head h2 { font-size: clamp(3rem, 9vw, 5.6rem); }
:lang(ar) .sec-head h2 { font-size: clamp(2rem, 6.4vw, 3.6rem); }
.sec-head p { margin: 0; color: var(--text-2); max-width: 32em; font-size: 1.1rem; }

.tools-grid { display: grid; gap: clamp(32px, 5vw, 64px); }
.ledger { border-top: 3px solid var(--ink); }
.ledger__h { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0 12px; border-bottom: 1px solid var(--rule-2); }
.ledger__h h3 { font-family: var(--f-display); font-stretch: 62%; font-weight: 800; font-size: 2rem; line-height: 1; }
:lang(ar) .ledger__h h3 { font-stretch: 100%; font-size: 1.4rem; line-height: 1.4; }
.ledger__h small { font-size: 0.85rem; color: var(--text-3); text-align: end; max-width: 16em; line-height: 1.35; }
.ledger li { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.ledger b { display: block; font-weight: 600; }
.ledger span { display: block; color: var(--text-2); font-size: .97rem; line-height: 1.5; }
.note { margin-top: 16px; font-size: .93rem; color: var(--text-2); border-inline-start: 3px solid var(--accent); padding-inline-start: 14px; max-width: 34em; }

.toolbar-fig { margin: 0 0 clamp(28px, 5vw, 48px); max-width: 560px; }
.toolbar-fig img { width: 100%; height: auto; border: 1px solid var(--rule-2); border-radius: 18px; background: var(--paper-2); }
.toolbar-fig figcaption { font-size: .85rem; color: var(--text-3); margin-top: 10px; }

@media (min-width: 900px) {
  .tools-top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: end; margin-bottom: clamp(32px, 5vw, 64px); }
  .tools-top .sec-head { margin: 0; }
  .toolbar-fig { margin: 0; }
  .tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.privacy-band { background: var(--slate); color: var(--paper); }
.privacy-band .eyebrow { color: #c4c8d0; }
.privacy-grid { display: grid; gap: clamp(32px, 6vw, 80px); }
.privacy-band h2 { font-size: clamp(3.2rem, 11vw, 7.4rem); }
:lang(ar) .privacy-band h2 { font-size: clamp(2.1rem, 7vw, 4.2rem); }
.proofs li { padding: 18px 0; border-top: 1px solid rgba(251, 249, 246, .22); }
.proofs li:last-child { border-bottom: 1px solid rgba(251, 249, 246, .22); }
.proofs b { display: block; font-size: 1.15rem; font-weight: 600; }
.proofs span { display: block; color: #cfd3da; margin-top: 4px; font-size: 1rem; }
.privacy-band a { color: var(--paper); text-decoration-color: var(--accent-soft); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.privacy-more { margin-top: 26px; }
@media (min-width: 900px) { .privacy-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: end; } }

.limits { display: grid; gap: 0; }
.limits li { display: grid; gap: 4px; padding: 20px 0; border-top: 1px solid var(--rule-2); }
.limits li:last-child { border-bottom: 1px solid var(--rule-2); }
.limits b { font-weight: 650; font-size: 1.08rem; }
.limits span { color: var(--text-2); }
.limits .tip { background: var(--paper-2); padding-inline: 16px; border-top-color: var(--ink); }
@media (min-width: 900px) {
  .good-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
  .good-grid .sec-head { position: sticky; top: 32px; margin: 0; }
  .limits li { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; }
}

.final { background: var(--paper-2); border-top: 1px solid var(--rule-2); }
.final .wrap { display: grid; gap: 32px; }
.final h2 { font-size: clamp(3rem, 10vw, 6.4rem); max-width: 11em; }
:lang(ar) .final h2 { font-size: clamp(2rem, 7vw, 4rem); max-width: 14em; }
@media (min-width: 900px) { .final .wrap { grid-template-columns: minmax(0, 8fr) auto; align-items: end; } }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--rule); padding-block: 40px 56px; font-size: .95rem; }
.site-footer .wrap { display: grid; gap: 28px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.foot-links a { text-decoration: none; color: var(--text-2); padding: 4px 0; border-bottom: 1px solid transparent; }
.foot-links a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.fine { color: var(--text-3); font-size: .85rem; max-width: 44em; margin: 0; }
.fine + .fine { margin-top: 6px; }
@media (min-width: 900px) { .site-footer .wrap { grid-template-columns: 1fr auto; align-items: start; } .fine-col { grid-column: 1 / -1; } }

/* ---------- legal pages ---------- */
.legal { padding-block: clamp(40px, 7vw, 96px) clamp(64px, 9vw, 120px); }
.legal-grid { display: grid; gap: 32px; }
.legal h1 { font-size: clamp(3.4rem, 14vw, 6.4rem); margin: 18px 0 14px; }
:lang(ar) .legal h1 { font-size: clamp(2.2rem, 8vw, 3.8rem); }
.legal .stamp { font-family: var(--f-mono); font-size: .85rem; color: var(--text-3); margin-bottom: 0; }
:lang(ar) .legal .stamp { font-family: var(--f-text); }
.legal-head { border-bottom: 1px solid var(--ink); padding-bottom: 24px; }
.toc { font-size: .93rem; }
.toc h2 { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); font-weight: 500; margin-bottom: 10px; }
:lang(ar) .toc h2 { font-family: var(--f-text); font-size: .85rem; letter-spacing: 0; text-transform: none; }
.toc ol { counter-reset: t; }
.toc li { counter-increment: t; border-top: 1px solid var(--rule); }
.toc a { display: flex; gap: 12px; padding: 8px 0; text-decoration: none; color: var(--text-2); }
.toc a::before { content: counter(t); font-family: var(--f-mono); color: var(--text-3); min-width: 1.5em; }
.toc a:hover { color: var(--ink); }
.prose { max-width: 40em; }
.prose section { padding-top: 36px; margin-top: 36px; border-top: 1px solid var(--rule-2); scroll-margin-top: 24px; }
.prose section:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.prose h2 { font-family: var(--f-text); font-size: 1.4rem; font-weight: 650; line-height: 1.25; margin-bottom: 14px; }
:lang(ar) .prose h2 { font-size: 1.35rem; line-height: 1.5; }
.prose h2 .n { font-family: var(--f-mono); font-size: .8rem; color: var(--text-3); margin-inline-end: .8em; font-weight: 500; }
.prose ul { margin: 0 0 1em; padding-inline-start: 1.2em; }
.prose ul li { list-style: disc; margin-bottom: .5em; padding-inline-start: .2em; }
.prose a { text-decoration-color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.prose a:hover { text-decoration-color: var(--ink); }
@media (min-width: 900px) {
  .legal-grid { grid-template-columns: minmax(0, 220px) minmax(0, 1fr); column-gap: clamp(40px, 8vw, 120px); }
  .legal-head { grid-column: 1 / -1; }
  .toc { position: sticky; top: 28px; align-self: start; }
}

/* ---------- 404 ---------- */
.lost { min-height: 70svh; display: grid; align-content: center; gap: 22px; padding-block: 64px; }
.lost h1 { font-size: clamp(7rem, 34vw, 16rem); }
.lost p { color: var(--text-2); max-width: 28em; margin: 0; font-size: 1.15rem; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
@media print { .site-header, .site-footer, .toc, .phone-col { display: none; } body { font-size: 11pt; } }
