/* Privacy policy pages (privacy.html, privacy-he.html). A template: prerender.mjs fills every colour token from
   src/brand.json (the one place for the studio name and colours) and writes dist/policy.css.
   No external fonts, scripts or images. */
:root {
  color-scheme: light dark;
  --ink: #2b2d42;
  --gold: #5ee3b0;
  --bg: #f2ede4;
  --fg: #2b2d42;
  --muted: #5a5d75;
  --line: #dad3c6;
  --link: #0b6e99;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #2b2d42;
    --fg: #f2ede4;
    --muted: #c5c7d6;
    --line: #3b3e5a;
    --link: #5ee3b0;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1.0625rem/1.6 var(--font);
  overflow-wrap: anywhere;
}
a { color: var(--link); text-underline-offset: 2px; }
a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 42rem; margin: 0 auto; padding: 0 16px; }
bdi { unicode-bidi: isolate; }

/* top bar: the dark title card with the checkered strip, as in the game */
.bar { background: var(--ink); color: #fff; }
.bar .wrap { padding-top: 14px; padding-bottom: 14px; font-weight: 900; letter-spacing: .04em; }
.bar .home { color: #fff; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .bar .home:hover { color: var(--gold); } }
.checker { height: 10px; background: repeating-linear-gradient(90deg, #fff 0 10px, var(--ink) 10px 20px); }

.doc h1 { font-size: clamp(1.6rem, 7vw, 2.2rem); line-height: 1.2; margin: 20px 0 8px; font-weight: 900; }
.doc h2 { font-size: 1.25rem; margin: 28px 0 8px; padding-top: 12px; border-top: 2px solid var(--line); }
.doc .meta { color: var(--muted); margin: 0 0 4px; }
.doc ul { padding-inline-start: 1.4em; }
.doc li { margin: 4px 0; }
.lang { margin: 16px 0 0; }
footer { padding: 24px 0 32px; color: var(--muted); font-size: .9375rem; }

@media print {
  :root { --bg: #fff; --fg: #000; --muted: #333; --link: #000; --line: #999; }
  body { font-size: 11pt; line-height: 1.45; }
  .bar, .checker, .lang, footer { display: none; }
  .wrap { max-width: none; padding: 0; }
  .doc h2 { break-after: avoid; }
  .doc li, .doc p { break-inside: avoid; }
  .doc a[href^="https://"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}
