/* The game's legal pages (docs/legal.md) on acornidle.com/legal/, as the stores link them; the game
   shows the same articles in its own window (src/ui/LegalWindow.tsx). Everything here ships with the
   build: no font, picture or script from elsewhere (portals load nothing from outside). */
:root {
  --bg: #16211a;
  --card: #1f2d23;
  --fg: #ece6d4;
  --muted: #b9b09a;
  --gold: #f0c35a;
  --line: rgba(240, 195, 90, 0.28);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  padding: 24px max(16px, env(safe-area-inset-right, 0px)) 48px max(16px, env(safe-area-inset-left, 0px));
}
main { max-width: 760px; margin: 0 auto; }
.langs { display: flex; gap: 8px; justify-content: flex-end; margin-bottom: 12px; }
.langs button {
  min-width: 52px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: transparent; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer;
}
.langs button[aria-pressed='true'] { background: var(--gold); border-color: var(--gold); color: #2a1d08; font-weight: 700; }
article[hidden] { display: none; }
h1 { margin: 0 0 4px; color: var(--gold); font-size: 28px; line-height: 1.25; text-wrap: balance; }
.updated { margin: 0 0 24px; color: var(--muted); font-size: 14px; }
h2 { margin: 32px 0 8px; font-size: 19px; line-height: 1.35; text-wrap: balance; }
p, li { max-width: 68ch; }
ul { padding-left: 22px; }
li { margin: 4px 0; }
.card { margin: 12px 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.card p { margin: 6px 0; }
.mail { color: var(--gold); font-weight: 700; user-select: all; overflow-wrap: anywhere; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table { overflow-x: auto; }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
