/*
 * Shared styles for the Losers Queue static pages (privacy, terms,
 * how-it-works, logout).
 *
 * These pages are plain HTML with no React bundle, so they can't read the
 * CSS variables from src/index.css directly. Every colour, font, and radius
 * below is written as `var(--token, fallback)` — the same pattern
 * site-header.css uses — so that if a future page ever loads both files, the
 * app's real tokens win; here, only the fallback applies, and the fallback is
 * the current design-system value, so this renders identically to the app.
 */

:root {
  --bg-deep: oklch(13% 0.045 266);
  --bg-panel: oklch(18% 0.05 266);
  --bg-panel-2: oklch(22% 0.055 268);
  --border-soft: oklch(40% 0.06 266 / 0.22);
  --gold: oklch(82% 0.15 76);
  --gold-soft: oklch(82% 0.15 76 / 0.15);
  --gold-dim: oklch(62% 0.13 74);
  --gold-deep: oklch(44% 0.09 70);
  --text: oklch(97% 0.012 80);
  --text-dim: oklch(72% 0.02 90);
  --text-faint: oklch(56% 0.015 90);
  --font-head: 'Sora', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --radius-lg: 8px;
  --radius-md: 5px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--bg-deep);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* The header markup lives in each page and is styled by /site-header.css,
   shared with the React app's navbar. */

.legal-main {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

.legal-main h1 {
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.2px;
  margin-bottom: 8px;
}

.legal-updated {
  color: var(--text-faint);
  font-size: 13px;
  margin-bottom: 8px;
}

.legal-intro {
  color: var(--text-dim);
  font-size: 14px;
  border-left: 3px solid var(--gold-deep);
  padding-left: 16px;
  margin: 24px 0 8px;
}

.legal-main h2 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.2px;
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-soft);
}

.legal-main p { font-size: 14px; margin-bottom: 14px; }

.legal-main ul {
  margin: 0 0 16px 22px;
  font-size: 14px;
}

.legal-main li { margin-bottom: 8px; }

.legal-main a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in oklch, var(--gold) 40%, transparent);
}

.legal-main a:hover { color: var(--text); border-bottom-color: var(--text); }

.legal-main strong { color: var(--text); }

/* Centered variant + button, used by the logout confirmation page */
.legal-center { text-align: center; padding-top: 56px; }

.legal-center p {
  color: var(--text-dim);
  max-width: 440px;
  margin: 0 auto 14px;
}

.legal-button {
  display: inline-block;
  margin-top: 20px;
  padding: 11px 26px;
  background-color: transparent;
  color: var(--text) !important;
  border: 1px solid var(--gold) !important;
  border-radius: var(--radius-md);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-size: 13px;
  font-weight: 700;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.legal-button:hover {
  background-color: var(--gold);
  color: var(--bg-deep) !important;
}

/* Table + formula/callout blocks, used by the "How it works" page */
.legal-table-wrap {
  overflow-x: auto;
  margin: 0 0 16px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.legal-table th,
.legal-table td {
  text-align: left;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border-soft);
}

.legal-table th {
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.legal-table td { color: var(--text-dim); }
.legal-table td:first-child { color: var(--text); font-weight: 600; }
.legal-table tr:last-child td { border-bottom: none; }

.legal-formula {
  font-family: 'Consolas', 'SF Mono', Menlo, monospace;
  font-size: 12.5px;
  background-color: var(--bg-panel-2);
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--gold-deep);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin: 0 0 16px;
  color: var(--text-dim);
  overflow-x: auto;
  white-space: pre;
}

.legal-callout {
  margin: 0 0 16px;
  padding: 14px 16px;
  background-color: var(--gold-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  font-size: 13px;
}

.legal-callout p:last-child { margin-bottom: 0; }

.legal-steps {
  margin: 0 0 16px;
  padding-left: 0;
  list-style: none;
  counter-reset: legal-step;
}

.legal-steps li {
  counter-increment: legal-step;
  position: relative;
  padding-left: 38px;
  margin-bottom: 16px;
}

.legal-steps li::before {
  content: counter(legal-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.legal-disclaimer {
  margin-top: 36px;
  padding: 14px 18px;
  background-color: var(--bg-panel-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  font-size: 11px;
  color: var(--text-faint);
  line-height: 1.6;
}

.legal-footer {
  max-width: 780px;
  margin: 0 auto;
  padding: 22px 24px;
  border-top: 1px solid var(--border-soft);
  text-align: center;
}

.legal-footer a {
  color: var(--text-faint);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.legal-footer a:hover { color: var(--gold); }

@media (max-width: 640px) {
  .legal-main {
    padding: 24px 18px 48px;
  }

  .legal-main h1 {
    font-size: 24px;
  }

  .legal-main h2 {
    font-size: 16px;
    margin: 26px 0 10px;
  }
}
