/* Privacy and Terms pages (public/*.html, public/ko/*.html). Tokens from DESIGN.md / src/style.css.
   The game is dark only; these text pages also follow a light system setting. */
@font-face { font-family: Anton; src: url('/fonts/Anton-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Barlow; src: url('/fonts/Barlow-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: Barlow; src: url('/fonts/Barlow-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('/fonts/BarlowCondensed-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --pit: #0b0807;
  --slab: #15100d;
  --edge: #3a2e26;
  --bone: #ede3d3;
  --muted: #a8988a;
  --gold: #f5b82e;
  --link: #ffd77a;
  --display: Anton, Impact, 'Arial Narrow', sans-serif;
  --label: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --pit: #f6f1e9;
    --slab: #ece4d8;
    --edge: #d3c6b4;
    --bone: #1a1310;
    --muted: #5e5248;
    --gold: #a8740a;
    --link: #7a4f00;
    color-scheme: light;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--pit); color: var(--bone); font: 500 16px/1.6 Barlow, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
html:lang(ko) body { font-family: Barlow, 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', system-ui, sans-serif; word-break: keep-all; }
main { max-width: 720px; margin: 0 auto; padding: 24px 16px 64px; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 24px;
  font: 700 14px/1.2 var(--label); letter-spacing: 0.08em; text-transform: uppercase; }
h1 { font: 400 40px/1.05 var(--display); letter-spacing: 0.01em; margin: 0 0 8px; }
html:lang(ko) h1 { font-family: 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', sans-serif; font-weight: 800; font-size: 34px; }
h2 { font: 700 20px/1.25 var(--label); letter-spacing: 0.04em; text-transform: uppercase; color: var(--bone); margin: 32px 0 8px; border-left: 4px solid var(--gold); padding-left: 10px; }
html:lang(ko) h2 { font-family: inherit; text-transform: none; letter-spacing: 0; font-weight: 700; }
p, ul, table { margin: 0 0 12px; }
ul { padding-left: 1.25em; }
li { margin-bottom: 6px; }
.meta { color: var(--muted); margin-bottom: 24px; }
a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 8px; border-top: 1px solid var(--edge); }
th { font: 700 14px/1.3 var(--label); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
html:lang(ko) th { font-family: inherit; text-transform: none; letter-spacing: 0; }
code { font: 14px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--slab); padding: 1px 4px; border-radius: 4px; }
footer { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--edge); color: var(--muted); font-size: 14px; }
