/* ==========================================================================
   Schulte Table — marketing site
   Brand tokens mirror the app's arcade theme (src/styles/colors.ts,
   src/styles/arcade.ts) and its three typefaces, so the site and the product
   read as the same thing: peach neon on onyx, Orbitron display, mono labels.
   ========================================================================== */

:root {
  --peach-100: #fff2ec;
  --peach-200: #fbe6dc;
  --peach-300: #f5dcce;
  --peach: #ffab91;
  --peach-dark: #ff8565;
  --peach-deep: #e5643f;

  --onyx-900: #050403;
  --onyx-800: #0f0a08;
  --onyx-700: #17100c;
  --onyx-600: #1a110d;
  --onyx-500: #2a1a15;

  --green: #4aa856;
  --diamond: #3aa3d1;
  --gold: #ffd700;

  --bg: var(--peach-200);
  --bg-top: var(--peach-100);
  --surface: #ffffff;
  --surface-2: var(--peach-100);
  --border: rgba(255, 133, 101, 0.22);
  --border-strong: rgba(255, 133, 101, 0.4);

  --text: #2b1810;
  --text-2: rgba(43, 24, 16, 0.72);
  --text-3: rgba(43, 24, 16, 0.48);

  --accent: var(--peach-deep);
  --accent-soft: rgba(255, 171, 145, 0.2);

  --grad: linear-gradient(135deg, #ffab91 0%, #ff8565 60%, #e5643f 100%);
  --grad-onyx: linear-gradient(160deg, #2a1a15 0%, #0f0a08 60%, #050403 100%);

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;

  --shadow-sm: 0 1px 2px rgba(43, 24, 16, 0.05), 0 4px 14px rgba(43, 24, 16, 0.06);
  --shadow: 0 14px 34px rgba(43, 24, 16, 0.1);
  --shadow-lg: 0 24px 60px rgba(229, 100, 63, 0.24);

  --wrap: 1120px;
  --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Orbitron', 'Poppins', -apple-system, BlinkMacSystemFont,
    'Segoe UI', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas,
    monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--onyx-800);
    --bg-top: var(--onyx-500);
    --surface: var(--onyx-700);
    --surface-2: var(--onyx-600);
    --border: rgba(255, 171, 145, 0.2);
    --border-strong: rgba(255, 171, 145, 0.35);

    --text: #ffffff;
    --text-2: rgba(255, 255, 255, 0.68);
    --text-3: rgba(255, 255, 255, 0.42);

    --accent: var(--peach);
    --accent-soft: rgba(255, 171, 145, 0.12);

    --green: #6dd47a;
    --diamond: #8fdcff;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 14px rgba(0, 0, 0, 0.3);
    --shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6);
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.68;
  color: var(--text);
  background:
    radial-gradient(ellipse 900px 520px at 50% -180px, var(--bg-top), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

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

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
}

/* Keyboard users must always be able to see where they are. */
:focus-visible {
  outline: 3px solid var(--peach-dark);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: contain;
  border: 1px solid var(--border-strong);
}

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

.nav__links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.nav__links a {
  color: var(--text-2);
}

.nav__links a:hover {
  color: var(--accent);
  text-decoration: none;
}

@media (max-width: 760px) {
  .nav__links {
    gap: 16px;
    font-size: 12.5px;
  }
  .nav__links .nav__hide-sm {
    display: none;
  }
  .brand {
    font-size: 15px;
  }
}

/* A phone has room for the wordmark and two links, and nothing more — the
   rest of the nav lives in the footer anyway. */
@media (max-width: 520px) {
  .nav__inner {
    height: 60px;
    gap: 10px;
  }
  .nav__links {
    gap: 14px;
    font-size: 11.5px;
  }
  .nav__links .nav__hide-xs {
    display: none;
  }
  .brand {
    font-size: 13px;
    gap: 8px;
  }
  .brand img {
    width: 28px;
    height: 28px;
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease,
    border-color 0.16s ease, color 0.16s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--peach);
  border-color: var(--peach-dark);
  color: #2b1810;
  box-shadow: 0 10px 26px rgba(255, 133, 101, 0.4);
}

.btn--primary:hover {
  background: var(--peach-dark);
  box-shadow: 0 16px 34px rgba(255, 133, 101, 0.48);
}

.btn--ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.btn--ghost:hover {
  border-color: var(--peach-dark);
  color: var(--accent);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 78px 0 72px;
}

/* Faint arcade grid, echoing the app's board. */
.hero::before {
  content: '';
  position: absolute;
  inset: -40% 0 auto;
  height: 780px;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 42%, #000, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 42%, #000, transparent 72%);
  opacity: 0.75;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--border-strong);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  font-weight: 800;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: -0.005em;
}

.hero h1 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lede {
  font-size: 18px;
  color: var(--text-2);
  max-width: 33rem;
  margin: 0 0 32px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.hero__note {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: var(--text-3);
  margin: 0;
}

.store {
  display: inline-block;
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.store:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.store img {
  height: 56px;
}

/* ---- Phone mockup: a flat recreation of the app's Schulte board ---- */
.mock {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 318px;
  aspect-ratio: 9 / 17.5;
  border-radius: 42px;
  padding: 12px;
  background: var(--grad-onyx);
  box-shadow: var(--shadow-lg);
}

.mock__screen {
  height: 100%;
  border-radius: 32px;
  background: var(--onyx-800);
  border: 1px solid rgba(255, 171, 145, 0.22);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 24px 15px 16px;
  color: #fff;
}

.mock__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.55);
}

.mock__bar b {
  font-family: var(--font-display);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: #fff;
}

.mock__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.mock__stat {
  border-radius: 11px;
  background: var(--onyx-700);
  border: 1px solid rgba(255, 171, 145, 0.2);
  padding: 8px 4px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--peach);
}

.mock__stat small {
  display: block;
  font-family: var(--font-mono);
  font-size: 7.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.12em;
}

.mock__timer {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--peach);
  text-shadow: 0 0 18px rgba(255, 171, 145, 0.45);
}

.mock__board {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-auto-rows: 1fr;
  gap: 5px;
}

.mock__cell {
  border-radius: 8px;
  background: var(--onyx-700);
  border: 1px solid rgba(255, 171, 145, 0.16);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.82);
}

.mock__cell.is-done {
  background: rgba(255, 171, 145, 0.14);
  border-color: rgba(255, 171, 145, 0.4);
  color: rgba(255, 255, 255, 0.3);
}

.mock__cell.is-next {
  background: var(--peach);
  border-color: var(--peach-dark);
  color: #2b1810;
  box-shadow: 0 0 16px rgba(255, 171, 145, 0.55);
}

.mock__tabs {
  display: flex;
  justify-content: space-around;
  padding-top: 9px;
  border-top: 1px solid rgba(255, 171, 145, 0.2);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.38);
}

.mock__tabs .is-active {
  color: var(--peach);
}

@media (max-width: 900px) {
  .hero {
    padding: 52px 0 46px;
  }
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 44px;
    text-align: center;
  }
  .hero__lede {
    margin-left: auto;
    margin-right: auto;
  }
  .hero__cta {
    justify-content: center;
  }
}

/* ==========================================================================
   Stat band
   ========================================================================== */
.band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 92px;
}

.band__cell {
  background: var(--surface);
  padding: 26px 14px;
  text-align: center;
}

.band__n {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.band__l {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

@media (max-width: 620px) {
  .band {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 64px;
  }
  .band__n {
    font-size: 26px;
  }
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
  padding-bottom: 92px;
}

.section__head {
  max-width: 42rem;
  margin: 0 auto 46px;
  text-align: center;
}

.section__head h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section__head p {
  font-size: 17px;
  color: var(--text-2);
  margin: 0;
}

.kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

/* ---- Mode cards (the two game modes) ---- */
.modes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.mode {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  border: 2px solid var(--border-strong);
  background: var(--surface);
  box-shadow: var(--shadow);
}

/* Neon lip along the top edge, like the app's raised arcade controls. */
.mode::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--grad);
}

.mode::after {
  content: '';
  position: absolute;
  right: -70px;
  top: -90px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: var(--accent-soft);
  pointer-events: none;
}

.mode__icon {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: var(--accent-soft);
  border: 2px solid var(--border-strong);
  display: grid;
  place-items: center;
  font-size: 28px;
  margin-bottom: 20px;
}

.mode h3 {
  position: relative;
  font-size: 23px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.mode p {
  position: relative;
  color: var(--text-2);
  margin: 0 0 20px;
  font-size: 15.5px;
}

.mode ul {
  position: relative;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 15px;
}

.mode li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 9px;
  color: var(--text-2);
}

.mode li::before {
  content: '▸';
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--accent);
}

@media (max-width: 860px) {
  .modes {
    grid-template-columns: 1fr;
  }
  .mode {
    padding: 30px 24px;
  }
}

/* ---- Feature grid ---- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 23px;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.card p {
  margin: 0;
  color: var(--text-2);
  font-size: 15px;
}

.tag {
  display: inline-block;
  margin-left: 7px;
  padding: 2px 8px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  vertical-align: middle;
  color: #2b1810;
  background: var(--peach);
}

.tag--soon {
  color: var(--text-2);
  background: transparent;
  border: 1px solid var(--border-strong);
}

@media (max-width: 940px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Split feature (progression) ---- */
.split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 54px;
  align-items: center;
}

.split h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.split > div > p {
  color: var(--text-2);
  font-size: 16.5px;
}

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

.steps li {
  position: relative;
  counter-increment: step;
  padding-left: 52px;
  margin-bottom: 22px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 2px solid var(--border-strong);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
}

.steps b {
  display: block;
  font-weight: 600;
  font-size: 16.5px;
}

.steps span {
  color: var(--text-2);
  font-size: 15px;
}

.panel {
  background: var(--surface);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow);
}

.panel__row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.panel__row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.panel__row:first-child {
  padding-top: 0;
}

.panel__badge {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 20px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  flex: none;
}

.panel__row b {
  display: block;
  font-size: 15.5px;
  font-weight: 600;
}

.panel__row span {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--text-3);
}

.panel__val {
  margin-left: auto;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
  font-size: 15px;
  white-space: nowrap;
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
    gap: 38px;
  }
}

/* ---- Rank ladder ---- */
.ladder {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.rank {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 10px;
  text-align: center;
}

.rank__emoji {
  font-size: 24px;
}

.rank__t {
  display: block;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 6px;
}

.rank__n {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-3);
}

@media (max-width: 780px) {
  .ladder {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 460px) {
  .ladder {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---- CTA ---- */
.cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 62px 32px;
  text-align: center;
  background: var(--grad-onyx);
  border: 2px solid var(--border-strong);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 171, 145, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 171, 145, 0.09) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
}

.cta > * {
  position: relative;
}

.cta h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.cta p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.78);
  max-width: 34rem;
  margin: 0 auto 28px;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
}

.cta .btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 171, 145, 0.5);
}

.cta .btn--ghost:hover {
  color: var(--peach);
  border-color: var(--peach);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 44px 0 40px;
  margin-top: 92px;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  justify-content: space-between;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.03em;
}

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

.footer__copy {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--text-3);
  margin: 20px 0 0;
}

/* ==========================================================================
   Legal pages (privacy / terms)
   ========================================================================== */
.legal {
  padding: 52px 0 0;
}

.legal__head {
  max-width: 46rem;
  margin-bottom: 36px;
}

.legal__head h1 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.legal__head p {
  color: var(--text-2);
  margin: 0 0 16px;
}

.legal__updated {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}

.legal__body {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 52px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 92px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.toc h2 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px;
}

.toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
}

.toc li {
  margin-bottom: 9px;
}

.toc a {
  color: var(--text-2);
}

.toc a:hover {
  color: var(--accent);
  text-decoration: none;
}

.legal article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 38px 38px;
  box-shadow: var(--shadow-sm);
}

.legal section {
  padding-top: 28px;
  scroll-margin-top: 92px;
}

.legal h2 {
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.legal h3 {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 20px 0 8px;
}

.legal p {
  color: var(--text-2);
  margin: 0 0 14px;
}

.legal ul {
  margin: 0 0 14px;
  padding-left: 0;
  list-style: none;
}

.legal ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 9px;
  color: var(--text-2);
}

.legal ul li::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent);
}

.callout {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-top: 8px;
}

.callout p {
  margin: 0;
  color: var(--text-2);
  font-size: 15px;
}

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

@media (max-width: 900px) {
  .legal__body {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .toc {
    position: static;
  }
  .legal article {
    padding: 8px 22px 28px;
  }
}

/* Respect reduced-motion preferences. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
