/* Privacy policy and terms pages: readable, theme-aware, same look as the game. */
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/fredoka-latin.woff2') format('woff2');
}
:root {
  --bg: #f3effb; --surface: #ffffff; --ink: #221a46; --muted: #6f6894; --line: rgba(84, 66, 160, .14);
  --accent: #e8455f; --tile-top: #fffaf1; --tile-bot: #f6e6c8; --tile-edge: #dcc394;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #110e29; --surface: #1c1740; --ink: #f4f1ff; --muted: #a9a3d1; --line: rgba(255, 255, 255, .1); --accent: #ff6b7d; color-scheme: dark; }
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  padding: calc(env(safe-area-inset-top, 0px) + 20px) 16px calc(env(safe-area-inset-bottom, 0px) + 40px);
}
main { max-width: 720px; margin: 0 auto; }
header.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.back { display: inline-flex; align-items: center; gap: 8px; font: 700 1.05rem 'Fredoka', system-ui, sans-serif; color: var(--ink); text-decoration: none; }
.back i { font-style: normal; display: inline-grid; place-items: center; width: 26px; height: 28px; border-radius: 7px; font-size: .95rem;
  background: linear-gradient(180deg, var(--tile-top), var(--tile-bot)); color: #2a1f4a; box-shadow: 0 3px 0 var(--tile-edge); }
.langs { display: flex; gap: 6px; }
.langs a { font: 600 .85rem 'Fredoka', system-ui, sans-serif; color: var(--muted); text-decoration: none; padding: 5px 11px; border-radius: 99px; border: 1px solid var(--line); }
.langs a[aria-current="true"] { color: var(--ink); background: var(--surface); }
article { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(18px, 4vw, 34px); }
h1 { font: 700 clamp(1.6rem, 5vw, 2.1rem)/1.2 'Fredoka', system-ui, sans-serif; margin: 0 0 4px; }
h2 { font: 700 1.2rem/1.3 'Fredoka', system-ui, sans-serif; margin: 28px 0 8px; }
.meta { color: var(--muted); font-size: .9rem; margin: 0 0 18px; }
p, li { margin: 0 0 10px; }
ul { padding-left: 22px; }
a { color: var(--accent); }
table { width: 100%; border-collapse: collapse; font-size: .93rem; margin: 8px 0 14px; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { font-weight: 600; color: var(--muted); }
.tablewrap { overflow-x: auto; }
.summary { border-left: 4px solid var(--accent); padding: 10px 14px; background: color-mix(in srgb, var(--accent) 7%, transparent); border-radius: 0 12px 12px 0; margin: 0 0 18px; }
[data-lang] { display: none; }
html[lang="en"] [data-lang="en"], html[lang="fi"] [data-lang="fi"] { display: block; }
footer { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 18px; }
