/* ──────────────────────────────────────────────────────────
   Guide Jeux Pari — static build
   Tokens and reset copied verbatim from app/globals.css;
   component rules copied from the CSS modules that render
   in the fallback variant.
   ────────────────────────────────────────────────────────── */

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  /* Surfaces */
  --bg-900: #0a0f1f;
  --bg-800: #131b33;
  --bg-700: #1d284a;

  /* Primary (blue) */
  --blue: #2962ff;
  --blue-light: #4a7dff;

  /* Accent (green) */
  --green: #00c389;
  --green-light: #2ee6a6;

  /* Gold */
  --gold: #d4af37;
  --gold-light: #f2c14e;

  /* Text */
  --text: #ffffff;
  --text-soft: #dce3f0;
  --text-muted: #8b98b3;

  /* Layout */
  --page-px: clamp(16px, 4vw, 24px);
  --container: 1080px;

  /* Gradients */
  /* CTA/button gradient — both stops keep white text >= 4.5:1 (WCAG AA). */
  --grad-blue: linear-gradient(135deg, var(--blue), #1c4fd6);
  --grad-green: linear-gradient(135deg, var(--green), var(--green-light));
  --grad-gold: linear-gradient(135deg, var(--gold), var(--gold-light));
  --grad-accent: linear-gradient(90deg, var(--blue), var(--green) 55%, var(--gold));
  --logo-tile: linear-gradient(135deg, rgba(245, 247, 251, 0.1), rgba(226, 232, 245, 0.1));
}

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

html {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
}

body,
h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  background: var(--bg-900);
  color: var(--text-soft);
  -webkit-font-smoothing: antialiased;
}

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

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

::selection {
  background: var(--blue);
  color: #fff;
}

/* Static-build addition: React unmounted these blocks, here they are
   hidden with the [hidden] attribute, which a display rule would defeat. */
[hidden] {
  display: none !important;
}

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  width: 100%;
  position: relative;
  background: var(--bg-900);
}

/* Expressive accent line instead of a flat grey border */
.site-header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--grad-accent);
  opacity: 0.9;
}

.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px var(--page-px);
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-header__home {
  display: inline-flex;
  align-items: center;
}

.site-header__logo {
  height: 44px;
  width: auto;
  object-fit: contain;
}

/* Strictly circular badge: width === height, border-radius 50% */
.site-header__age {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--grad-gold);
  color: var(--bg-900);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  flex-shrink: 0;
  margin-left: auto;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.16);
}

@media (max-width: 500px) {
  .site-header__logo {
    height: 30px;
  }
}

/* ── Home page ──────────────────────────────────────────── */
.main {
  flex: 1;
}

/* ── Hero (<= 30dvh, minimal) ──────────────────────────── */
.hero {
  position: relative;
  min-height: clamp(170px, 26dvh, 250px);
  max-height: 30dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.25rem var(--page-px);
  overflow: hidden;
  background:
    radial-gradient(60% 120% at 20% 0%, rgba(41, 98, 255, 0.22), transparent 60%),
    radial-gradient(55% 120% at 85% 10%, rgba(0, 195, 137, 0.18), transparent 60%),
    var(--bg-900);
}

.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--grad-accent);
  opacity: 0.4;
}

.hero__inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero__title {
  color: var(--text);
  font-size: clamp(1.6rem, 4.2vw, 2.6rem);
  font-weight: 900;
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.hero__subtitle {
  color: var(--text-muted);
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.hero__update {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-light);
}

/* ── Affiliate notice ──────────────────────────────────── */
.affiliate-notice {
  font-size: 12px;
  color: var(--text-muted);
  margin: 14px auto 4px;
  padding: 0 var(--page-px);
  max-width: var(--container);
  text-align: center;
}

.affiliate-notice__link {
  color: var(--text-soft);
  text-decoration: underline;
}

/* ── Generic content section ───────────────────────────── */
.section-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--page-px);
}

.kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-light);
  margin: 0 0 8px;
}

.section-title {
  color: var(--text);
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.lead {
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 720px;
  margin: 0 0 22px;
}

/* ── Méthode : ledger éditorial numéroté (pas de grille de cartes) ── */
.method {
  padding: 28px 0;
}

.method__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.method__intro .lead {
  margin-bottom: 0;
}

.ledger {
  list-style: none;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.ledger__row {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--bg-700);
}

.ledger__row:last-child {
  border-bottom: 1px solid var(--bg-700);
}

.ledger__index {
  flex-shrink: 0;
  min-width: 2ch;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.03em;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.ledger__body {
  min-width: 0;
}

.ledger__title {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
}

.ledger__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 60ch;
}

@media (min-width: 860px) {
  .method__grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 44px;
    align-items: start;
  }
}

/* ── Chiffres : bandeau accentué, angles asymétriques ──── */
.stats {
  padding: 16px 0 28px;
}

.stats__panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--bg-700);
  border-radius: 4px 24px 4px 24px;
  padding: 26px clamp(18px, 4vw, 38px);
  background:
    radial-gradient(80% 160% at 0% 0%, rgba(41, 98, 255, 0.16), transparent 55%),
    radial-gradient(80% 160% at 100% 100%, rgba(0, 195, 137, 0.14), transparent 55%),
    var(--bg-800);
}

.stats__heading {
  margin: 0 0 18px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.stats__row {
  display: flex;
  flex-wrap: wrap;
  gap: 22px 12px;
  align-items: flex-end;
  justify-content: space-between;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 130px;
}

.stat__value {
  font-size: clamp(2.4rem, 7vw, 3.6rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.stat__value--small {
  font-size: clamp(1.05rem, 3vw, 1.4rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--gold-light);
}

.stat__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── À savoir : prose magazine + lettrine ──────────────── */
.advice {
  padding: 28px 0 36px;
}

.advice__lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text);
  max-width: 70ch;
  margin: 0 0 22px;
}

.advice__lead::first-letter {
  float: left;
  font-size: 3.1rem;
  line-height: 0.78;
  font-weight: 900;
  padding: 4px 12px 0 0;
  background: var(--grad-green);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.advice__list {
  display: flex;
  flex-direction: column;
}

.advice__item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 18px 0;
  border-top: 1px solid var(--bg-700);
}

.advice__item:last-child {
  border-bottom: 1px solid var(--bg-700);
}

.advice__tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.advice__text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.72;
  color: var(--text-soft);
  max-width: 72ch;
}

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

@media (min-width: 760px) {
  .advice__item {
    grid-template-columns: 140px 1fr;
    gap: 24px;
    align-items: baseline;
  }
}

/* ── Offers section ─────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--page-px);
}

.promo-section {
  padding: 16px 0 24px;
}

.promo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.promo-section-end {
  width: 100%;
  height: 1px;
}

/* ── Offer card ─────────────────────────────────────────── */
.promo-card {
  position: relative;
  background: var(--bg-800);
  border: 1px solid var(--bg-700);
  border-radius: 14px;
}

/* ── Rank variants ─────────────────────────────────────── */
/* Top 1 — aggressive highlight: gold border + breathing glow */
.promo-card--top1 {
  border: 1px solid var(--gold);
  border-radius: 16px;
  animation: cardPulseGold 1.9s ease-in-out infinite alternate;
}

/* Top 2 & Top 3 — identical, moderate highlight, no card animation */
.promo-card--top2,
.promo-card--top3 {
  border: 1px solid var(--blue);
  box-shadow: 0 6px 22px rgba(41, 98, 255, 0.14);
}

@keyframes cardPulseGold {
  from {
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.5), 0 8px 26px rgba(212, 175, 55, 0.12);
  }
  to {
    box-shadow: 0 0 0 1px rgba(242, 193, 78, 0.9), 0 12px 44px rgba(212, 175, 55, 0.36);
  }
}

/* ── Rank badge (editorial, asymmetric) ────────────────── */
.badge {
  position: absolute;
  top: -13px;
  left: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px 5px 9px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  background: var(--bg-700);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px 12px 12px 3px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.badge__icon {
  display: inline-flex;
  align-items: center;
}

.badge__rank {
  font-size: 12.5px;
  font-weight: 900;
}

.badge__label {
  padding-left: 7px;
  border-left: 1px solid currentColor;
  font-weight: 700;
  opacity: 0.82;
}

/* Top 2 & Top 3 — identical, blue, static */
.promo-card--top2 .badge,
.promo-card--top3 .badge {
  background: var(--grad-blue);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}

/* Top 1 — gold + crown, with its own animation (distinct from the card pulse) */
.promo-card--top1 .badge {
  background: var(--grad-gold);
  color: var(--bg-900);
  border-color: rgba(255, 255, 255, 0.35);
  transform-origin: left center;
  animation: badgeGlow 1.25s ease-in-out infinite alternate;
}

@keyframes badgeGlow {
  from {
    transform: scale(1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4), 0 0 10px rgba(242, 193, 78, 0.45);
  }
  to {
    transform: scale(1.04);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4), 0 0 20px rgba(242, 193, 78, 0.9);
  }
}

/* ── Card overlay link (handles the whole-card click) ──── */
.card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

/* ── Card inner grid container ─────────────────────────── */
.card-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "logo     bonus"
    "features payments"
    "cta      cta"
    "terms    terms";
  gap: 12px;
  padding: 16px;
  position: relative;
  pointer-events: none;
}

/* ── Grid areas ────────────────────────────────────────── */
.logo-area {
  grid-area: logo;
  display: flex;
  align-items: center;
}

.bonus-area {
  grid-area: bonus;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.features-area {
  grid-area: features;
  display: flex;
  align-items: flex-start;
}

.payments-area {
  grid-area: payments;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* ── CTA (visual div only — no pointer-events / z-index) ── */
.cta-area {
  grid-area: cta;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  background: var(--grad-blue);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  white-space: nowrap;
  border-radius: 10px;
  animation: ctaGlowBlue 2s ease-in-out infinite alternate;
}

.cta-area::after {
  content: ' →';
}

@keyframes ctaGlowBlue {
  from {
    box-shadow: 0 0 0 rgba(74, 125, 255, 0);
  }
  to {
    box-shadow: 0 0 22px rgba(74, 125, 255, 0.55);
  }
}

/* Top 1 CTA — different accent colour (green) + stronger glow */
.promo-card--top1 .cta-area {
  background: var(--grad-green);
  color: var(--bg-900);
  animation: ctaGlowGreen 1.5s ease-in-out infinite alternate;
}

@keyframes ctaGlowGreen {
  from {
    box-shadow: 0 0 10px rgba(0, 195, 137, 0.45);
  }
  to {
    box-shadow: 0 0 34px rgba(46, 230, 166, 0.9);
  }
}

.promo-card:hover .cta-area {
  filter: brightness(1.08);
}

/* ── Logo tile (gradient, not flat) ────────────────────── */
.logo-area {
  background: var(--logo-tile);
  border-radius: 4px 16px 16px 4px;
  padding: 8px 12px;
}

.offer-logo {
  width: auto;
  height: 36px;
  max-width: 120px;
  object-fit: contain;
}

/* ── Features ──────────────────────────────────────────── */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.feature-item {
  font-size: 13px;
  margin: 0;
  color: var(--text-soft);
  line-height: 1.35;
  padding-left: 16px;
  position: relative;
}

.feature-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--green);
  transform: rotate(45deg);
}

.feature-toggle {
  background: none;
  border: none;
  padding: 0;
  font-size: 12px;
  color: var(--blue-light);
  cursor: pointer;
  text-decoration: underline;
  align-self: flex-start;
  pointer-events: auto;
  z-index: 2;
  position: relative;
}

/* ── Payments ──────────────────────────────────────────── */
.payments {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  align-items: center;
}

.payment-logo {
  width: 30px;
  height: 24px;
  border-radius: 5px;
  border: 1px solid var(--bg-700);
  background: var(--logo-tile);
  object-fit: contain;
  padding: 2px;
}

/* ── Terms ─────────────────────────────────────────────── */
.terms-area {
  grid-area: terms;
  display: flex;
  align-items: center;
  justify-content: center;
}

.terms {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

/* Responsible-gambling notice — required under every CTA */
.rg-notice {
  font-weight: 700;
  color: var(--text-soft);
}

/* ANJ approval reference */
.license {
  color: var(--text-soft);
}

/* ── Desktop: single horizontal row ───────────────────── */
@media (min-width: 769px) {
  .card-inner {
    grid-template-columns: 150px 1.05fr 1.3fr auto minmax(150px, auto);
    grid-template-rows: 1fr;
    grid-template-areas:
      "logo bonus features payments cta"
      "terms terms terms terms terms";
    align-items: center;
    gap: 18px;
    padding: 18px 22px;
  }

  .bonus-area,
  .payments-area {
    justify-content: flex-start;
  }
}

/* ── Reduced motion ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .promo-card--top1,
  .promo-card--top1 .badge,
  .cta-area,
  .promo-card--top1 .cta-area {
    animation: none;
  }
}

/* ── Bonus display ──────────────────────────────────────── */
.bonus-display {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.bonus-percent {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: lowercase;
}

/* Bonus amount dominates — gold gradient text treatment */
.bonus-amount {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.bonus-secondary {
  font-size: 12px;
  font-weight: 600;
  color: var(--green-light);
}

@media (max-width: 768px) {
  .bonus-amount {
    font-size: 24px;
  }
}

/* ── Age gate ───────────────────────────────────────────── */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(10, 15, 31, 0.9);
  backdrop-filter: blur(4px);
}

.age-gate__card {
  width: 100%;
  max-width: 480px;
  padding: 28px 24px;
  border-radius: 16px;
  background: var(--bg-800);
  border: 1px solid var(--bg-700);
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

/* Strictly circular badge */
.age-gate__badge {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--bg-900);
  background: var(--grad-gold);
  box-shadow: 0 0 0 6px rgba(212, 175, 55, 0.14);
}

.age-gate__kicker {
  margin: 0 0 6px;
  color: var(--green-light);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
}

.age-gate__title {
  margin: 0 0 10px;
  color: var(--text);
  font-size: clamp(1.6rem, 4vw, 2rem);
  line-height: 1.15;
}

.age-gate__text {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.98rem;
}

.age-gate__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.age-gate__accept,
.age-gate__decline {
  border-radius: 10px;
  padding: 13px 16px;
  font-weight: 800;
  cursor: pointer;
}

.age-gate__accept {
  border: 0;
  background: var(--grad-green);
  color: var(--bg-900);
  box-shadow: 0 0 22px rgba(46, 230, 166, 0.4);
}

.age-gate__decline {
  background: transparent;
  color: var(--text-soft);
  border: 1px solid var(--bg-700);
}

@media (max-width: 520px) {
  .age-gate__card {
    padding: 24px 16px;
  }

  .age-gate__actions {
    grid-template-columns: 1fr;
  }
}

/* ── Access denied ──────────────────────────────────────── */
.access-denied {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 15, 31, 0.92);
  backdrop-filter: blur(4px);
}

.access-denied__card {
  width: 100%;
  max-width: 560px;
  padding: 28px 24px;
  text-align: center;
  border-radius: 16px;
  background: var(--bg-800);
  border: 1px solid var(--bg-700);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.access-denied__badge {
  width: 78px;
  height: 78px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-gold);
  color: var(--bg-900);
  font-size: 1.45rem;
  font-weight: 900;
  box-shadow: 0 0 0 6px rgba(212, 175, 55, 0.14);
}

.access-denied__kicker {
  margin: 0 0 8px;
  color: var(--green-light);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 800;
}

.access-denied__title {
  margin: 0 0 10px;
  color: var(--text);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.access-denied__text {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.access-denied__button {
  margin-top: 22px;
  border: 0;
  border-radius: 10px;
  padding: 13px 20px;
  background: var(--grad-blue);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  margin-top: auto;
  position: relative;
  background: var(--bg-800);
  color: var(--text-soft);
}

/* Expressive separator instead of a flat grey line */
.site-footer::before {
  content: '';
  display: block;
  height: 3px;
  background: var(--grad-accent);
}

.site-footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 28px var(--page-px) 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ── Brand block ───────────────────────────────────────── */
.site-footer__brand {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 14px;
}

.site-footer__logo {
  height: 34px;
  width: auto;
  object-fit: contain;
}

.site-footer__age {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--grad-gold);
  color: var(--bg-900);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  flex-shrink: 0;
}

.site-footer__tagline {
  flex: 1 1 320px;
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ── Navigation (single level) ─────────────────────────── */
.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.site-footer__link {
  font-size: 14px;
  color: var(--text-soft);
  opacity: 0.85;
}

.site-footer__link:hover {
  opacity: 1;
  color: var(--blue-light);
  text-decoration: underline;
}

/* ── Meta row: regulators + copyright/contact ──────────── */
.site-footer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  padding-top: 16px;
  border-top: 1px solid var(--bg-700);
}

.site-footer__regulators {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.site-footer__regulator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
}

.site-footer__regulator:hover {
  opacity: 1;
}

.site-footer__regulator-logo {
  width: auto;
  height: 26px;
}

.site-footer__copy {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

.helper-link {
  font-weight: 700;
  color: var(--text-soft);
  text-decoration: underline;
}

@media (max-width: 600px) {
  .site-footer__meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── Legal pages ────────────────────────────────────────── */
.legal-page {
  flex: 1;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 36px var(--page-px) 56px;
  color: var(--text-soft);
}

.legal-page h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 2.5rem);
  color: var(--text);
  letter-spacing: -0.01em;
}

.legal-page h2 {
  margin: 28px 0 10px;
  font-size: 1.25rem;
  color: var(--text);
}

.legal-page p,
.legal-page li {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-soft);
}

.legal-page ul {
  padding-left: 20px;
  margin: 0 0 12px;
}

.legal-page li {
  margin-bottom: 6px;
}

.legal-page a {
  color: var(--blue-light);
  text-decoration: underline;
}

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

/* Last-updated stamp — left accent, no pill */
.legal-page__updated {
  display: inline-block;
  margin: 0 0 24px;
  padding: 6px 14px;
  border-left: 3px solid var(--green);
  border-radius: 2px 8px 8px 2px;
  background: linear-gradient(100deg, rgba(0, 195, 137, 0.12), rgba(19, 27, 51, 0.4) 60%);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}

/* Editorial intro paragraph */
.legal-page__intro {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 18px;
}

/* ── 404 ────────────────────────────────────────────────── */
.nf-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px var(--page-px) 64px;
  min-height: 60dvh;
}

.nf-code {
  font-size: clamp(4.5rem, 16vw, 8rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.nf-title {
  margin: 8px 0 12px;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  color: var(--text);
}

.nf-text {
  margin: 0 0 24px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 460px;
}

.nf-button {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 10px;
  background: var(--grad-blue);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 0 22px rgba(74, 125, 255, 0.4);
}
