/* Styles for the standalone Terms and Privacy pages. Light unless the reader has chosen dark, in the
   game or with the switch on these pages (legal.js); the choice is shared with the game. */
:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --text: #1c1e24;
  --muted: #667085;
  --border: #dcdfe5;
  --accent: #2f62e8;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}

:root[data-theme='dark'] {
  --bg: #16181d;
  --surface: #1f2229;
  --text: #e8eaed;
  --muted: #9aa1ad;
  --border: #343944;
  --accent: #7ea4ff;
  color-scheme: dark;
}

.theme-switch {
  float: right;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: inherit;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

body {
  margin: 0;
  padding: 1.5rem 1rem 3rem;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem clamp(1rem, 4vw, 2.25rem) 2rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

h1 {
  margin: 0.5rem 0 0;
  font-size: 1.9rem;
  letter-spacing: -0.02em;
}

h2 {
  margin: 2rem 0 0.4rem;
  font-size: 1.2rem;
}

h3 {
  margin: 1.2rem 0 0.2rem;
  font-size: 1rem;
}

p, ul {
  margin: 0.5rem 0;
}

ul {
  padding-left: 1.3rem;
}

li {
  margin: 0.3rem 0;
}

a {
  color: var(--accent);
}

.muted {
  color: var(--muted);
}

.back {
  margin: 0;
  font-size: 0.9rem;
}

.contact {
  font-weight: 600;
}
