/* Parkade: Privacy Policy and Terms of Use.
   One readable column under a sticky header; the game's navy with a sign-yellow kerb stripe.
   System fonts only, so the page loads nothing from other sites. */

:root {
  --bg: #f4f6fb;
  --paper: #ffffff;
  --ink: #15233f;
  --muted: #55627e;
  --line: #d9dfeb;
  --navy: #1b2c52;
  --link: #1f56b8;
  --sign: #ffc21a;
  --todo-bg: #fff1b8;
  --todo-ink: #6b4a00;
  --focus: #1f56b8;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1628;
    --paper: #152038;
    --ink: #e8edf7;
    --muted: #a3afc8;
    --line: #27355a;
    --navy: #0b1222;
    --link: #8db4ff;
    --todo-bg: #4a3a05;
    --todo-ink: #ffe69a;
    --focus: #ffc21a;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--body);
  -webkit-text-size-adjust: 100%;
}

a { color: var(--link); text-underline-offset: 2px; overflow-wrap: anywhere; }
a:focus-visible, button:focus-visible, input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--sign); color: #15233f; padding: 8px 12px; z-index: 20; }
.skip:focus { left: 8px; top: 8px; }

/* Header */
.site { position: sticky; top: 0; z-index: 10; background: var(--navy); color: #fff; }
.site-inner {
  max-width: 920px; margin: 0 auto;
  padding: 10px max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px;
}
.brand { display: inline-flex; align-items: center; min-height: 44px; color: #fff; text-decoration: none; font-weight: 600; font-size: 16px; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.tabs a {
  color: #dfe7f7; text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 6px 12px; border-radius: 999px;
}
.tabs a:hover { background: rgba(255, 255, 255, .1); }
.tabs a.active { background: var(--sign); color: #15233f; }
.site a:focus-visible, .to-top:focus-visible { outline-color: var(--sign); }
/* Phones: the brand on one row, the three tabs on the next, so the header stays short while reading. */
@media (max-width: 499px) {
  .site-inner { padding-top: 6px; padding-bottom: 6px; gap: 0 12px; }
  .tabs { gap: 2px; margin-left: -10px; }
  .tabs a { padding: 5px 10px; font-size: 14px; }
}
.kerb { height: 6px; background: repeating-linear-gradient(-45deg, var(--sign) 0 10px, #15233f 10px 20px); }

/* Page */
main {
  max-width: 920px; margin: 0 auto;
  padding: 24px max(16px, env(safe-area-inset-right)) 48px max(16px, env(safe-area-inset-left));
}
.intro, .doc, .contact {
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: 24px clamp(16px, 4vw, 40px); margin-bottom: 24px;
}
h1 { font-size: clamp(26px, 5vw, 36px); line-height: 1.15; margin: 0 0 8px; text-wrap: balance; }
h2 { font-size: clamp(22px, 4vw, 28px); margin: 0 0 16px; padding-bottom: 8px; border-bottom: 3px solid var(--sign); display: inline-block; }
h3 { font-size: 19px; margin: 32px 0 8px; }
h4 { font-size: 16px; margin: 20px 0 4px; }
/* Links to a section land below the sticky header. script.js sets --head to its real height; the fallbacks match
   the header's heights when the script is off. */
html { scroll-padding-top: calc(var(--head, 62px) + 22px); }
@media (max-width: 499px) { html { scroll-padding-top: calc(var(--head, 79px) + 22px); } }
@media (max-width: 339px) { html { scroll-padding-top: calc(var(--head, 114px) + 22px); } }
p, li { max-width: 70ch; }
ul, ol { padding-left: 1.3em; }
li + li { margin-top: 4px; }
.lede { font-size: 18px; color: var(--muted); margin: 0 0 16px; }

.facts { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 0 0 16px; }
.facts div { min-width: 0; }
.facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); font-weight: 700; }
.facts dd { margin: 2px 0 0; font-weight: 600; }

.toc { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; margin: 0 0 8px; }
.toc ol { margin: 0; columns: 2 240px; column-gap: 32px; }
.toc li { break-inside: avoid; }

.anchor { margin-left: 8px; font-weight: 400; color: var(--muted); text-decoration: none; opacity: 0; }
h3:hover .anchor, .anchor:focus { opacity: 1; }

/* Text the developer must fill in before publishing. */
.todo { background: var(--todo-bg); color: var(--todo-ink); padding: 0 4px; border-radius: 4px; font-family: var(--mono); font-size: .9em; }

/* Platform picker (added by script.js) */
.picker { border: 0; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.picker legend { float: left; margin-right: 8px; font-size: 14px; color: var(--muted); font-weight: 600; }
.picker label { cursor: pointer; }
.picker input { position: absolute; opacity: 0; }
.picker span {
  display: inline-block; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 14px; font-weight: 600; background: var(--paper);
}
.picker input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); }
@media (prefers-color-scheme: dark) { .picker input:checked + span { background: var(--sign); color: #15233f; border-color: var(--sign); } }
@media screen {
  body[data-show="ios"] .platform[data-platform="android"],
  body[data-show="android"] .platform[data-platform="ios"] { display: none; }
}

address { font-style: normal; line-height: 1.8; }

.site-foot {
  max-width: 920px; margin: 0 auto;
  padding: 0 max(16px, env(safe-area-inset-right)) 40px max(16px, env(safe-area-inset-left));
  color: var(--muted); font-size: 14px;
}

.to-top {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  background: var(--navy); color: #fff; border: 2px solid var(--sign); border-radius: 999px;
  padding: 8px 14px; font: 600 14px var(--body); cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}

@media print {
  :root { --bg: #fff; --paper: #fff; --ink: #000; --muted: #444; --line: #ccc; --link: #1f56b8;
          --todo-bg: #fff1b8; --todo-ink: #6b4a00; color-scheme: light; }
  .site, .toc, .picker, .to-top, .skip, .anchor { display: none !important; }
  body { background: #fff; color: #000; }
  .intro, .doc, .contact { border: 0; padding: 0; }
}
