/* Shared by terms.html and privacy.html.
 *
 * These are static pages served straight out of public/, deliberately not part
 * of the app: they must render for someone with the bundle blocked, a dead
 * WebSocket or an ad blocker eating Privy, because "the terms would not load"
 * is not an acceptable answer about the document that governs someone's money.
 * That is also why the system font stack is used rather than the brand faces —
 * the woff2 files are bundled with hashed names and are not addressable here.
 */

:root {
  color-scheme: light;
  --bg: #e9edf3;
  --panel: #ffffff;
  --text: #131a22;
  --muted: #56646f;
  --muted-2: #8d99a6;
  --border: #dbe2ea;
  --accent: #0077ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 2.5rem 1.25rem 5rem;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "Segoe UI", Roboto, Inter, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

.doc {
  max-width: 46rem;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.mark {
  display: inline-block;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--text);
}

.mark span {
  color: var(--accent);
}

h1 {
  margin: 1.5rem 0 0.25rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.2;
}

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

h2 {
  margin: 2.25rem 0 0.5rem;
  font-size: 1.1rem;
  line-height: 1.35;
}

p,
li {
  color: var(--muted);
}

li {
  margin-bottom: 0.4rem;
}

strong {
  color: var(--text);
}

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

/* Anything a player could lose money to gets stated plainly rather than buried
   mid-paragraph in the same grey as everything else. */
.callout {
  margin: 1.25rem 0;
  padding: 1rem 1.25rem;
  background: rgba(0, 119, 255, 0.06);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
}

.callout p {
  margin: 0;
  color: var(--text);
}

.back {
  display: inline-block;
  margin-top: 2.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11161c;
    --panel: #171d25;
    --text: #eef2f6;
    --muted: #a9b6c2;
    --muted-2: #7c8a97;
    --border: #263140;
  }
}
