/* League Race Director — shared styles for the legal pages (terms.html,
   privacy.html). Tokens, fonts, and the racing-stripe backdrop are lifted
   verbatim from index.html so the legal pages read as part of the site;
   everything below the token block is prose styling the homepage has no
   need for. Dark-only, matching index.html. */

:root {
  --orange: #F26522;
  --orange-dark: #D94E0F;
  --orange-glow: rgba(242, 101, 34, 0.3);
  --bg-dark: #0a0a0a;
  --bg-card: #141414;
  --bg-card-hover: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-muted: #666666;
  --border: #2a2a2a;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

/* Subtle racing stripe background — same treatment as the homepage. */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(90deg, transparent 0%, transparent 49%, rgba(242, 101, 34, 0.02) 49%, rgba(242, 101, 34, 0.02) 51%, transparent 51%, transparent 100%),
    radial-gradient(ellipse at top, rgba(242, 101, 34, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}

/* Narrower than the homepage's 1100px — this is long-form prose. */
.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ──────────────────────────────────────────────────────────── */

header {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.logo-link {
  display: inline-block;
  line-height: 0;
}

.logo {
  width: 88px;
  height: auto;
  margin-bottom: 24px;
  filter: drop-shadow(0 4px 20px var(--orange-glow));
}

h1 {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.dates {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ── Prose ───────────────────────────────────────────────────────────── */

main h2 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--orange);
  margin: 48px 0 14px;
}

main h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  margin: 32px 0 10px;
}

main p,
main li {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.7;
}

main ul {
  list-style: none;
  margin-bottom: 16px;
}

main li {
  padding-left: 20px;
  position: relative;
  margin-bottom: 10px;
}

main li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 1px;
  transform: rotate(45deg);
}

main strong {
  color: var(--text-primary);
  font-weight: 600;
}

main a {
  color: var(--orange);
  text-decoration: none;
}

main a:hover {
  text-decoration: underline;
}

code {
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: 0.88em;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.12em 0.4em;
  color: var(--text-primary);
  word-break: break-word;
}

/* Legal boilerplate that convention sets in caps — kept smaller and
   dimmer so a wall of capitals doesn't shout down the readable text. */
.caps {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ── Callouts ────────────────────────────────────────────────────────── */

.summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--orange);
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 8px;
}

.summary h2 {
  margin-top: 0;
}

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

.note {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 16px;
}

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

.contact {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 28px;
}

.contact p {
  margin-bottom: 6px;
}

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

/* ── Table ───────────────────────────────────────────────────────────── */

.table-scroll {
  overflow-x: auto;
  margin-bottom: 20px;
}

table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  border: 1px solid var(--border);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  color: var(--text-secondary);
}

/* Scope names must not break mid-token; .table-scroll absorbs the
   overflow on narrow screens. */
td code {
  white-space: nowrap;
}

th {
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* ── Footer ──────────────────────────────────────────────────────────── */

footer {
  margin-top: 64px;
  padding: 32px 0 48px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-nav {
  margin-bottom: 12px;
}

.footer-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--orange);
}

.footer-nav .sep {
  color: var(--text-muted);
  margin: 0 10px;
}

.copyright {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ── Responsive ──────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  header {
    padding: 32px 0 24px;
  }

  .logo {
    width: 72px;
  }

  .summary {
    padding: 22px 20px;
  }

  .note,
  .contact {
    padding: 18px 20px;
  }
}
