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

:root {
  /* Fonts (Google Fonts, linked in <head>) */
  --font-display: 'Syne';
  --font-body: 'Manrope';

  /* Surfaces — deep Portuguese forest */
  --color-bg: #04140f;
  --color-bg-elevated: #0b1f18;
  --color-surface: #10291f;
  --color-surface-hover: #183829;
  --color-border: rgba(224, 185, 70, 0.22);
  --color-border-strong: rgba(224, 185, 70, 0.45);

  /* Brand accents */
  --color-primary: #d0153a;
  --color-primary-hover: #ea2a4f;
  --color-accent: #e0b946;
  --color-accent-soft: rgba(224, 185, 70, 0.16);
  --color-highlight: #38f08a;
  --color-highlight-hover: #5df5a2;

  /* Text */
  --color-text: #f2f8f4;
  --color-text-muted: #94b3a6;
  --color-text-subtle: #678a7b;
  --color-text-inverse: #04140f;

  /* Plate behind official agency marks: they are dark artwork on transparent
     background and would be invisible on the dark surface. */
  --color-logo-plate: rgba(255, 255, 255, 0.94);

  /* Blocking-overlay treatment, shared by the age gate and the access-denied
     screen so the two read as one surface rather than two designs. */
  --color-scrim: rgba(2, 14, 10, 0.72);
  --color-inset-line: rgba(224, 185, 70, 0.16);
  --gradient-modal: linear-gradient(
    160deg,
    rgba(10, 44, 33, 0.98) 0%,
    rgba(6, 26, 20, 0.98) 48%,
    rgba(80, 14, 30, 0.96) 100%
  );
}

html {
  font-family: var(--font-body), system-ui, 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: transparent;
  color: var(--color-text);
  font-family: var(--font-body), system-ui, sans-serif;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display), var(--font-body), system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

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

/* ── Site background ──────────────────────────────────── */
.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background: var(--color-bg);
}

/* One image on every screen size: the portrait mosaic from assets/img/bg.jpg. */
.site-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ── Utilities ────────────────────────────────────────── */
[hidden] {
  display: none !important;
}

.main {
  flex: 1;
}

/* ── Topbar: sticky, carries the 18+ notice ───────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(4, 20, 15, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.topbar-logo {
  order: 1;
  display: inline-flex;
  line-height: 0;
}

.topbar-logo img {
  width: auto;
  height: 46px;
}

.topbar-note {
  order: 2;
  flex: 1;
  min-width: 0;
  margin: 0;
  padding-left: 20px;
  border-left: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

.topbar-age {
  order: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.age-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 11px;
  border: 1.5px solid var(--color-accent);
  border-radius: 999px;
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
}

.topbar-link {
  color: var(--color-text);
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.topbar-link:hover {
  color: var(--color-accent);
}

@media (max-width: 720px) {
  .topbar-inner {
    padding: 6px 12px;
  }

  .topbar-logo img {
    height: 34px;
  }

  .topbar-note {
    order: 3;
    flex-basis: 100%;
    padding-left: 0;
    border-left: 0;
    font-size: 11px;
  }

  .topbar-link {
    font-size: 12px;
  }
}

/* ── Home: intro (left-aligned, facts rail) ───────────── */
.intro {
  padding: 18px 0 0;
}

.intro-grid {
  display: block;
}

.intro-title {
  font-family: var(--font-display), var(--font-body), system-ui, sans-serif;
  font-size: clamp(1.4rem, 3.2vw, 2.1rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-align: left;
  text-wrap: balance;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}

.intro-sub {
  margin: 8px 0 0;
  max-width: 54ch;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .intro {
    padding: 14px 0 0;
  }
}

/* Section label above the cards */
.promo-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
}

.promo-head-title {
  font-family: var(--font-body), system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.promo-head::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border-strong);
}

/* ── Offers list ──────────────────────────────────────── */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

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

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

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

/* ── Offer card: base (shared visual theme) ───────────── */
.promo-card {
  position: relative;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    rgba(14, 55, 42, 0.96) 0%,
    rgba(8, 33, 25, 0.95) 45%,
    rgba(86, 14, 31, 0.92) 100%
  );
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(224, 185, 70, 0.1);
}

.promo-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(
      circle at 10% 20%,
      rgba(56, 240, 138, 0.08),
      transparent 40%
    ),
    radial-gradient(circle at 90% 80%, rgba(208, 21, 58, 0.18), transparent 46%);
  pointer-events: none;
}

.promo-card-top1 {
  border-color: rgba(224, 185, 70, 0.4);
}

.promo-card-top2,
.promo-card-top3 {
  border-color: rgba(255, 255, 255, 0.18);
}

/* Rank tab: flush in the top-left corner, number in the accent colour. */
.badge {
  position: absolute;
  top: -1px;
  left: -1px;
  z-index: 2;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 7px 16px 7px 13px;
  border: 1px solid var(--color-border-strong);
  border-radius: 14px 0 16px 0;
  background: rgba(4, 20, 15, 0.94);
  color: var(--color-text);
  font-family: var(--font-display), var(--font-body), system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.badge-num {
  color: var(--color-accent);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0;
}

.promo-card-top1 .badge {
  border-color: transparent;
  background: linear-gradient(135deg, #f6d874, #c9992a);
  color: #1b1405;
}

.promo-card-top2 .badge {
  border-color: transparent;
  background: linear-gradient(135deg, #eef4f5, #9db1b8);
  color: #0e1b1f;
}

.promo-card-top3 .badge {
  border-color: transparent;
  background: linear-gradient(135deg, #efb583, #a8653a);
  color: #1f1006;
}

.promo-card-top2 .badge-num,
.promo-card-top3 .badge-num {
  color: inherit;
}

/* Guide structure */
.promo-card-guide {
  overflow: visible;
}

.card-inner-guide {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    'logo'
    'rating'
    'content'
    'cta';
  gap: 12px;
  padding: 40px 14px 14px;
  position: relative;
  z-index: 1;
}

/* Not a box of its own: its children are cells of the grid above, so the score row and
   the offer line keep their own areas in both layouts. Any element added inside becomes
   a cell too and needs a `grid-area`, otherwise it lands in an extra row. */
.offer-area {
  display: contents;
}

.logo-area {
  grid-area: logo;
  display: flex;
  align-items: center;
}

.bonus-line {
  margin: 0;
  min-width: 0;
  width: 100%;
  padding: 10px 14px;
  border: 1px dashed var(--color-border-strong);
  border-radius: 12px;
  background: rgba(224, 185, 70, 0.07);
  color: var(--color-text-muted);
  font-family: var(--font-body), system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
}

/* The figure is the one loud thing in the line; the words around it and the extra
   ("+ 150 rodadas") stay small, light and muted so they read as context. On mobile each
   part gets its own line: percentage, sum, extra. */
.bonus-lead {
  display: block;
}

.bonus-sum {
  display: block;
  color: var(--color-accent);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  white-space: nowrap;
}

.bonus-secondary {
  display: block;
  margin-top: 2px;
}

/* One line, and it must stay one line: the row is measured by the grid as max-content,
   so a wrap here would silently change the column width instead of the row height. */
.rating {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.star {
  display: block;
  flex: none;
}

.star-track {
  fill: rgba(255, 255, 255, 0.16);
}

.star-fill {
  fill: var(--color-accent);
}

/* Score as a pill: 4.9 in gold, "/5" muted. */
.rating-value {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  padding: 3px 9px;
  border: 1px solid var(--color-border-strong);
  border-radius: 999px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
}

.rating-value small {
  color: var(--color-text-muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 132px;
  height: 72px;
  padding: 8px 10px;
  border: 1px solid var(--color-border-strong);
  border-radius: 20px;
  background: radial-gradient(
    120% 120% at 25% 15%,
    rgba(255, 255, 255, 0.13),
    rgba(0, 0, 0, 0.55) 70%
  );
  box-shadow:
    inset 0 0 0 3px rgba(0, 0, 0, 0.25),
    0 6px 16px rgba(0, 0, 0, 0.35);
  margin: 0 auto;
}

.logo-guide {
  width: auto;
  height: auto;
  max-width: 132px;
  max-height: 56px;
  object-fit: contain;
}

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

/* Mobile: the offer line on its own row. Desktop puts it next to the score (see the
   media query below). */
.content-area {
  grid-area: content;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

/* ── Offer button ─────────────────────────────────────── */
/* One link, the only clickable element of the card. It is the grid cell `cta` itself,
   so there are no wrappers whose height or padding could shrink the click area. */
.offer-btn {
  grid-area: cta;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  min-height: 50px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-primary), #9a0f2b);
  color: var(--color-text);
  font-family: var(--font-display), var(--font-body), system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.2),
    0 8px 20px rgba(208, 21, 58, 0.38);
  transition:
    background 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.1s ease;
}

.offer-btn-icon {
  flex: none;
  display: block;
  transition: transform 0.15s ease;
}

.offer-btn:hover,
.promo-card-guide:hover .offer-btn {
  background: linear-gradient(
    135deg,
    var(--color-primary-hover),
    var(--color-primary)
  );
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.32),
    0 10px 26px rgba(208, 21, 58, 0.5);
}

.offer-btn:hover .offer-btn-icon,
.promo-card-guide:hover .offer-btn-icon {
  transform: translateX(4px);
}

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

.offer-btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* Desktop: two cards per row. Inside a card the logo sits on the left, the score and
   offer line on the right, the button underneath across the full width. */
@media (min-width: 769px) {
  .promo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 22px;
  }

  /* An odd last card stays the same width as the others and sits centred. */
  .promo-grid > .promo-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 11px);
  }

  .card-inner-guide {
    grid-template-columns: 124px minmax(0, 1fr);
    grid-template-areas:
      'logo rating'
      'logo content'
      'cta  cta';
    align-items: center;
    gap: 10px 20px;
    padding: 38px 20px 18px;
  }

  .card-inner-guide .logo-area {
    justify-content: flex-start;
  }

  .logo-box {
    margin: 0;
  }

  .card-inner-guide .rating-area {
    justify-content: flex-start;
    align-self: end;
  }

  .card-inner-guide .content-area {
    align-items: flex-start;
    align-self: start;
  }

  .card-inner-guide .bonus-line {
    font-size: 0.85rem;
    text-align: left;
  }

  .card-inner-guide .offer-btn {
    margin-top: 8px;
  }
}

/* ── Footer: editorial layout ─────────────────────────── */
.foot {
  margin-top: auto;
  position: relative;
  z-index: 10;
  color: var(--color-text-muted);
  background: linear-gradient(
    180deg,
    rgba(4, 20, 15, 0.88),
    rgba(3, 14, 10, 0.97)
  );
  border-top: 2px solid var(--color-accent);
}

.foot-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 52px 16px 26px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.foot-top {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 32px 64px;
}

.foot-logo {
  display: inline-flex;
  line-height: 0;
}

.foot-logo img {
  width: auto;
  height: 48px;
}

.foot-lead-title {
  margin: 20px 0 8px;
  color: var(--color-text);
  font-size: 1.15rem;
  line-height: 1.3;
}

.foot-lead-text {
  margin: 0 0 12px;
  max-width: 64ch;
  font-size: 0.9rem;
  line-height: 1.7;
}

.foot-registry {
  color: var(--color-accent);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.foot-registry:hover {
  color: var(--color-text);
}

.foot-label {
  margin: 0 0 14px;
  font-family: var(--font-body), system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.foot-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.foot-nav a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
  font-size: 0.95rem;
  line-height: 1.3;
}

.foot-nav a::before {
  content: '';
  flex: none;
  width: 14px;
  height: 1px;
  background: var(--color-accent);
}

.foot-nav a:hover {
  color: var(--color-accent);
}

.foot-note {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  gap: 6px 28px;
  padding: 20px 24px;
  border-left: 4px solid var(--color-accent);
  background: var(--color-accent-soft);
}

.foot-note-title {
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.3;
}

.foot-note-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
}

.foot-ops-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px 24px;
}

.foot-ops-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 12px;
  border-left: 2px solid var(--color-border-strong);
}

.ops-brand {
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 700;
}

.ops-meta {
  color: var(--color-text-subtle);
  font-size: 0.78rem;
  line-height: 1.45;
}

.foot-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.foot-col {
  min-width: 0;
  padding-right: 36px;
}

.foot-col + .foot-col {
  padding-right: 0;
  padding-left: 36px;
  border-left: 1px solid var(--color-border);
}

.compliance-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--color-logo-plate);
}

.compliance-logo {
  width: auto;
  height: 34px;
  max-width: 100%;
  object-fit: contain;
}

.compliance-text {
  margin: 0 0 4px;
  font-size: 0.84rem;
  line-height: 1.55;
}

.compliance-link {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.compliance-link:hover {
  color: var(--color-accent);
}

.help-list {
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.help-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.help-description {
  color: var(--color-text-subtle);
  font-size: 0.8rem;
  line-height: 1.5;
}

.foot-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.foot-step {
  display: grid;
  grid-template-columns: 72px minmax(0, 230px) minmax(0, 1fr);
  align-items: baseline;
  gap: 8px 24px;
  padding: 20px 0;
  border-top: 1px solid var(--color-border);
}

.foot-step:last-child {
  border-bottom: 1px solid var(--color-border);
}

.foot-step-num {
  font-family: var(--font-display), sans-serif;
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--color-accent);
}

.foot-step-title {
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.3;
}

.foot-step-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
}

.foot-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.foot-copy {
  margin: 0;
  color: var(--color-text-subtle);
  font-size: 13px;
}

.foot-age {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--color-accent);
  border-radius: 999px;
  color: var(--color-accent);
  font-size: 0.85rem;
  font-weight: 800;
}

@media (max-width: 860px) {
  .foot-inner {
    padding: 36px 14px 22px;
    gap: 32px;
  }

  .foot-top,
  .foot-note,
  .foot-cols {
    grid-template-columns: 1fr;
  }

  .foot-note {
    padding: 16px 18px;
  }

  .foot-col,
  .foot-col + .foot-col {
    padding: 0;
    border-left: 0;
  }

  .foot-col + .foot-col {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid var(--color-border);
  }

  .foot-step {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .foot-step-text {
    grid-column: 1 / -1;
  }
}

/* ── Legal pages: sticky index + reading column ───────── */
.doc {
  flex: 1;
  padding: 40px 16px 72px;
}

.doc-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.doc-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border-strong);
}

.doc-head h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.doc .updated {
  margin: 0;
  padding: 6px 14px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--color-text-subtle);
  font-size: 0.8rem;
}

.doc-grid {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.doc-toc {
  position: sticky;
  top: 96px;
  padding: 20px 20px 18px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: rgba(4, 20, 15, 0.62);
}

.doc-toc-label {
  margin: 0 0 12px;
  color: var(--color-accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.doc-toc ol {
  margin: 0;
  padding: 0 0 0 20px;
  display: grid;
  gap: 8px;
}

.doc-toc li {
  color: var(--color-text-subtle);
  font-size: 0.82rem;
}

.doc-toc a {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.doc-toc a:hover {
  color: var(--color-accent);
}

.doc-body {
  min-width: 0;
  max-width: 72ch;
}

.doc-body h2 {
  margin: 48px 0 14px;
  scroll-margin-top: 100px;
  color: var(--color-text);
  font-size: 1.35rem;
  line-height: 1.25;
}

.doc-body h2::after {
  content: '';
  display: block;
  width: 36px;
  height: 3px;
  margin-top: 10px;
  border-radius: 2px;
  background: var(--color-accent);
}

.doc-body h2:first-child {
  margin-top: 0;
}

.doc-body p,
.doc-body li {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text-muted);
}

.doc-body p {
  margin: 0 0 14px;
}

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

.doc-body ul,
.doc-body ol {
  margin: 0 0 14px;
  padding-left: 22px;
}

.doc-body li + li {
  margin-top: 6px;
}

.doc-body a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.doc-body a:hover {
  color: #ffe594;
}

@media (max-width: 860px) {
  .doc {
    padding: 26px 14px 52px;
  }

  .doc-grid {
    grid-template-columns: 1fr;
  }

  .doc-toc {
    display: none;
  }
}

/* ── 404 ──────────────────────────────────────────────── */
.lost {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 56px 16px;
  text-align: center;
}

.lost-code {
  margin: 0;
  font-family: var(--font-display), sans-serif;
  font-size: clamp(5.5rem, 24vw, 12rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 2px var(--color-accent);
}

.lost h1 {
  margin: 20px 0 8px;
  font-size: clamp(1.4rem, 4vw, 1.9rem);
}

.lost-text {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 1rem;
}

.lost-link {
  display: inline-flex;
  margin-top: 24px;
  padding: 12px 24px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--color-primary), #9a0f2b);
  color: var(--color-text);
  font-family: var(--font-display), sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 0 16px rgba(208, 21, 58, 0.35);
}

.lost-link:hover {
  background: linear-gradient(
    135deg,
    var(--color-primary-hover),
    var(--color-primary)
  );
}

/* ── Cookie card: compact, bottom-left ────────────────── */
.cookie {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 40;
  width: min(360px, calc(100vw - 32px));
  padding: 18px 18px 16px;
  border: 1px solid var(--color-border-strong);
  border-radius: 14px;
  background: var(--gradient-modal);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.55);
}

.cookie-title {
  margin: 0 0 6px;
  color: var(--color-text);
  font-size: 0.98rem;
  line-height: 1.3;
}

.cookie-text {
  margin: 0 0 14px;
  color: var(--color-text-muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cookie-accept {
  flex: none;
  padding: 10px 22px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--color-primary), #9a0f2b);
  color: var(--color-text);
  font-family: var(--font-display), var(--font-body), system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 0 16px rgba(208, 21, 58, 0.35);
}

.cookie-accept:hover {
  background: linear-gradient(
    135deg,
    var(--color-primary-hover),
    var(--color-primary)
  );
}

.cookie-accept:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.cookie-more {
  color: var(--color-accent);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 640px) {
  .cookie {
    left: 8px;
    right: 8px;
    bottom: 8px;
    width: auto;
    padding: 14px;
  }
}
