/* Powder Day: the privacy policy and terms pages (privacy.html, terms.html).
   Same colors and title font as the game (css/style.css), but an ordinary scrolling page.
   Long text is set in the reader's own system font, which is easier to read at length
   than the pixel font. */
@font-face { font-family: "FP Pixel"; src: url("fonts/fp-pixel-600.woff2?v=1") format("woff2"); font-weight: 600; font-display: swap; }
:root {
  --page: #171a33;
  --card: #1d2140;
  --edge: #343a62;
  --ink: #e8e6f1;
  --muted: #a3a8c6;
  --ice: #86d2d3;
  --amber: #e8bd74;
  --f-display: "FP Pixel", "Pixelify Sans", ui-monospace, "Courier New", monospace;
  --f-label: "Silkscreen", ui-monospace, "Courier New", monospace;
  --f-text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font-family: var(--f-text); font-size: 17px; line-height: 1.6;
}
.page {
  width: min(680px, 100%); margin: 0 auto;
  padding: max(24px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 56px max(16px, env(safe-area-inset-left, 0px));
}
a { color: var(--ice); text-underline-offset: 3px; }
a:hover { color: var(--amber); }
a:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* "Back to the game" at the top, a big enough target for a thumb */
.back {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; margin-bottom: 28px;
  font-family: var(--f-label); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  color: var(--ink); background: rgba(16, 18, 36, .92); box-shadow: inset 0 0 0 2px var(--ice);
}
.back:hover { color: var(--ink); filter: brightness(1.15); }

.lbl { margin: 0 0 6px; font-family: var(--f-label); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); }
h1, h2 { font-family: var(--f-display); font-weight: 600; letter-spacing: .05em; line-height: 1.15; }
h1 { margin: 0; font-size: clamp(32px, 8vw, 44px); }
h2 { margin: 40px 0 10px; font-size: 22px; color: var(--ice); }
.date { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
p, ul { margin: 0 0 14px; }
ul { padding-left: 22px; }
li { margin-bottom: 6px; }
li::marker { color: var(--muted); }
b { font-weight: 600; }

/* The short version, boxed at the top */
.short { margin: 28px 0 0; padding: 16px 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--edge); }
.short h2 { margin-top: 0; }
.short > :last-child { margin-bottom: 0; }
.short + p { margin-top: 28px; }

.foot { margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--edge); color: var(--muted); font-size: 15px; }
.foot a { margin-right: 18px; display: inline-block; padding: 8px 0; }
