/*
 * Styling for the terms and privacy pages.
 *
 * Deliberately standalone: these are plain static files under `public/`, not
 * Vite entry points. They have to be readable by a lawyer, a regulator, or a
 * player on a bus, and none of that should depend on the game's bundle
 * building — or on `vite.config.ts`, which is a file the app's own structure
 * keeps changing.
 */
:root {
  color-scheme: dark;
  --ink: #dbe6f2;
  --ink-soft: #93a5b8;
  --bg: #0b1017;
  --panel: #121a24;
  --line: #22303f;
  --accent: #6fa8c7;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-wrap: anywhere;
}

.legal {
  max-width: 44rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 6rem;
}

.legal-back a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
}

.legal-back a:hover { text-decoration: underline; }

h1 {
  margin: 1.5rem 0 0.25rem;
  font-size: 2rem;
  letter-spacing: -0.01em;
}

h2 {
  margin: 2.5rem 0 0.5rem;
  font-size: 1.15rem;
  color: var(--accent);
}

.legal-updated {
  margin: 0 0 2rem;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

ul { padding-left: 1.2rem; }
li { margin: 0.4rem 0; }

code {
  padding: 0.1em 0.35em;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  font-size: 0.85em;
}

a { color: var(--accent); }
nav { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
nav a { display: inline-flex; align-items: center; min-height: 44px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* A phone is the most likely place either of these is ever read. */
@media (max-width: 560px) {
  .legal { padding: 2rem 1rem 4rem; }
  h1 { font-size: 1.6rem; }
}
