/* ==========================================================================
   piperspin-casino-win.com — shared stylesheet
   Mobile-first. Spanish theme: rojo y gualda (flag red & gold) on warm,
   dark wine surfaces, azulejo-inspired pattern, Playfair Display + Source Sans 3.

   1. Tokens
   2. Base / reset
   3. Layout helpers
   4. Header & navigation
   5. Buttons & small components
   6. Hero & bonus card
   7. Article layout & content
   8. FAQ, final CTA & author
   9. Footer
   10. Cookie banner & sticky CTA
   11. Legal pages
   ========================================================================== */

/* 1. Tokens
   ========================================================================== */
:root {
  /* Spanish flag */
  --es-red: #aa151b;
  --es-red-bright: #d0202a;
  --es-gold: #f1bf00;
  --es-gold-light: #ffd23f;

  /* Surfaces */
  --c-bg: #120607;
  --c-surface-1: #1c0a0c;
  --c-surface-2: #251012;
  --c-surface-3: #301517;
  --c-surface-4: #3c1b1e;
  --c-surface-5: #4a2226;
  --c-border: rgba(241, 191, 0, 0.1);
  --c-border-strong: #5c2b2f;

  /* Text */
  --c-title: #fff8ec;
  --c-text: #e0cfc2;
  --c-text-secondary: #c3ab9a;
  --c-text-muted: #9e8676;

  /* Brand & accents */
  --c-primary: var(--es-red);
  --c-primary-hover: var(--es-red-bright);
  --c-cta: var(--es-gold);
  --c-cta-hover: var(--es-gold-light);
  --c-cta-active: #d9aa00;
  --c-cta-text: #1f0b00;
  --c-accent: var(--es-gold);
  --c-success: #5fd36b;
  --c-danger: #ff5a52;

  --g-brand: linear-gradient(120deg, #ffd23f 0%, #f1bf00 45%, #ff6a3d 100%);
  --g-flag: linear-gradient(180deg, var(--es-red) 0 25%, var(--es-gold) 25% 75%, var(--es-red) 75% 100%);
  --g-flag-h: linear-gradient(90deg, var(--es-red) 0 25%, var(--es-gold) 25% 75%, var(--es-red) 75% 100%);

  /* Type */
  --font: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;

  /* Radii */
  --r-xs: 4px;
  --r-s: 8px;
  --r-m: 12px;
  --r-l: 16px;
  --r-xl: 24px;
  --r-pill: 1000px;

  /* Effects */
  --shadow-1: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 0 1px rgba(241, 191, 0, 0.16), 0 18px 50px rgba(170, 21, 27, 0.4);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  /* Azulejo tile pattern (gold outline, very low opacity) */
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23f1bf00' stroke-opacity='.09' stroke-width='1.2'%3E%3Cpath d='M28 4c6 8 6 16 0 24-6-8-6-16 0-24zM28 52c6-8 6-16 0-24-6 8-6 16 0 24zM4 28c8-6 16-6 24 0-8 6-16 6-24 0zM52 28c-8-6-16-6-24 0 8 6 16 6 24 0z'/%3E%3Ccircle cx='28' cy='28' r='3'/%3E%3Cpath d='M0 0l8 8M56 0l-8 8M0 56l8-8M56 56l-8-8'/%3E%3C/g%3E%3C/svg%3E");

  /* Layout */
  --container: 1240px;
  --gutter: 16px;
  --header-h: 64px;
}

@media (min-width: 960px) {
  :root {
    --gutter: 32px;
    --header-h: 72px;
  }
}

/* 2. Base / reset
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--c-text);
  background-color: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

img {
  display: block;
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  color: var(--c-title);
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 1.3rem + 2.9vw, 3.5rem);
  font-weight: 900;
}

h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.125rem);
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--es-gold-light);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--c-title);
}

strong {
  color: var(--c-title);
  font-weight: 700;
}

:focus-visible {
  outline: 2px solid var(--es-gold);
  outline-offset: 3px;
}

::selection {
  background: rgba(170, 21, 27, 0.7);
  color: #fff;
}

table {
  border-collapse: collapse;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* 3. Layout helpers
   ========================================================================== */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

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

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  border-radius: var(--r-pill);
  background: var(--c-cta);
  color: var(--c-cta-text);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: none;
  color: var(--c-cta-text);
}

.text-gradient {
  color: var(--es-gold);
  background: var(--g-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.icon {
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}

.icon--fill {
  fill: currentColor;
  stroke: none;
}

/* 4. Header & navigation
   ========================================================================== */
.topbar {
  position: relative;
  padding-top: 5px;
  background: var(--c-surface-1);
  border-bottom: 1px solid var(--c-border);
  color: var(--c-text-secondary);
  font-size: 0.8125rem;
  line-height: 1.4;
}

/* Flag stripe: rojo – gualda – rojo */
.topbar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--g-flag);
}

.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.375rem 0.75rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  text-align: center;
}

.topbar a {
  color: var(--c-text);
}

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 20px;
  padding: 0 6px;
  border: 1.5px solid var(--c-danger);
  border-radius: var(--r-pill);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 800;
}

.site-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(18, 6, 7, 0.9);
  border-bottom: 1px solid var(--c-border);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--c-title);
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 900;
  text-decoration: none;
}

.logo:hover {
  color: var(--c-title);
}

.logo img {
  width: 34px;
  height: 34px;
}

.header-cta {
  margin-left: auto;
}

.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-m);
  background: var(--c-surface-3);
  color: var(--c-title);
  cursor: pointer;
}

.nav-toggle .icon {
  width: 22px;
  height: 22px;
}

.nav-toggle .icon-close,
.nav-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: inline-block;
}

.nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  padding: 0.75rem var(--gutter) 1.25rem;
  background: var(--c-surface-1);
  border-bottom: 1px solid var(--c-border-strong);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}

.nav.is-open {
  display: block;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: var(--r-m);
  color: var(--c-title);
  font-weight: 600;
  text-decoration: none;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  background: var(--c-surface-3);
}

@media (min-width: 1080px) {
  .nav-toggle {
    display: none;
  }

  .nav {
    position: static;
    display: block;
    max-height: none;
    overflow: visible;
    margin-left: auto;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }

  .nav-list {
    flex-direction: row;
    gap: 0.125rem;
  }

  .nav-list a {
    padding: 0.5rem 0.8rem;
    color: var(--c-text);
    font-size: 0.9375rem;
  }

  .nav-list a:hover,
  .nav-list a[aria-current="page"] {
    background: var(--c-surface-2);
    color: var(--c-title);
  }

  .header-cta {
    margin-left: 0.75rem;
  }
}

/* 5. Buttons & small components
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.625rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--r-pill);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
    color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn .icon {
  width: 18px;
  height: 18px;
}

.btn--cta {
  background: var(--c-cta);
  color: var(--c-cta-text);
  box-shadow: 0 8px 24px rgba(241, 191, 0, 0.25);
}

.btn--cta:hover {
  background: var(--c-cta-hover);
  color: var(--c-cta-text);
  box-shadow: 0 10px 32px rgba(241, 191, 0, 0.38);
}

.btn--cta:active {
  background: var(--c-cta-active);
}

.btn--primary {
  background: var(--c-primary);
  color: #fff;
  box-shadow: 0 8px 24px rgba(170, 21, 27, 0.35);
}

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

.btn--ghost {
  background: var(--c-surface-4);
  border-color: var(--c-border-strong);
  color: #fff;
}

.btn--ghost:hover {
  background: var(--c-surface-5);
  color: #fff;
}

.btn--sm {
  min-height: 36px;
  padding: 0.375rem 1rem;
  font-size: 0.875rem;
}

.btn--lg {
  min-height: 56px;
  padding: 0.875rem 2rem;
  font-size: 1.125rem;
}

.btn--block {
  width: 100%;
  white-space: normal;
}

.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.link-btn:hover {
  color: var(--c-title);
  text-decoration: underline;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.375rem 0.875rem;
  border: 1px solid rgba(241, 191, 0, 0.3);
  border-radius: var(--r-pill);
  background: rgba(241, 191, 0, 0.08);
  color: var(--es-gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow .icon {
  width: 14px;
  height: 14px;
}

.icon-badge {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(241, 191, 0, 0.25);
  border-radius: var(--r-m);
  background: linear-gradient(135deg, rgba(241, 191, 0, 0.16), rgba(170, 21, 27, 0.32));
  color: var(--es-gold);
}

.icon-badge .icon {
  width: 22px;
  height: 22px;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.95rem;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-pill);
  background: var(--c-surface-3);
  color: var(--c-title);
  font-size: 0.9375rem;
  font-weight: 600;
}

.callout {
  display: flex;
  gap: 0.875rem;
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(241, 191, 0, 0.35);
  border-left: 4px solid var(--es-gold);
  border-radius: var(--r-m);
  background: rgba(241, 191, 0, 0.07);
  font-size: 1rem;
}

.callout .icon {
  margin-top: 0.2em;
  color: var(--es-gold);
}

.callout p {
  margin: 0;
}

.callout--warning {
  border-color: rgba(255, 90, 82, 0.4);
  border-left-color: var(--es-red-bright);
  background: rgba(170, 21, 27, 0.14);
}

.callout--warning .icon {
  color: var(--c-danger);
}

/* Tables */
.table-wrap {
  margin: 1.25rem 0 1.5rem;
  overflow-x: auto;
  border: 1px solid var(--c-border);
  border-radius: var(--r-l);
  background: var(--c-surface-1);
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  font-size: 0.96875rem;
  line-height: 1.5;
}

.data-table--wide {
  min-width: 640px;
}

.data-table th,
.data-table td {
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid var(--c-border);
  text-align: left;
  vertical-align: top;
}

.data-table thead th {
  background: linear-gradient(180deg, var(--es-red) 0%, #8c1116 100%);
  color: #fff;
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.data-table tbody th {
  color: var(--c-title);
  font-weight: 700;
}

.data-table--kv tbody th {
  width: 38%;
}

.data-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.018);
}

.data-table tbody tr:last-child > * {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background: rgba(241, 191, 0, 0.045);
}

.data-table tr.is-total > * {
  background: rgba(241, 191, 0, 0.1);
  color: var(--c-title);
  font-weight: 700;
}

.data-table .stars-cell {
  color: var(--es-gold);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.data-table code {
  color: var(--es-gold-light);
  font-size: 0.875rem;
}

.promo-code {
  display: inline-block;
  padding: 0.1rem 0.55rem;
  border: 1px dashed var(--es-gold);
  border-radius: var(--r-s);
  background: rgba(241, 191, 0, 0.08);
  color: var(--es-gold-light);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.tag {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: var(--r-pill);
  background: var(--c-surface-4);
  color: var(--c-text);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.tag--success {
  background: rgba(95, 211, 107, 0.14);
  color: #8fe89a;
}

/* 6. Hero & bonus card
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 2.5rem 0 3rem;
  background:
    radial-gradient(55% 70% at 92% 0%, rgba(241, 191, 0, 0.2), transparent 60%),
    radial-gradient(55% 70% at 0% 0%, rgba(170, 21, 27, 0.55), transparent 62%),
    linear-gradient(180deg, var(--c-surface-2) 0%, var(--c-bg) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--pattern);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 90%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 90%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero__content > p {
  max-width: 62ch;
  font-size: 1.125rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.check-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--c-title);
  font-size: 0.9375rem;
  font-weight: 600;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.check-list .icon {
  width: 18px;
  height: 18px;
  color: var(--es-gold);
}

.bonus-card {
  position: relative;
  padding: 2px;
  border-radius: var(--r-xl);
  background: linear-gradient(160deg, var(--es-gold) 0%, var(--es-red) 55%, var(--es-gold) 100%);
  box-shadow: var(--shadow-glow);
}

.bonus-card__inner {
  position: relative;
  overflow: hidden;
  padding: 1.75rem 1.25rem 1.5rem;
  border-radius: calc(var(--r-xl) - 2px);
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(241, 191, 0, 0.16), transparent 70%),
    linear-gradient(165deg, var(--c-surface-4) 0%, var(--c-surface-1) 100%);
  text-align: center;
}

.bonus-card__label {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--r-pill);
  background: var(--es-red);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bonus-card__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  color: var(--c-title);
  font-weight: 700;
}

.bonus-card__brand img {
  width: 28px;
  height: 28px;
}

.bonus-card__amount {
  margin: 0.75rem 0 0.25rem;
  color: var(--c-title);
  font-size: clamp(1.875rem, 1.3rem + 2.3vw, 2.75rem);
  font-weight: 900;
  line-height: 1.1;
}

.bonus-card__amount .text-gradient {
  display: block;
}

.bonus-card__sub {
  margin: 0;
  color: var(--c-text);
  font-size: 1rem;
}

.bonus-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin: 1.25rem 0;
}

.bonus-facts div {
  padding: 0.625rem 0.375rem;
  border: 1px solid var(--c-border);
  border-radius: var(--r-m);
  background: rgba(255, 255, 255, 0.04);
}

.bonus-facts dt {
  color: var(--c-text-secondary);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bonus-facts dd {
  margin: 0;
  color: var(--c-title);
  font-weight: 800;
}

.small-print {
  margin: 0.875rem 0 0;
  color: var(--c-text-secondary);
  font-size: 0.75rem;
  line-height: 1.5;
}

.small-print a {
  color: inherit;
}

@media (min-width: 960px) {
  .hero {
    padding: 4.5rem 0 3.75rem;
  }

  .hero__grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
  }

  .bonus-card__inner {
    padding: 2.25rem 2rem 2rem;
  }
}

/* Stats strip */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stat {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1rem;
  border: 1px solid var(--c-border);
  border-radius: var(--r-l);
  background: var(--c-surface-1);
}

.stat__value {
  display: block;
  color: var(--c-title);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
}

.stat__label {
  display: block;
  color: var(--c-text-secondary);
  font-size: 0.875rem;
  line-height: 1.3;
}

@media (max-width: 379.98px) {
  .stat {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (min-width: 768px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }

  .stat {
    padding: 1.25rem;
  }

  .stat__value {
    font-size: 1.375rem;
  }
}

/* 7. Article layout & content
   ========================================================================== */
.section {
  padding: 3.5rem 0;
}

.section--tight {
  padding: 0 0 1rem;
}

.layout {
  display: grid;
  gap: 1.5rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.toc {
  padding: 1rem 1.25rem;
  border: 1px solid var(--c-border);
  border-radius: var(--r-l);
  background: var(--c-surface-1);
}

.toc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--c-title);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  list-style: none;
  cursor: pointer;
}

.toc summary::-webkit-details-marker {
  display: none;
}

.toc summary .icon {
  color: var(--es-gold);
  transition: transform 0.25s var(--ease);
}

.toc[open] summary .icon {
  transform: rotate(180deg);
}

.toc ol {
  display: grid;
  gap: 0;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.toc li {
  counter-increment: toc;
}

.toc a {
  display: flex;
  gap: 0.625rem;
  padding: 0.3rem 0;
  color: var(--c-text);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}

.toc a::before {
  content: counter(toc, decimal-leading-zero);
  min-width: 1.5rem;
  color: var(--es-gold);
  font-size: 0.8125rem;
  font-weight: 800;
  line-height: 1.75;
}

.toc a:hover {
  color: var(--es-gold-light);
}

.side-offer {
  display: none;
}

@media (min-width: 1024px) {
  .layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 3rem;
    padding-top: 3rem;
  }

  .sidebar {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    position: -webkit-sticky;
    position: sticky;
    top: calc(var(--header-h) + 1.25rem);
    display: grid;
    gap: 1rem;
    max-height: calc(100vh - var(--header-h) - 2.5rem);
    overflow-y: auto;
    scrollbar-width: thin;
  }

  .content {
    grid-column: 1;
    grid-row: 1;
  }

  .side-offer {
    display: block;
    padding: 1.25rem;
    border: 1px solid rgba(241, 191, 0, 0.3);
    border-radius: var(--r-l);
    background:
      radial-gradient(90% 80% at 50% 0%, rgba(241, 191, 0, 0.14), transparent 70%),
      var(--c-surface-3);
    text-align: center;
  }

  .side-offer p {
    margin: 0 0 0.875rem;
    color: var(--c-title);
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.25;
  }

  .side-offer small {
    display: block;
    margin-top: 0.625rem;
    color: var(--c-text-secondary);
    font-size: 0.75rem;
  }
}

/* Article body */
.content {
  min-width: 0;
}

.content > section {
  position: relative;
}

.content > section + section {
  margin-top: 2.75rem;
  padding-top: 2.75rem;
  border-top: 1px solid var(--c-border);
}

.content h2 {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 1rem;
}

/* Small vertical flag accent next to each H2 */
.content h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 5px;
  border-radius: 3px;
  background: var(--g-flag);
}

.content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--es-gold-light);
}

.content ul,
.content ol {
  margin: 0 0 1.25rem;
  padding-left: 1.35rem;
}

.content li {
  margin-bottom: 0.4rem;
}

.content ul li::marker {
  color: var(--es-gold);
}

/* Numbered steps */
.steps {
  list-style: none;
  counter-reset: step;
  padding-left: 0 !important;
}

.steps li {
  position: relative;
  counter-increment: step;
  min-height: 2rem;
  margin-bottom: 0.75rem;
  padding-left: 2.75rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--es-red);
  box-shadow: inset 0 0 0 2px rgba(241, 191, 0, 0.55);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 800;
  line-height: 1;
}

.cta-row {
  display: flex;
  justify-content: center;
  margin: 2rem 0 0.5rem;
}

/* 8. FAQ, final CTA & author
   ========================================================================== */
.faq {
  display: grid;
  gap: 0.75rem;
}

.faq__item {
  overflow: hidden;
  border: 1px solid var(--c-border);
  border-radius: var(--r-m);
  background: var(--c-surface-2);
  transition: border-color 0.2s var(--ease);
}

.faq__item[open] {
  border-color: var(--c-border-strong);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 1.25rem;
  color: var(--c-title);
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary:hover {
  color: var(--es-gold-light);
}

.faq__item summary .icon {
  color: var(--es-gold);
  transition: transform 0.25s var(--ease);
}

.faq__item[open] summary .icon {
  transform: rotate(180deg);
}

.faq__answer {
  padding: 0 1.25rem 1.25rem;
}

.faq__answer p:last-child {
  margin-bottom: 0;
}

.final-cta {
  position: relative;
  overflow: hidden;
  margin-top: 2.75rem;
  padding: 2.5rem 1.5rem;
  border: 1px solid rgba(241, 191, 0, 0.25);
  border-radius: var(--r-xl);
  background:
    var(--pattern),
    radial-gradient(70% 120% at 0% 0%, rgba(241, 191, 0, 0.22), transparent 60%),
    radial-gradient(70% 120% at 100% 100%, rgba(208, 32, 42, 0.55), transparent 60%),
    linear-gradient(135deg, #3c1b1e 0%, #5a1418 55%, #2a0d10 100%);
  background-size: 56px 56px, auto, auto, auto;
  text-align: center;
}

.final-cta__title {
  max-width: 24ch;
  margin: 0 auto 1.5rem;
  color: var(--c-title);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.125rem);
  font-weight: 800;
  line-height: 1.2;
}

.final-cta .small-print {
  color: #e6cfbf;
}

@media (min-width: 768px) {
  .final-cta {
    padding: 3.5rem 3rem;
  }
}

.author {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin: 3rem auto 0;
  padding: 2rem 1rem 0;
  border-top: 1px solid var(--c-border);
  text-align: center;
}

.author__avatar {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 3px solid var(--es-gold);
  border-radius: 50%;
  background: var(--es-red);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 900;
}

.author__label {
  margin: 0;
  color: var(--c-text-secondary);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.author__name {
  margin: 0;
  color: var(--c-title);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
}

/* 9. Footer
   ========================================================================== */
.site-footer {
  position: relative;
  padding: 3.25rem 0 2rem;
  border-top: 1px solid var(--c-border);
  background: var(--c-surface-1);
  color: var(--c-text-secondary);
  font-size: 0.9375rem;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--g-flag);
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

.footer-about p {
  max-width: 42ch;
  margin-top: 1rem;
}

.footer-title {
  margin: 0 0 1rem;
  color: var(--c-title);
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a,
.footer-links .link-btn {
  color: var(--c-text);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links .link-btn:hover {
  color: var(--c-title);
  text-decoration: underline;
}

.rg-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.rg-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-pill);
  color: var(--c-text);
  font-size: 0.75rem;
  font-weight: 700;
}

.rg-badge .icon {
  width: 14px;
  height: 14px;
}

.footer-legal {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--c-border);
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-legal p {
  margin: 0;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--c-text-muted);
}

.footer-bottom a {
  color: var(--c-text);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 2.5rem;
  }
}

/* 10. Cookie banner & sticky CTA
   ========================================================================== */
.cookie-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 200;
  max-width: 520px;
  padding: 1.25rem;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-l);
  background: var(--c-surface-2);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner.is-visible {
  opacity: 1;
  transform: none;
}

.cookie-banner__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.375rem;
  color: var(--c-title);
  font-size: 1rem;
  font-weight: 700;
}

.cookie-banner__title .icon {
  color: var(--es-gold);
}

.cookie-banner p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.cookie-banner__actions .btn {
  flex: 1 1 auto;
}

@media (min-width: 768px) {
  .cookie-banner {
    left: 24px;
    right: auto;
    bottom: 24px;
  }
}

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem var(--gutter);
  padding-bottom: calc(0.625rem + env(safe-area-inset-bottom, 0px));
  border-top: 2px solid var(--es-gold);
  background: rgba(28, 10, 12, 0.97);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  visibility: hidden;
  transform: translateY(110%);
  transition: transform 0.3s var(--ease), visibility 0.3s;
}

.sticky-cta.is-visible {
  visibility: visible;
  transform: none;
}

.sticky-cta img {
  width: 32px;
  height: 32px;
}

.sticky-cta__text {
  flex: 1;
  min-width: 0;
  margin: 0;
  color: var(--c-title);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
}

.sticky-cta__text small {
  display: block;
  color: var(--c-text-secondary);
  font-size: 0.6875rem;
  font-weight: 500;
}

.has-sticky-cta .site-footer {
  padding-bottom: 6rem;
}

@media (min-width: 960px) {
  .sticky-cta {
    display: none;
  }

  .has-sticky-cta .site-footer {
    padding-bottom: 2rem;
  }
}

/* 11. Legal pages
   ========================================================================== */
.page-hero {
  position: relative;
  padding: 2.25rem 0 2rem;
  border-bottom: 1px solid var(--c-border);
  background:
    radial-gradient(50% 120% at 95% 0%, rgba(241, 191, 0, 0.16), transparent 60%),
    radial-gradient(45% 120% at 0% 0%, rgba(170, 21, 27, 0.45), transparent 60%),
    var(--c-surface-1);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--pattern);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
}

.page-hero h1 {
  font-size: clamp(1.875rem, 1.4rem + 2vw, 2.75rem);
}

.page-hero__lead {
  max-width: 70ch;
  margin: 0;
  font-size: 1.125rem;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--c-text-secondary);
  font-size: 0.875rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--c-text-muted);
}

.breadcrumb a {
  color: var(--c-text-secondary);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--c-title);
  text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
  color: var(--c-title);
}

.legal-layout {
  display: grid;
  gap: 2rem;
  padding-top: 2.5rem;
  padding-bottom: 4rem;
}

.legal-layout .toc ol {
  margin-top: 0;
}

.toc__title {
  margin: 0 0 0.75rem;
  color: var(--c-title);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (min-width: 1024px) {
  .legal-layout {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 3.5rem;
    padding-top: 3.5rem;
    padding-bottom: 5rem;
  }

  .legal-layout .toc {
    position: -webkit-sticky;
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
    align-self: start;
    max-height: calc(100vh - var(--header-h) - 3rem);
    overflow-y: auto;
  }
}

.prose {
  max-width: 800px;
}

.prose > section + section {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--c-border);
}

.prose h2 {
  font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.625rem);
  margin-bottom: 0.875rem;
}

.prose h3 {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  color: var(--es-gold-light);
}

.prose ul,
.prose ol {
  margin: 0 0 1em;
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.375rem;
}

.prose li::marker {
  color: var(--es-gold);
}

.prose .data-table {
  min-width: 560px;
  font-size: 0.9375rem;
}

.prose address {
  font-style: normal;
}
