/* ─── Reset ─────────────────────────────────────────────────────────────── */

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

/* ─── Tokens ─────────────────────────────────────────────────────────────── */

:root {
  --accent:  #c8ff00;
  --text:    #f5f2eb;
  --muted:   rgba(245, 242, 235, 0.5);
  --surface: rgba(255, 255, 255, 0.04);
  --border:  rgba(255, 255, 255, 0.08);
  --bg:      #0f1a12;
  --court:   #1a3a20;
}

/* ─── Base ───────────────────────────────────────────────────────────────── */

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2 {
  font-family: 'Bebas Neue', sans-serif;
  line-height: 0.9;
  letter-spacing: 0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ─── Utilities ──────────────────────────────────────────────────────────── */

.eyebrow {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.6875rem;   /* 11px */
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ─── Container ──────────────────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 3rem;
}

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

.footer {
  border-top: 1px solid var(--border);
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer__logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
}

.footer__copy {
  font-size: 0.8125rem;
  color: var(--muted);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
}

.footer__links a {
  font-size: 0.875rem;
  color: var(--muted);
  transition: color 0.2s ease;
}

.footer__links a:hover {
  color: var(--text);
}

/* ─── Legal pages ──────────────────────────────────────────────────────── */

.page-hero {
  padding: 10rem 0 5rem;
  border-bottom: 1px solid var(--border);
}
.page-hero__eyebrow { margin-bottom: 1rem; }
.page-hero__title {
  font-size: clamp(3rem, 6vw, 5.5rem);
  margin-bottom: 1.25rem;
}
.page-hero__meta {
  font-size: 0.875rem;
  color: var(--muted);
}
.page-hero__meta a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border);
}
.page-hero__meta a:hover { text-decoration-color: var(--muted); }

.legal-body { padding: 5rem 0 7rem; }
.legal-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 5rem;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 6rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.legal-toc a {
  font-size: 0.8125rem;
  color: var(--muted);
  transition: color 0.2s;
  line-height: 1.5;
}
.legal-toc a:hover { color: var(--text); }

.legal-content { display: flex; flex-direction: column; gap: 3rem; }
.legal-section { display: flex; flex-direction: column; gap: 1rem; }
.legal-section h2 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.4;
  color: var(--text);
}
.legal-section p,
.legal-section li {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.8;
}
.legal-section h3 {
  margin-top: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
}
.legal-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-left: 1rem;
}
.legal-section ul li::before {
  content: '—';
  margin-right: 0.5rem;
  color: var(--accent);
  opacity: 0.6;
}
.legal-section a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border);
}
.legal-section a:hover { text-decoration-color: var(--muted); }
.legal-section strong { color: var(--text); font-weight: 500; }

.legal-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  line-height: 1.6;
}
.legal-table th,
.legal-table td {
  padding: 0.875rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}
.legal-table th {
  font-weight: 500;
  color: var(--text);
  background: var(--surface);
}
.legal-table td { color: var(--muted); }
.legal-table tr:last-child td { border-bottom: 0; }

/* Support pages */

.support-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.support-page main { flex: 1; }
.support-page .page-hero { padding: clamp(3rem, 8vw, 6rem) 0 3rem; }
.support-body { padding: 3rem 0 5rem; }
.support-content { max-width: 42rem; }
.support-content p { color: var(--text); }
.support-content .support-email {
  display: inline-block;
  padding-block: 0.5rem;
  color: var(--accent);
  font-size: clamp(1rem, 4vw, 1.5rem);
  font-weight: 500;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .legal-grid { grid-template-columns: 1fr; gap: 3rem; }
  .legal-toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 0.75rem 1.5rem; }
}

/* ─── Media query ≤ 900px ────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .container {
    padding-inline: 1.5rem;
  }

  .footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
}
