/* Privacy policy and terms pages. Deliberately plain: these are documents a
   compliance officer reads and prints, not marketing. Kept in its own file
   because the site CSP is `style-src 'self'` on every path — an inline <style>
   block would be blocked in production. */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #1c2430;
  --muted: #56606d;
  --rule: #d9dee5;
  --accent: #1f5f9e;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131a22;
    --fg: #e6ebf1;
    --muted: #9aa6b4;
    --rule: #2a3543;
    --accent: #6fb0ee;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
  max-width: 46rem;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

h1 { font-size: 1.75rem; line-height: 1.25; margin: 0 0 0.25rem; }
h2 { font-size: 1.2rem; margin: 2.25rem 0 0.5rem; }
h3 { font-size: 1rem; margin: 1.5rem 0 0.35rem; }

.updated { color: var(--muted); font-size: 0.9rem; margin: 0 0 0.75rem; }

/* Which version governs, said under the title rather than only in the language
   clause near the end. A reader who stops after three paragraphs still learns
   that the English is the binding text and theirs is a convenience translation.
   border-inline-start, not border-left: the Hebrew and Arabic pages are this
   same markup under dir="rtl", where a left-pinned rule lands on the wrong
   edge. Added 2026-09-21 with the English-authoritative change (PRD §2). */
.authority {
  border-inline-start: 3px solid var(--muted);
  padding-inline-start: 1rem;
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Logical properties throughout, not left/right: the Hebrew and Arabic versions
   of these documents are the same file structure under dir="rtl", and a quote
   bar or a list indent pinned to the left edge lands on the wrong side there. */
.lede {
  border-inline-start: 3px solid var(--accent);
  padding: 0.1rem 0;
  padding-inline-start: 1rem;
  margin: 0 0 2rem;
  font-size: 1.05rem;
}

p, li { margin: 0.6rem 0; }
ul, ol { padding-inline-start: 1.4rem; }

a { color: var(--accent); }

code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.9em;
  background: color-mix(in srgb, var(--fg) 8%, transparent);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: 0.95rem; }
th, td { border: 1px solid var(--rule); padding: 0.5rem 0.6rem; text-align: start; vertical-align: top; }
th { background: color-mix(in srgb, var(--fg) 6%, transparent); font-weight: 600; }

footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9rem;
}

/* Language row. These documents are equally binding in four languages, so the
   way to the other three has to be on the page itself — a legal document reached
   only through the app's own language setting is a legal document some readers
   cannot find. Plain links: the legal pages ship script-src 'none' and that is
   worth keeping. */
.langs {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  /* the row itself stays in one order in every language, so a reader switching
     between them finds the links where they were */
  direction: ltr;
}
.langs .is-current { color: var(--muted); font-weight: 600; }

/* .todo was the draft/placeholder banner. It is gone from both pages: the
   consent gate now links them, and a banner reading "not reviewed by a lawyer"
   inside a document you are asking an agency to accept defeats the document.
   What it said survives as an HTML comment at the top of each page. */
