/*
  Shared by privacy.html and terms.html. Both are standalone documents served
  outside the SPA — Google's OAuth reviewer has to read them without a session,
  so they cannot depend on the bundle. One stylesheet rather than two copies:
  unlike 404.html, a failed request here costs a plain page, not a broken
  error page.
*/
:root {
  --bg: #f4f5fa;
  --surface: #ffffff;
  --ink: 46 38 61;
  --text-primary: rgb(var(--ink) / 0.9);
  --text-muted: rgb(var(--ink) / 0.65);
  --border: rgb(var(--ink) / 0.12);
  --brand: #7f5af0;
  --brand-ink: #5b2cc0;
}
html.dark {
  --bg: #28243d;
  --surface: #312d4b;
  --ink: 231 227 252;
  --border: rgb(var(--ink) / 0.14);
  --brand-ink: #b7a6ff;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100dvh;
  padding: 2.5rem 1.5rem 4rem;
  background: var(--bg);
  color: var(--text-primary);
  font-family: 'Farhang2', system-ui, -apple-system, 'Segoe UI', sans-serif;
  line-height: 1.7;
}
main {
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem;
}
.eyebrow {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-ink);
}
h1 { margin: 0.5rem 0 0; font-size: 1.5rem; font-weight: 600; }
h2 {
  margin: 2rem 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
h2:first-of-type { border-top: 0; padding-top: 0; }
p, li { margin: 0.5rem 0 0; font-size: 0.9375rem; color: var(--text-muted); }
ul { margin: 0.5rem 0 0; padding-inline-start: 1.25rem; }
strong { color: var(--text-primary); font-weight: 600; }
a { color: var(--brand-ink); }
.updated { font-size: 0.8125rem; color: var(--text-muted); margin-top: 0.25rem; }
.home {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}
.home:hover { opacity: 0.9; }
.home:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 2px; }
/* Same trick as 404.html: both languages ship, the pre-paint script's `lang`
   picks one. No translation lookup on a page that must render with nothing
   loaded. */
[lang='en'] .fa, [lang='fa'] .en { display: none; }
