/* ──────────────────────────────────────────────────────────
   Double Boo — shared stylesheet
   Used by both the landing page (/) and the privacy policy (/privacy/)
   No JS, no external fonts, no external dependencies.
   Light + dark mode via prefers-color-scheme.
   ────────────────────────────────────────────────────────── */

:root {
  --bg: #fafafa;
  --fg: #111;
  --fg-muted: #555;
  --accent: #d946ef;        /* magenta — matches the game icon */
  --accent-dim: #f5d0fe;
  --border: #e5e5e5;
  --max-width: 720px;
  --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --fg: #f5f5f5;
    --fg-muted: #9a9a9a;
    --accent: #e879f9;
    --accent-dim: #4a1a55;
    --border: #2a2a2a;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { text-decoration-thickness: 2px; }

/* ──────────────────────────────────────────────────────────
   LANDING PAGE
   Big DOUBLE BOO wordmark centered in the viewport.
   ────────────────────────────────────────────────────────── */

body.landing {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.landing-main {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.wordmark {
  font-size: clamp(56px, 16vw, 180px);
  line-height: 0.9;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--fg);
  /* subtle magenta tint overlay that intensifies on hover */
  background: linear-gradient(135deg, var(--fg) 0%, var(--fg) 60%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  user-select: none;
  transition: letter-spacing 0.3s ease;
}
.wordmark:hover {
  letter-spacing: -0.02em;
}

.footer-nav a {
  font-size: 14px;
  color: var(--fg-muted);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.footer-nav a:hover {
  color: var(--accent);
}

/* ──────────────────────────────────────────────────────────
   PRIVACY POLICY PAGE
   Readable typography, responsive tables, mobile-first.
   ────────────────────────────────────────────────────────── */

body.policy {
  padding: 0;
}

.policy-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 20px 80px;
}

.policy-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
  margin-bottom: 32px;
}

.back-link {
  display: inline-block;
  font-size: 13px;
  color: var(--fg-muted);
  text-decoration: none;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}
.back-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.policy h1 {
  font-size: clamp(28px, 6vw, 36px);
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--fg);
}

.policy h2 {
  font-size: 22px;
  line-height: 1.3;
  margin: 40px 0 12px;
  color: var(--fg);
  border-left: 4px solid var(--accent);
  padding-left: 12px;
}

.policy h3 {
  font-size: 18px;
  margin: 28px 0 8px;
  color: var(--fg);
}

.policy p {
  margin: 0 0 16px;
  color: var(--fg);
}

.policy .dates {
  color: var(--fg-muted);
  font-size: 14px;
}
.policy .dates strong {
  color: var(--fg);
}

.policy ul,
.policy ol {
  padding-left: 20px;
  margin: 0 0 16px;
}
.policy li {
  margin-bottom: 8px;
}

.policy strong { color: var(--fg); }

.policy hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

.table-wrap {
  overflow-x: auto;
  margin: 16px 0 24px;
}
.policy table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}
.policy th,
.policy td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.policy th {
  background: var(--accent-dim);
  color: var(--fg);
  font-weight: 600;
}

.callout {
  background: var(--accent-dim);
  border-left: 4px solid var(--accent);
  padding: 14px 18px;
  border-radius: var(--radius);
  margin: 20px 0;
  color: var(--fg);
}

.policy-footer {
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
}
