/* ==========================================================================
   Tokens — src/styles/theme.css
   ========================================================================== */

/**
 * Design tokens. Every colour and layout dimension in the project resolves
 * here — hardcoded hex in a `*.module.css` file is not allowed.
 *
 * Dark graphite surfaces, warm gold accents, ivory text. Token names are the
 * template's; a site build changes the values and adds what its design needs.
 */
:root {
  /* --- Surfaces --- */
  --color-bg: #121316;
  --color-surface: #1a1c21;
  --color-surface-muted: #202329;
  --color-surface-subtle: #262a31;
  --color-surface-hover: #2d323a;
  --color-skeleton: #262a31;
  --color-skeleton-strong: #343a43;

  /* --- Text --- */
  --color-text: #f6f3ec;
  --color-text-secondary: #d9d5ca;
  --color-text-muted: #b9b5aa;
  --color-text-subtle: #a09c92;
  --color-text-faint: #8c897f;
  --color-text-faintest: #7a776e;

  /* --- Lines --- */
  --color-border: #343943;
  --color-border-strong: #d9ac45;
  --color-border-soft: #2b2f37;
  --color-border-softer: #2b2f37;
  --color-border-dashed: #6b6552;
  --color-border-input: #454b57;
  --color-border-muted: #50565f;

  /* --- Inverted (CTA, banners, badges) --- */
  --color-inverted-bg: #d9ac45;
  --color-inverted-bg-hover: #f0c966;
  --color-inverted-text: #17181b;
  --color-contrast-bg: #0c0d0f;
  --color-contrast-text: #f6f3ec;

  /* --- Gold and supporting accents --- */
  --color-gold-bright: #f6dc8a;
  --color-gold: #d9ac45;
  --color-gold-deep: #a87b20;
  --color-gold-glow: rgba(217, 172, 69, 0.4);
  --color-gold-faint: rgba(217, 172, 69, 0.12);
  --color-ivory: #f6f3ec;
  --color-lagoon: #5fb4b8;
  --color-lagoon-deep: #2f7a82;
  --color-lagoon-glow: rgba(95, 180, 184, 0.35);
  --color-on-gold: #17181b;

  /* --- Gradients --- */
  --gradient-gold: linear-gradient(
    180deg,
    var(--color-gold-bright) 0%,
    var(--color-gold) 55%,
    var(--color-gold-deep) 100%
  );
  --gradient-gold-text: linear-gradient(
    100deg,
    var(--color-gold-bright) 0%,
    var(--color-gold) 50%,
    var(--color-gold-bright) 100%
  );
  --gradient-lagoon: linear-gradient(
    135deg,
    var(--color-lagoon) 0%,
    var(--color-lagoon-deep) 100%
  );
  --gradient-logo-cell: linear-gradient(
    145deg,
    #2a2f37 0%,
    #1b1e24 55%,
    #26221a 100%
  );
  --gradient-divider: linear-gradient(
    90deg,
    transparent 0%,
    var(--color-gold-deep) 20%,
    var(--color-gold-bright) 50%,
    var(--color-gold-deep) 80%,
    transparent 100%
  );

  /* --- Overlay --- */
  --color-overlay: rgba(10, 11, 13, 0.9);

  /* --- Spinner --- */
  --color-spinner-track: #343943;
  --color-spinner-head: #d9ac45;

  /* --- Shadows --- */
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-gold: 0 0 28px var(--color-gold-glow);

  /* --- Type --- */
  --font-display: 'Bodoni Moda', 'Playfair Display', Georgia, serif;
  --font-body:
    'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial,
    sans-serif;

  /* --- Layout ---
     One width for the header, the footer, the offer grid and the sticky bar.
     They used to disagree, which is what made the page look subtly misaligned. */
  --layout-max-width: 1200px;
  --layout-padding-x: 1.25rem;
  --content-max-width: 900px;

  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --radius-pill: 999px;
}

/* ==========================================================================
   Reset — src/styles/global.css
   ========================================================================== */

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

html {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.15;
  scroll-behavior: smooth;
  -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;
}

/* Load-bearing: any `display` in a component rule outranks the UA's
   `[hidden] { display: none }`. Keep the `!important`. */
[hidden] {
  display: none !important;
}

body {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  background: var(--color-bg);
  color: var(--color-text);
}

/* Anchor targets: the section ids the footer navigation points at, plus the
   offers block. The offset keeps a section heading clear of the viewport edge. */
#offers,
#rooms,
#gaming,
#highlights,
#experience,
#advantages {
  scroll-margin-top: 1.5rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

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

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

/* ==========================================================================
   Site background — SiteBackground.module.css
   ========================================================================== */

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.site-bg-svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   Header — Header.module.css
   ========================================================================== */

.header {
  position: relative;
  width: 100%;
  background: var(--color-contrast-bg);
}

/* The accent line: a gold bar that fades out toward both edges. */
.header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--gradient-divider);
}

.header-inner {
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding: 14px var(--layout-padding-x);
  display: flex;
  align-items: center;
}

.header-home-link {
  display: inline-flex;
}

/* The file is 480x120; the displayed size is set here, not in the markup. */
.header-logo {
  width: auto;
  height: 40px;
}

/* ==========================================================================
   Home page — page.module.css
   ========================================================================== */

.page-main {
  flex: 1;
}

.affiliate-notice-text {
  font-size: 12px;
  color: var(--color-text-faint);
  margin: 0 auto 8px;
  padding: 0 var(--layout-padding-x);
  max-width: var(--layout-max-width);
}

.affiliate-notice-link {
  color: var(--color-text-faint);
  text-decoration: underline;
}

/* ==========================================================================
   Hero — Hero.module.css
   ========================================================================== */

/* Capped at 30dvh: the offers block has to start above the fold. */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 30dvh;
  padding: 18px var(--layout-padding-x);
  text-align: center;
}

.hero-inner {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 4.2vw, 2.6rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--color-text);
}

.hero-accent {
  background: var(--gradient-gold-text);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shimmer 6s linear infinite alternate;
}

.hero-description {
  max-width: 52ch;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--color-text-muted);
}

.hero-cta {
  margin-top: 4px;
  padding: 9px 22px;
  background: var(--gradient-gold);
  color: var(--color-on-gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: box-shadow 0.2s ease;
}

.hero-cta:hover {
  box-shadow: var(--shadow-gold);
}

/* The static hero carries a long description and a nav row, so it is not
   capped at 30dvh. */
.hero--roomy {
  max-height: none;
  padding-block: 28px 20px;
}

.hero--roomy .hero-inner {
  gap: 12px;
}

.hero-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.hero-nav-link:hover {
  color: var(--color-gold-bright);
}

@keyframes shimmer {
  from {
    background-position: left center;
  }
  to {
    background-position: right center;
  }
}

@media (max-width: 560px) {
  .hero-description {
    display: none;
  }

  .hero--roomy .hero-description {
    display: block;
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-accent {
    animation: none;
  }
}

/* ==========================================================================
   Offers — Offers.module.css
   ========================================================================== */

.offers-container {
  /* Same token as the header, the footer and the sticky bar. These used to be
     three different values, which is what made the page look misaligned. */
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding: 0 var(--layout-padding-x);
}

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

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

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

/* ==========================================================================
   Offer card — Offer.module.css
   ========================================================================== */

/* ── Base card ─────────────────────────────────────────── */
.offer-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}

.offer-card:hover {
  border-color: var(--color-gold-deep);
}

/* ── Rank variants ─────────────────────────────────────── */
/* Number one is loud: gold frame, pulsing glow, its own badge and CTA. */
.offer-card--top1 {
  border: 2px solid var(--color-gold);
  background: linear-gradient(
    120deg,
    var(--color-surface-muted) 0%,
    var(--color-surface) 100%
  );
  animation: cardGlow 2.6s ease-in-out infinite alternate;
}

/* ── Badge: a flag with a cut corner, not a pill ───────── */
.offer-badge {
  position: absolute;
  top: -11px;
  left: 16px;
  z-index: 2;
  padding: 3px 16px 3px 10px;
  background: var(--color-surface-subtle);
  border: 1px solid var(--color-gold-deep);
  color: var(--color-gold-bright);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 50%, 100% 100%, 0 100%);
}

.offer-badge--top1 {
  background: var(--gradient-gold-text);
  background-size: 200% auto;
  border-color: var(--color-gold-bright);
  color: var(--color-on-gold);
  animation: badgeShine 2.2s ease-in-out infinite alternate;
}

/* ── Card overlay link ─────────────────────────────────── */
.offer-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* ── Card inner grid container ─────────────────────────── */
.offer-card-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    'logo     bonus'
    'features payments'
    'cta      cta'
    'terms    terms';
  gap: 12px;
  padding: 18px 16px 14px;
  position: relative;
  /* Always none: the whole card is clickable through .offer-card-link above.
     Interactive children opt back in with pointer-events + z-index: 2. */
  pointer-events: none;
}

/* The static list has no payment methods, so features take the full row. */
.offer-card--static .offer-card-inner {
  grid-template-areas:
    'logo     bonus'
    'features features'
    'cta      cta';
}

/* ── Grid areas ────────────────────────────────────────── */
/* The logo cell is a gradient panel, never a flat colour. */
.offer-logo-area {
  grid-area: logo;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  padding: 12px 10px;
  background:
    radial-gradient(
      ellipse at 50% 0%,
      var(--color-gold-faint) 0%,
      transparent 70%
    ),
    var(--gradient-logo-cell);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.offer-bonus-area {
  grid-area: bonus;
  display: flex;
  align-items: center;
  min-width: 0;
}

.offer-features-area {
  grid-area: features;
  display: flex;
  align-items: flex-start;
  min-width: 0;
}

/* A styled div, not a button or a link — the overlay handles the click.
   Deliberately given neither pointer-events nor z-index. */
.offer-cta-area {
  grid-area: cta;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: transparent;
  border: 2px solid var(--color-gold);
  color: var(--color-gold-bright);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.offer-cta-arrow {
  flex-shrink: 0;
  animation: nudge 0.9s ease-in-out infinite alternate;
}

.offer-card:hover .offer-cta-area {
  background: var(--color-gold);
  color: var(--color-on-gold);
}

/* One: ivory instead of gold, with a much stronger glow and a pulse. */
.offer-card--top1 .offer-cta-area {
  background: linear-gradient(
    180deg,
    var(--color-ivory) 0%,
    var(--color-gold-bright) 100%
  );
  border-color: var(--color-ivory);
  color: var(--color-on-gold);
  box-shadow:
    0 0 18px var(--color-gold-glow),
    0 0 42px var(--color-gold-glow);
  animation: ctaPulse 1.3s ease-in-out infinite alternate;
}

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

/* ── Logo ──────────────────────────────────────────────── */
.offer-logo {
  width: auto;
  height: 40px;
  max-width: 100%;
  object-fit: contain;
}

.offer-name {
  max-width: 100%;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  color: var(--color-text);
  overflow-wrap: break-word;
}

/* ── Rating: five outlined stars with a gold row clipped to the score ── */
.offer-rating {
  display: flex;
  align-items: center;
  gap: 6px;
}

.offer-stars-track {
  position: relative;
  display: flex;
  color: var(--color-gold-deep);
}

.offer-stars-fill {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  overflow: hidden;
  color: var(--color-gold);
}

.offer-stars-fill svg {
  flex-shrink: 0;
}

.offer-rating-value {
  font-size: 12px;
  font-weight: 800;
  color: var(--color-gold-bright);
}

/* ── Features: CSS-only disclosure, zero JS ────────────── */
.offer-feature-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.offer-feature-item {
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
  color: var(--color-text-secondary);
}

/* Flex ordering puts the revealed items ABOVE the toggle, matching the
   original layout where "less" sat below the full list. */
.offer-feature-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.offer-feature-extra {
  order: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

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

.offer-feature-toggle::-webkit-details-marker {
  display: none;
}

.offer-feature-toggle .offer-less-label,
.offer-feature-details[open] .offer-feature-toggle .offer-more-label {
  display: none;
}

.offer-feature-details[open] .offer-feature-toggle .offer-less-label {
  display: inline;
}

/* ── Motion: from/to only, alternating so loops never jump ── */
@keyframes cardGlow {
  from {
    box-shadow: 0 0 0 transparent;
  }
  to {
    box-shadow: 0 0 34px var(--color-gold-glow);
  }
}

@keyframes badgeShine {
  from {
    background-position: left center;
  }
  to {
    background-position: right center;
  }
}

@keyframes ctaPulse {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.03);
  }
}

@keyframes nudge {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .offer-card--top1,
  .offer-badge--top1,
  .offer-card--top1 .offer-cta-area,
  .offer-cta-arrow {
    animation: none;
  }
}

/* ── Desktop: single horizontal row ────────────────────── */
@media (min-width: 769px) {
  .offer-card-inner,
  .offer-card--static .offer-card-inner {
    grid-template-columns:
      190px minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(0, 0.9fr)
      auto;
    grid-template-areas:
      'logo bonus features payments cta'
      'terms terms terms terms terms';
    align-items: center;
    gap: 20px;
    padding: 20px 22px 14px;
  }

  .offer-card--static .offer-card-inner {
    grid-template-columns: 190px minmax(0, 1.2fr) minmax(0, 1.4fr) auto;
    grid-template-areas: 'logo bonus features cta';
  }
}

/* ==========================================================================
   Bonus slot — BonusDisplay.module.css
   ========================================================================== */

/* The amount is the loudest thing on the card: gold gradient text with a glow. */
.bonus-amount {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
  background: var(--gradient-gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 10px var(--color-gold-glow));
  overflow-wrap: anywhere;
}

/* Descriptive variant: smaller, wraps, never wider than its cell. */
.bonus-descriptive {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  filter: none;
  overflow-wrap: break-word;
}

/* ==========================================================================
   Resort sections — Sections.module.css
   ========================================================================== */

.sections {
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding: 24px var(--layout-padding-x) 56px;
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 7vw, 72px);
}

.sections-eyebrow {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.sections-heading {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-text);
}

.sections-intro {
  margin-top: 12px;
  max-width: 60ch;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text-muted);
}

.sections-item-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
}

.sections-item-text {
  margin-top: 6px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* ── Experience: headline column beside a two-column list ────────────── */
.sections-experience {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px;
  padding: clamp(24px, 4vw, 44px);
  background: linear-gradient(
    135deg,
    var(--color-surface) 0%,
    var(--color-surface-muted) 100%
  );
  border-left: 3px solid var(--color-lagoon);
  box-shadow: var(--shadow-card);
}

.sections-rule {
  display: block;
  width: 72px;
  height: 3px;
  margin-top: 20px;
  background: var(--gradient-lagoon);
}

@media (max-width: 900px) {
  .sections-experience {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ── Resort blocks (static catalog): titled cards of bullets ─────────── */
.sections-resort-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.sections-resort-card {
  padding: 24px 24px 28px;
}

.sections-resort-card + .sections-resort-card {
  border-left: 1px solid var(--color-border);
}

.sections-resort-heading {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

.sections-bullets {
  list-style: none;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sections-bullets li {
  position: relative;
  padding-left: 20px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--color-text);
}

.sections-bullets li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 7px;
  height: 7px;
  background: var(--color-gold);
  transform: rotate(45deg);
}

.sections-fact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-content: center;
  justify-content: center;
}

.sections-policy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 80ch;
  margin: 0 auto;
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--color-text-muted);
}

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

  .sections-resort-card + .sections-resort-card {
    border-left: 0;
    border-top: 1px solid var(--color-border);
  }
}

/* ==========================================================================
   Footer — Footer.module.css
   ========================================================================== */

.footer {
  position: relative;
  margin-top: auto;
  color: var(--color-text);
  background: var(--color-contrast-bg);
}

/* A gold bar that fades out toward both edges, in place of a grey rule. */
.footer-divider {
  height: 3px;
  background: var(--gradient-divider);
  box-shadow: 0 0 18px var(--color-gold-glow);
}

.footer-inner {
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding: 36px var(--layout-padding-x) 20px;
}

.footer-columns {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 32px 40px;
  margin-bottom: 28px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.footer-logo-link {
  display: inline-flex;
}

.footer-logo {
  width: auto;
  height: 40px;
}

.footer-description {
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.footer-email {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-gold);
  border-bottom: 1px solid var(--color-gold-deep);
}

.footer-email:hover {
  color: var(--color-gold-bright);
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-column-title {
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.footer-link {
  font-size: 14px;
  line-height: 1.4;
  color: var(--color-text-secondary);
}

.footer-link:hover {
  color: var(--color-gold-bright);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 24px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border-soft);
}

.footer-disclaimer,
.footer-copy {
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-text-faint);
}

.footer-copy {
  white-space: nowrap;
}

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 500px) {
  .footer-copy {
    white-space: normal;
  }
}

/* ==========================================================================
   Legal pages — legal.module.css
   ========================================================================== */

.legal-page {
  flex: 1;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 32px var(--layout-padding-x) 48px;
  color: var(--color-text);
}

.legal-page h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 2.5rem);
}

.legal-page h2 {
  margin: 24px 0 10px;
  font-size: 1.25rem;
}

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

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

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

.legal-page h1 {
  font-family: var(--font-display);
}

.legal-page h2 {
  font-family: var(--font-display);
  color: var(--color-gold-bright);
}

.legal-updated {
  margin: 0 0 8px;
  font-size: 0.875rem;
  color: var(--color-text-faint);
}

/* ==========================================================================
   404 — interstitial.module.css
   ========================================================================== */

.interstitial-wrapper {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.interstitial-card {
  max-width: 640px;
  text-align: center;
  border: 1px solid var(--color-border-softer);
  border-radius: 12px;
  padding: 24px;
  background: var(--color-surface);
}

.interstitial-title {
  margin: 0 0 12px;
}

.interstitial-description {
  margin: 0 0 16px;
  color: var(--color-text-secondary);
}

.interstitial-back-link {
  display: inline-block;
  text-decoration: underline;
}

.interstitial-code {
  display: block;
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 900;
  line-height: 1;
  color: var(--color-text-faintest);
}
