/* OutGhost — site vitrine
   Tokens repris du design system de l'app (lib/theme/og_colors.dart). */

/* Polices auto-hébergées (aucun appel à Google Fonts au chargement). */
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/figtree-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/figtree-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(../fonts/space-grotesk-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(../fonts/space-grotesk-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Tanzanite — bleu nuit */
  --tz-950: #050b1a;
  --tz-900: #0a1428;
  --tz-800: #0e1b3c;
  --tz-700: #16295a;
  --tz-600: #1f3a7a;
  --tz-500: #2c4f9e;
  --tz-400: #4a6fc4;
  --tz-300: #7593d8;
  --tz-200: #a6bcea;
  --tz-100: #d3def6;
  --tz-50: #edf2fc;

  /* Ghost — lueur spectrale */
  --ghost-600: #c78f00;
  --ghost-500: #e5a800;
  --ghost-400: #ffbe0f;
  --ghost-300: #ffd45c;

  /* États */
  --success: #3ddc97;
  --success-deep: #0f6b52;
  --danger: #ff5470;

  /* Neutres froids */
  --ink-100: #f4f7fd;
  --ink-200: #c9d3e6;
  --ink-300: #93a1be;
  --ink-400: #5d6b8c;
  --ink-500: #39445f;

  /* Alias sémantiques (thème clair) */
  --bg: var(--tz-50);
  --surface: #ffffff;
  --fg1: var(--tz-800);
  --fg2: var(--ink-500);
  --fg3: var(--ink-400);
  --border-soft: rgba(14, 27, 60, 0.1);
  --border: rgba(14, 27, 60, 0.2);
  --primary: var(--tz-500);
  --primary-hover: var(--tz-600);
  --accent: var(--ghost-500);

  --shadow-card: 0 1px 2px rgba(14, 27, 60, 0.06), 0 6px 16px rgba(14, 27, 60, 0.08);
  --shadow-primary: 0 10px 24px rgba(43, 63, 144, 0.38);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;

  --radius: 16px;
  --container: 1120px;
  --gutter: 20px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg1);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--primary);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--ghost-400);
  color: var(--tz-950);
  padding: 8px 14px;
  border-radius: 8px;
}

:focus-visible {
  outline: 3px solid var(--ghost-400);
  outline-offset: 3px;
}

/* ---------- Eyebrow / boutons ---------- */

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ghost-600);
  margin-bottom: 14px;
}
.dark .eyebrow {
  color: var(--ghost-400);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-ghost {
  background: var(--ghost-400);
  color: var(--tz-950);
  box-shadow: 0 10px 28px rgba(255, 190, 15, 0.28);
}
.btn-ghost:hover {
  background: var(--ghost-300);
}

.btn-outline {
  background: rgba(244, 247, 253, 0.06);
  color: var(--ink-100);
  border-color: rgba(244, 247, 253, 0.2);
}
.btn-outline:hover {
  background: rgba(244, 247, 253, 0.12);
}

.store-btn {
  flex-direction: row;
  text-align: left;
  line-height: 1.15;
  padding: 11px 22px 11px 18px;
}
.store-btn small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.8;
}
.store-btn span {
  font-size: 17px;
}

/* ---------- Navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 11, 26, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(244, 247, 253, 0.08);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink-100);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #fff;
  padding: 3px;
}
.brand b {
  color: var(--ghost-400);
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--ink-200);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.nav-links a:hover {
  color: #fff;
}
.nav-links .btn {
  padding: 10px 18px;
  font-size: 15px;
  color: var(--tz-950);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--ink-100);
  padding: 8px;
  cursor: pointer;
}
.nav-toggle svg {
  width: 26px;
  height: 26px;
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--tz-950);
    border-bottom: 1px solid rgba(244, 247, 253, 0.08);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links li a:not(.btn) {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid rgba(244, 247, 253, 0.08);
  }
  .nav-links .btn {
    margin-top: 16px;
    justify-content: center;
  }
}

/* ---------- Sections ---------- */

.section {
  padding: 104px 0;
}
.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(32px, 4.6vw, 48px);
  font-weight: 800;
}
.section-head p {
  margin-top: 18px;
  color: var(--fg2);
  font-size: 18px;
}

.dark {
  background: var(--tz-950);
  color: var(--ink-100);
}
.dark .section-head p,
.dark .muted {
  color: var(--ink-200);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 96px;
  background:
    radial-gradient(900px 520px at 78% 30%, rgba(44, 79, 158, 0.45), transparent 65%),
    radial-gradient(520px 380px at 12% 88%, rgba(255, 190, 15, 0.1), transparent 70%),
    var(--tz-950);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}

.hero h1 {
  font-size: clamp(42px, 6.4vw, 76px);
  font-weight: 800;
  letter-spacing: -0.035em;
}
.hero h1 em {
  font-style: normal;
  color: var(--ghost-400);
  text-shadow: 0 0 32px rgba(255, 190, 15, 0.35);
}

.hero-lead {
  margin-top: 24px;
  max-width: 520px;
  font-size: 19px;
  color: var(--ink-200);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--ink-300);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 12% 8%;
  background: radial-gradient(closest-side, rgba(255, 190, 15, 0.22), transparent);
  filter: blur(20px);
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .hero {
    padding-top: 48px;
  }
}

/* ---------- Téléphone (maquette CSS) ---------- */

.phone {
  position: relative;
  width: 300px;
  max-width: 100%;
  aspect-ratio: 300 / 620;
  border-radius: 46px;
  padding: 11px;
  background: linear-gradient(145deg, #25324f, #0b1224);
  box-shadow:
    0 0 0 1px rgba(244, 247, 253, 0.12) inset,
    0 40px 80px rgba(0, 0, 0, 0.5),
    0 12px 24px rgba(0, 0, 0, 0.35);
}
.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: var(--tz-950);
  font-family: var(--font-body);
}
.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 26px;
  border-radius: 20px;
  background: #000;
  z-index: 5;
}

/* Écran de course (thème nuit) */
.live-map {
  position: absolute;
  inset: 0 0 44% 0;
  background: #0b1530;
}
.live-map svg {
  width: 100%;
  height: 100%;
}
.live-top {
  position: absolute;
  top: 46px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(14, 27, 60, 0.85);
  color: #fff;
  font-size: 11px;
  z-index: 3;
}
.live-top strong {
  display: block;
  font-size: 13px;
}
.live-top .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(255, 84, 112, 0.25);
  animation: pulse 1.6s ease-in-out infinite;
}

.live-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 47%;
  padding: 18px 18px 16px;
  border-radius: 26px 26px 0 0;
  background: var(--tz-800);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.5);
  color: var(--ink-100);
  display: flex;
  flex-direction: column;
}
.gap-badge {
  align-self: flex-start;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(61, 220, 151, 0.16);
  color: var(--success);
}
.gap-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 46px;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-top: 8px;
  color: var(--success);
  font-variant-numeric: tabular-nums;
}
.live-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 14px;
}
.live-stats span {
  display: block;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-300);
}
.live-stats b {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.progress {
  margin-top: 14px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-300);
}
.bar {
  position: relative;
  height: 6px;
  border-radius: 3px;
  background: var(--tz-900);
  margin: 5px 0 8px;
  overflow: hidden;
}
.bar i {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 3px;
}
.bar .me {
  width: 62%;
  background: var(--tz-400);
}
.bar .ghost {
  width: 57%;
  background: var(--ghost-400);
}
.live-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: auto;
}
.live-actions span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--tz-700);
}
.live-actions span.stop {
  background: var(--danger);
}
.live-actions svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

/* Écran « Mes duels » (thème clair) */
.light-screen {
  background: var(--tz-50);
  color: var(--fg1);
  display: flex;
  flex-direction: column;
}
.app-header {
  background: #fff;
  border-bottom: 1px solid var(--border-soft);
  padding: 50px 18px 14px;
}
.app-header .eyebrow {
  font-size: 9px;
  margin: 0;
  color: var(--ghost-600);
}
.app-header h4 {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.02em;
}
.app-list {
  flex: 1;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.duel-card {
  display: flex;
  gap: 10px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 10px;
  box-shadow: var(--shadow-card);
}
.duel-card .thumb {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: #e8ecf1;
  overflow: hidden;
}
.duel-card .thumb svg {
  width: 100%;
  height: 100%;
}
.duel-card h5 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.25;
}
.duel-card p {
  font-size: 10.5px;
  color: var(--fg3);
  line-height: 1.4;
}
.chip {
  display: inline-block;
  margin-top: 4px;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
}
.chip.win {
  background: rgba(61, 220, 151, 0.18);
  color: var(--success-deep);
}
.chip.lose {
  background: rgba(255, 84, 112, 0.14);
  color: #c2334d;
}
.app-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-top: 1px solid var(--border-soft);
  padding: 9px 4px 20px;
  font-size: 8.5px;
  font-weight: 600;
  color: var(--ink-400);
  text-align: center;
}
.app-nav span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.app-nav svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.app-nav .active {
  color: var(--ghost-600);
}

/* ---------- Étapes ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
}
.step-num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--tz-500);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  box-shadow: var(--shadow-primary);
}
.step:nth-child(2) .step-num {
  background: var(--ghost-400);
  color: var(--tz-950);
  box-shadow: 0 10px 24px rgba(229, 168, 0, 0.35);
}
.step:nth-child(3) .step-num {
  background: var(--success);
  color: var(--tz-950);
  box-shadow: 0 10px 24px rgba(61, 220, 151, 0.35);
}
.step h3 {
  margin-top: 22px;
  font-size: 22px;
  font-weight: 700;
}
.step p {
  margin-top: 10px;
  color: var(--fg2);
}

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

/* ---------- Duel ---------- */

.duel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(700px 480px at 20% 40%, rgba(44, 79, 158, 0.35), transparent 70%),
    var(--tz-950);
}
.duel-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.duel-grid .section-head {
  margin-bottom: 32px;
}
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}
.checklist li {
  display: flex;
  gap: 16px;
}
.checklist .ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(244, 247, 253, 0.06);
  border: 1px solid rgba(244, 247, 253, 0.1);
  color: var(--ghost-400);
}
.checklist .ico svg {
  width: 22px;
  height: 22px;
}
.checklist strong {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
}
.checklist p {
  color: var(--ink-200);
  font-size: 16px;
}

@media (max-width: 900px) {
  .duel-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .duel-grid .hero-visual {
    order: 2;
  }
}

/* ---------- Fonctionnalités ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 1px 2px rgba(14, 27, 60, 0.06), 0 14px 32px rgba(14, 27, 60, 0.12);
}
.feature .ico {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #e9effa;
  color: var(--tz-500);
}
.feature .ico svg {
  width: 24px;
  height: 24px;
}
.feature h3 {
  margin-top: 18px;
  font-size: 19px;
  font-weight: 700;
}
.feature p {
  margin-top: 8px;
  color: var(--fg2);
  font-size: 16px;
}

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

/* ---------- Appel à l'action ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(255, 190, 15, 0.16), transparent 70%),
    var(--tz-900);
}
.cta-band .logo-big {
  width: 120px;
  height: 120px;
  margin: 0 auto 28px;
  border-radius: 28px;
  background: #fff;
  padding: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 60px rgba(255, 190, 15, 0.18);
}
.cta-band h2 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
}
.cta-band p {
  margin: 18px auto 0;
  max-width: 520px;
  color: var(--ink-200);
  font-size: 18px;
}
.cta-band .hero-cta {
  justify-content: center;
}

/* ---------- Pied de page ---------- */

.site-footer {
  background: var(--tz-950);
  color: var(--ink-300);
  padding: 48px 0 40px;
  border-top: 1px solid rgba(244, 247, 253, 0.08);
  font-size: 15px;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links a {
  color: var(--ink-200);
  text-decoration: none;
}
.footer-links a:hover {
  color: #fff;
}
.copyright {
  margin-top: 28px;
  font-size: 13px;
  color: var(--ink-400);
}

/* ---------- Page légale (CGV) ---------- */

.legal-hero {
  padding: 64px 0 56px;
  background:
    radial-gradient(700px 300px at 80% 0%, rgba(44, 79, 158, 0.4), transparent 70%),
    var(--tz-950);
  color: var(--ink-100);
}
.legal-hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 800;
}
.legal-hero p {
  margin-top: 14px;
  color: var(--ink-200);
}

.legal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  padding: 56px 0 96px;
  align-items: start;
}
.toc {
  position: sticky;
  top: 92px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-card);
  font-size: 14px;
}
.toc strong {
  display: block;
  font-family: var(--font-display);
  margin-bottom: 10px;
}
.toc ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
}
.toc a {
  color: var(--fg2);
  text-decoration: none;
}
.toc a:hover {
  color: var(--primary);
}

.legal {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 48px;
  box-shadow: var(--shadow-card);
  min-width: 0;
}
.legal section + section {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border-soft);
}
.legal h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  scroll-margin-top: 92px;
}
.legal h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 24px 0 8px;
}
.legal p,
.legal li {
  color: var(--fg2);
  font-size: 16px;
}
.legal p + p {
  margin-top: 12px;
}
.legal ul {
  padding-left: 22px;
  margin: 12px 0;
}
.legal li + li {
  margin-top: 6px;
}
.legal strong {
  color: var(--fg1);
}
.legal .intro {
  font-size: 17px;
  margin-bottom: 40px;
}

.todo {
  background: rgba(255, 190, 15, 0.28);
  color: var(--fg1);
  padding: 0 4px;
  border-radius: 4px;
  font-weight: 600;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 15px;
}
.info-table th,
.info-table td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--fg2);
}
.info-table th {
  width: 36%;
  color: var(--fg1);
  font-weight: 700;
}

@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .toc {
    position: static;
  }
  .legal {
    padding: 28px 22px;
  }
  .info-table th {
    width: 42%;
  }
}

/* ---------- Divers ---------- */

@keyframes pulse {
  50% {
    box-shadow: 0 0 0 7px rgba(255, 84, 112, 0.08);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 72px 0;
  }
  .section-head {
    margin-bottom: 40px;
  }
  .hero-cta .btn {
    flex: 1 1 100%;
    justify-content: center;
  }
}

.page-404 {
  min-height: 100vh;
  display: grid;
  place-items: center;
}
