/* ==========================================================================
   piperspin-casino-de.net — "Altdeutsch" theme
   Old German print look: aged parchment, iron-gall ink, oxblood and gilt,
   blackletter headings, double-ruled frames, fleurons and wax seals.

   1. Tokens          6. Hero & seal       11. FAQ / CTA / author
   2. Base            7. Stats             12. Footer
   3. Utilities       8. Layout & TOC      13. Cookie banner & sticky CTA
   4. Header          9. Article content   14. Legal pages
   5. Buttons        10. Tables
   ========================================================================== */

/* 1. Tokens
   ========================================================================== */
:root {
  --paper: #efe5cc;
  --paper-2: #e4d6b2;
  --card: #f8f1de;
  --ink: #231912;
  --ink-2: #33251a;
  --text: #3b2e22;
  --muted: #6e5d4a;
  --line: #d6c49b;
  --line-strong: #a88b55;
  --red: #9b2226;
  --red-dark: #6e1418;
  --gold: #c9a24a;
  --gold-light: #e2c47a;
  --gold-soft: #f1e2b4;
  --green: #3c4a2f;

  --font-fraktur: "UnifrakturMaguntia", "Old English Text MT", "Grenze Gotisch", Georgia, serif;
  --font-display: "Grenze Gotisch", "Old English Text MT", Georgia, serif;
  --font-body: "Alegreya", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --font-sc: "Alegreya SC", "Alegreya", "Palatino Linotype", Georgia, serif;

  --gutter: 16px;
  --header-h: 66px;
  --r-s: 2px;
  --r-m: 4px;
  --r-l: 6px;
  --shadow: 0 1px 0 rgba(35, 25, 18, 0.08), 0 10px 26px -16px rgba(35, 25, 18, 0.45);
  --shadow-lg: 0 2px 0 rgba(35, 25, 18, 0.08), 0 26px 50px -24px rgba(35, 25, 18, 0.6);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* Paper grain */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .12 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  /* Faint damask diamond pattern */
  --damask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23a88b55' stroke-opacity='.16'%3E%3Cpath d='M32 4 60 32 32 60 4 32Z'/%3E%3Cpath d='M32 22c4 4 4 6 0 10-4-4-4-6 0-10Zm0 20c4-4 4-6 0-10-4 4-4 6 0 10Z'/%3E%3C/g%3E%3C/svg%3E");
  /* Ornamental rule: line — fleuron — line */
  --rule: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='18' viewBox='0 0 220 18'%3E%3Cg fill='%23a88b55'%3E%3Cpath d='M0 8.5h86v1H0zM134 8.5h86v1h-86z'/%3E%3Cpath d='M110 1l7 8-7 8-7-8z' fill='%239b2226'/%3E%3Ccircle cx='94' cy='9' r='2.5'/%3E%3Ccircle cx='126' cy='9' r='2.5'/%3E%3C/g%3E%3C/svg%3E");
}

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

/* 2. Base
   ========================================================================== */
*,
*::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;
  min-width: 320px;
  overflow-x: hidden;
  background-color: var(--paper);
  background-image:
    var(--grain),
    radial-gradient(ellipse at 50% 0%, rgba(255, 250, 235, 0.7), transparent 60%),
    radial-gradient(ellipse at 50% 120%, rgba(120, 85, 40, 0.18), transparent 60%),
    var(--damask);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums;
}

svg {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
  vertical-align: middle;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.75rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.005em;
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.05;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.4rem);
}

h3 {
  font-size: clamp(1.35rem, 2.8vw, 1.6rem);
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--red);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--red-dark);
}

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

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

::selection {
  background: var(--gold-soft);
  color: var(--ink);
}

table {
  border-collapse: collapse;
}

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

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

/* 3. Utilities
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 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: -100px;
  left: 16px;
  z-index: 1000;
  padding: 0.6rem 1rem;
  border-radius: var(--r-m);
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

.text-gradient {
  color: var(--red);
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ornament {
  display: block;
  width: 220px;
  max-width: 100%;
  height: 18px;
  margin: 1rem auto;
  background: var(--rule) center / contain no-repeat;
}

/* 4. Topbar & header
   ========================================================================== */
.topbar {
  padding: 0.45rem 0;
  background: #17100b;
  color: #d9c9a3;
  font-size: 0.8125rem;
  line-height: 1.45;
  border-bottom: 1px solid var(--gold);
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.topbar a {
  color: var(--gold-light);
}

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-width: 2.3em;
  padding: 0.1em 0.45em;
  border: 2px solid var(--red);
  border-radius: 999px;
  background: var(--card);
  color: var(--red);
  font-family: var(--font-sc);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.3;
}

.site-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 100;
  background:
    var(--grain),
    linear-gradient(180deg, #2b1f15, #1e150e);
  border-bottom: 3px double var(--gold);
  box-shadow: 0 6px 18px -10px rgba(0, 0, 0, 0.7);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: auto;
  color: var(--paper);
  font-family: var(--font-fraktur);
  font-size: 1.95rem;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
}

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

.logo .text-gradient {
  color: var(--gold);
}

.logo img {
  width: 42px;
  height: 42px;
  transition: transform 0.3s var(--ease);
}

.logo:hover img {
  transform: rotate(-6deg) scale(1.05);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--gold);
  border-radius: var(--r-m);
  background: transparent;
  color: var(--gold-light);
  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: block;
}

.nav {
  position: absolute;
  top: 100%;
  left: calc(var(--gutter) * -1);
  right: calc(var(--gutter) * -1);
  display: none;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  margin-top: 3px;
  padding: 0.75rem var(--gutter) 1.25rem;
  background: #1e150e;
  border-bottom: 3px double var(--gold);
  box-shadow: var(--shadow-lg);
}

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

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

.nav-list a {
  display: block;
  padding: 0.65rem 0.9rem;
  border-radius: var(--r-m);
  color: #eadbb6;
  font-family: var(--font-sc);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  background: rgba(201, 162, 74, 0.12);
  color: var(--gold-light);
}

.header-cta {
  display: none;
  white-space: nowrap;
}

@media (min-width: 480px) {
  .header-cta {
    display: inline-flex;
  }
}

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

  .logo {
    margin-right: 0;
  }

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

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

  .nav-list a {
    position: relative;
    padding: 0.4rem 0.7rem;
    font-size: 1rem;
    line-height: 1.4;
  }

  .nav-list a::after {
    content: "";
    position: absolute;
    left: 0.7rem;
    right: 0.7rem;
    bottom: 0.1rem;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.25s var(--ease);
  }

  .nav-list a:hover {
    background: none;
  }

  .nav-list a:hover::after {
    transform: scaleX(1);
  }

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

/* 5. Buttons & small components
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--r-m);
  font-family: var(--font-sc);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s, color 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn .icon {
  transition: transform 0.2s var(--ease);
}

.btn:hover .icon {
  transform: translateX(3px);
}

.btn--cta {
  background: linear-gradient(180deg, #b0282d, var(--red) 55%, var(--red-dark));
  border-color: var(--red-dark);
  color: #fbf1d8;
  box-shadow:
    inset 0 0 0 2px rgba(226, 196, 122, 0.85),
    inset 0 0 0 3px var(--red-dark),
    0 10px 22px -12px rgba(110, 20, 24, 0.9);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.btn--cta:hover {
  background: linear-gradient(180deg, #bf3237, #a5262a 55%, var(--red-dark));
  color: #fff;
  box-shadow:
    inset 0 0 0 2px var(--gold-light),
    inset 0 0 0 3px var(--red-dark),
    0 14px 26px -12px rgba(110, 20, 24, 0.95);
}

.btn--primary {
  background: var(--ink);
  color: var(--paper);
}

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

.btn--ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
  box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 4px var(--line-strong);
}

.btn--ghost:hover {
  background: var(--ink);
  color: var(--gold-light);
  box-shadow: none;
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
}

.btn--lg {
  padding: 0.95rem 1.7rem;
  font-size: 1.125rem;
}

.btn--block {
  display: flex;
  width: 100%;
}

.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.link-btn:hover {
  color: var(--gold);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.25rem 0.9rem;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  color: var(--muted);
  font-family: var(--font-sc);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.eyebrow .icon {
  color: var(--red);
}

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 48px;
  height: 48px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #3b2b1d, var(--ink));
  color: var(--gold-light);
  box-shadow: 0 0 0 3px var(--card), 0 0 0 4px var(--line-strong);
}

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

.callout {
  display: flex;
  gap: 0.75rem;
  margin: 1.5rem 0;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line-strong);
  border-left: 5px solid var(--gold);
  border-radius: var(--r-m);
  background: rgba(241, 226, 180, 0.4);
}

.callout .icon {
  margin-top: 0.3rem;
  color: var(--gold);
}

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

.callout--warning {
  border-left-color: var(--red);
}

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

.tag {
  display: inline-block;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  font-family: var(--font-sc);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.tag--success {
  background: rgba(60, 74, 47, 0.15);
  color: var(--green);
}

/* 6. Hero & seal
   ========================================================================== */
.hero {
  position: relative;
  padding: 2.25rem 0 2.5rem;
}

.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: 220px;
  height: 18px;
  background: var(--rule) center / contain no-repeat;
  transform: translateX(-50%);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
}

.hero__grid > *,
.layout > * {
  min-width: 0;
}

.hero h1 {
  font-weight: 800;
}

.hero h1 .text-gradient {
  display: block;
  margin-top: 0.2em;
  font-family: var(--font-body);
  font-size: 0.55em;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
}

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

.hero__content > p:first-of-type::first-letter {
  float: left;
  margin: 0.08em 0.12em 0 0;
  color: var(--red);
  font-family: var(--font-fraktur);
  font-size: 3.4em;
  line-height: 0.85;
}

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

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
}

.check-list .icon {
  width: 20px;
  height: 20px;
  padding: 3px;
  border-radius: 50%;
  background: var(--green);
  color: var(--gold-soft);
  stroke-width: 3;
}

/* Seal card: framed emblem like an old certificate */
.seal-card {
  position: relative;
  margin: 0;
  padding: 1.5rem 1rem 3.25rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-l);
  background:
    var(--grain),
    radial-gradient(circle at 50% 40%, #fbf5e4, #ecdfbd 75%);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.seal-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 3px double var(--line-strong);
  border-radius: var(--r-m);
  pointer-events: none;
}

.seal {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  margin: 0 auto;
}

.seal__ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: seal-turn 60s linear infinite;
}

@keyframes seal-turn {
  to {
    transform: rotate(360deg);
  }
}

.seal-card__motto {
  margin: 0.75rem 0 0;
  color: var(--ink);
  font-family: var(--font-fraktur);
  font-size: 1.6rem;
  line-height: 1.2;
}

.seal-card__sub {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-family: var(--font-sc);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

/* Bonus card: the certificate overlapping the seal */
.bonus-card {
  position: relative;
  z-index: 2;
  margin: -2.25rem 10px 0;
  border: 2px solid var(--ink);
  border-radius: var(--r-l);
  background: var(--card);
  box-shadow: var(--shadow-lg);
}

.bonus-card::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid var(--gold);
  border-radius: var(--r-m);
  pointer-events: none;
}

.bonus-card__inner {
  position: relative;
  padding: 1.4rem 1.25rem 1.2rem;
  text-align: center;
}

.bonus-card__label {
  display: inline-block;
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-family: var(--font-sc);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}

.bonus-card__amount {
  margin: 0 0 0.35rem;
  font-size: clamp(2rem, 5vw, 2.6rem);
  line-height: 1.05;
}

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

.bonus-card__sub {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-style: italic;
}

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

.bonus-facts div {
  padding: 0.5rem 0.25rem;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: rgba(228, 214, 178, 0.35);
}

.bonus-facts dt {
  color: var(--muted);
  font-family: var(--font-sc);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.bonus-facts dd {
  margin: 0;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 800;
}

.small-print {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.small-print a {
  color: inherit;
}

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

  .hero__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: center;
    gap: 3.5rem;
  }

  .bonus-card {
    margin: -2.75rem 1.5rem 0;
  }
}

/* 7. Stats
   ========================================================================== */
.section {
  padding: 3rem 0;
}

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

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

.stat {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-l);
  background: var(--card);
  box-shadow: var(--shadow), inset 0 0 0 4px var(--card), inset 0 0 0 5px var(--line);
  transition: transform 0.2s var(--ease);
}

.stat:hover {
  transform: translateY(-3px);
}

.stat__value {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
}

.stat__label {
  display: block;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.35;
}

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

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

  .stat {
    padding: 1.15rem;
  }

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

/* 8. Layout & TOC
   ========================================================================== */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  padding-top: 1rem;
  padding-bottom: 3rem;
}

.toc {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-l);
  background: var(--card);
  box-shadow: var(--shadow);
}

.toc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.9rem 1.1rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

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

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

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

.toc ol {
  margin: 0;
  padding: 0 0.6rem 0.9rem;
  list-style: none;
  counter-reset: toc;
}

.toc li {
  counter-increment: toc;
}

.toc a {
  position: relative;
  display: flex;
  gap: 0.6rem;
  padding: 0.35rem 0.5rem;
  border-radius: var(--r-s);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.4;
  text-decoration: none;
}

.toc a::before {
  content: counter(toc, upper-roman) ".";
  flex: none;
  min-width: 2.4em;
  color: var(--red);
  font-family: var(--font-sc);
  font-weight: 700;
}

.toc a:hover {
  background: var(--paper-2);
  color: var(--ink);
}

.side-offer {
  display: none;
}

@media (min-width: 1024px) {
  .layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 3.5rem;
    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 {
    position: relative;
    display: block;
    padding: 1.6rem 1.25rem 1.4rem;
    border: 2px solid var(--ink);
    border-radius: var(--r-l);
    background: var(--grain), linear-gradient(180deg, #2b1f15, #1e150e);
    color: #eadbb6;
    text-align: center;
  }

  .side-offer::before {
    content: "";
    position: absolute;
    inset: 5px;
    border: 1px solid var(--gold);
    border-radius: var(--r-m);
    pointer-events: none;
  }

  .side-offer p {
    position: relative;
    margin: 0 0 1rem;
    color: var(--paper);
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.2;
  }

  .side-offer .text-gradient {
    color: var(--gold-light);
  }

  .side-offer small {
    position: relative;
    display: block;
    margin-top: 0.625rem;
    color: #b9a57c;
    font-size: 0.8rem;
  }
}

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

.content > section {
  position: relative;
  padding: 1.75rem 1.15rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-l);
  background: var(--grain), rgba(248, 241, 222, 0.94);
  box-shadow: var(--shadow), inset 0 0 0 6px rgba(248, 241, 222, 0.94), inset 0 0 0 7px var(--line);
}

/* Corner fleurons */
.content > section::before,
.content > section::after {
  content: "❦";
  position: absolute;
  top: 10px;
  color: var(--gold);
  font-size: 1.1rem;
  line-height: 1;
}

.content > section::before {
  left: 14px;
  transform: scaleX(-1);
}

.content > section::after {
  right: 14px;
}

.content > section + section {
  margin-top: 1.75rem;
}

@media (min-width: 768px) {
  .content > section {
    padding: 2.5rem 2.75rem;
  }
}

.content h2 {
  margin-bottom: 1.1rem;
  padding-bottom: 1.1rem;
  text-align: center;
  background: var(--rule) center bottom / 180px 14px no-repeat;
}

/* Drop cap on the first paragraph of every chapter */
.content > section > h2 + p::first-letter {
  float: left;
  margin: 0.06em 0.1em 0 0;
  color: var(--red);
  font-family: var(--font-fraktur);
  font-size: 3.3em;
  line-height: 0.85;
}

.content h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.9rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
}

.content h3::before {
  content: "";
  flex: none;
  width: 0.45em;
  height: 0.45em;
  background: var(--red);
  transform: rotate(45deg);
  box-shadow: 0 0 0 2px var(--card), 0 0 0 3px var(--gold);
}

.content ul,
.content ol {
  padding-left: 1.5rem;
}

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

.content ul {
  list-style: none;
}

.content ul > li {
  position: relative;
}

.content ul > li::before {
  content: "✠";
  position: absolute;
  left: -1.3rem;
  top: 0.05em;
  color: var(--red);
  font-size: 0.85em;
}

.content ol li::marker {
  color: var(--red);
  font-weight: 700;
}

/* Steps as wax seals with roman numerals */
.content ol.steps,
.steps {
  margin: 1.25rem 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  min-height: 2.6rem;
  margin: 0;
  padding: 0.4rem 0 1rem 3.4rem;
  counter-increment: step;
}

.steps li::before {
  content: counter(step, upper-roman);
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #c1393e, var(--red) 55%, var(--red-dark));
  box-shadow: 0 0 0 2px var(--gold), 0 3px 8px -2px rgba(110, 20, 24, 0.7);
  color: var(--gold-soft);
  font-family: var(--font-sc);
  font-size: 0.95rem;
  font-weight: 700;
}

.steps li::after {
  content: "";
  position: absolute;
  top: 2.6rem;
  bottom: 0.1rem;
  left: 1.15rem;
  border-left: 1px dotted var(--line-strong);
}

.steps li:last-child {
  padding-bottom: 0.25rem;
}

.steps li:last-child::after {
  display: none;
}

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

/* Author byline: top right of the content */
.byline {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.25rem;
}

.byline__card {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.6rem 0.55rem 1.2rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow), inset 0 0 0 3px var(--card), inset 0 0 0 4px var(--line);
  text-align: right;
}

.byline__text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.byline__label {
  color: var(--muted);
  font-family: var(--font-sc);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.byline__name {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
}

.byline__date {
  color: var(--muted);
  font-size: 0.85rem;
  font-style: italic;
}

.byline__avatar,
.author__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 50px;
  height: 50px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #c1393e, var(--red) 55%, var(--red-dark));
  box-shadow: 0 0 0 2px var(--card), 0 0 0 3px var(--line-strong);
  color: var(--gold-soft);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

/* 10. Tables
   ========================================================================== */
.table-wrap {
  margin: 1.25rem 0;
  overflow-x: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-m);
  background: var(--card);
  box-shadow: inset 0 0 0 3px var(--card), inset 0 0 0 4px var(--line);
  -webkit-overflow-scrolling: touch;
}

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

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

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

.data-table thead th {
  background: var(--ink);
  color: var(--gold-light);
  font-family: var(--font-sc);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-bottom: 3px double var(--gold);
}

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

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

.data-table tbody tr:nth-child(even) {
  background: rgba(228, 214, 178, 0.4);
}

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

.data-table tbody tr:hover {
  background: var(--gold-soft);
}

.data-table tr.is-total > * {
  background: var(--paper-2);
  color: var(--ink);
  font-weight: 800;
  border-top: 3px double var(--ink);
}

/* 11. FAQ / CTA / author
   ========================================================================== */
.faq {
  display: grid;
  gap: 0.75rem;
}

.faq__item {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-m);
  background: var(--card);
  transition: border-color 0.2s;
}

.faq__item[open] {
  border-color: var(--ink);
  box-shadow: var(--shadow), inset 0 0 0 3px var(--card), inset 0 0 0 4px var(--gold);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}

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

.faq__item summary:hover {
  color: var(--red);
}

.faq__item summary .icon {
  width: 30px;
  height: 30px;
  padding: 5px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper-2);
  transition: transform 0.25s var(--ease), background-color 0.2s;
}

.faq__item[open] summary .icon {
  background: var(--gold);
  border-color: var(--ink);
  transform: rotate(180deg);
}

.faq__answer {
  padding: 0 1.15rem 1rem;
}

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

.final-cta {
  position: relative;
  overflow: hidden;
  padding: 2rem 1.25rem;
  border: 2px solid var(--ink);
  border-radius: var(--r-l);
  background: var(--ink);
  color: #eadbb6;
  text-align: center;
}

.final-cta__title {
  color: var(--paper);
}

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

.author {
  display: grid;
  justify-items: center;
  gap: 0.25rem;
  margin-top: 2rem;
  padding: 1.5rem;
  border: 3px double var(--line-strong);
  border-radius: var(--r-l);
  background: rgba(248, 241, 222, 0.7);
  text-align: center;
}

.author__avatar {
  width: 66px;
  height: 66px;
  font-size: 1.7rem;
}

.author__label {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-sc);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

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

/* 12. Footer
   ========================================================================== */
.site-footer {
  position: relative;
  padding: 3.25rem 0 2rem;
  background: var(--grain), linear-gradient(180deg, #23190f, #160f09);
  border-top: 3px double var(--gold);
  color: #cdbb95;
  font-size: 0.975rem;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  width: 220px;
  height: 18px;
  background: #1e150e var(--rule) center / contain no-repeat;
  transform: translateX(-50%);
}

.site-footer a {
  color: #efe2c0;
}

.site-footer a:hover {
  color: var(--gold-light);
}

.site-footer .logo {
  color: var(--paper);
}

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

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

.footer-title {
  margin-bottom: 0.75rem;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.35rem;
}

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

.footer-links .link-btn {
  color: #efe2c0;
}

.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.4rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid rgba(201, 162, 74, 0.4);
  border-radius: 999px;
  font-size: 0.875rem;
}

.rg-badge .icon {
  color: var(--gold);
}

.footer-legal {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(201, 162, 74, 0.3);
  color: #a8956f;
  font-size: 0.875rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 1rem;
}

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

/* 13. Cookie banner & sticky CTA
   ========================================================================== */
.cookie-banner {
  position: fixed;
  left: 8px;
  right: 8px;
  bottom: 8px;
  z-index: 200;
  max-width: 460px;
  padding: 1.1rem 1.15rem;
  border: 2px solid var(--ink);
  border-radius: var(--r-l);
  background: var(--card);
  box-shadow: var(--shadow-lg), inset 0 0 0 4px var(--card), inset 0 0 0 5px var(--gold);
  font-size: 0.95rem;
  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-bottom: 0.4rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
}

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

.cookie-banner p {
  margin-bottom: 0.75rem;
}

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

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

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

.sticky-cta {
  position: fixed;
  left: 8px;
  right: 8px;
  bottom: 8px;
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.5rem 0.5rem 0.7rem;
  margin-bottom: env(safe-area-inset-bottom, 0px);
  border: 2px solid var(--gold);
  border-radius: var(--r-l);
  background: rgba(30, 21, 14, 0.97);
  box-shadow: var(--shadow-lg);
  visibility: hidden;
  transform: translateY(140%);
  transition: transform 0.3s var(--ease), visibility 0.3s;
}

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

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

.sticky-cta__text {
  flex: 1;
  min-width: 0;
  margin: 0;
  color: var(--paper);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.3;
}

.sticky-cta__text small {
  display: block;
  color: #b9a57c;
  font-size: 0.75rem;
  font-weight: 500;
}

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

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

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

/* 14. Legal pages
   ========================================================================== */
.page-hero {
  position: relative;
  padding: 2.5rem 0 2rem;
}

.page-hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: 220px;
  height: 18px;
  background: var(--rule) center / contain no-repeat;
  transform: translateX(-50%);
}

.page-hero__lead {
  max-width: 65ch;
  font-size: 1.15rem;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.95rem;
  list-style: none;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 1rem;
  padding: 0;
  font-family: var(--font-sc);
  font-size: 0.95rem;
  list-style: none;
}

.breadcrumb li + li::before {
  content: "›";
  margin-right: 0.35rem;
  color: var(--line-strong);
}

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

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

nav.toc {
  padding-top: 0.9rem;
}

.toc__title {
  margin: 0 1.1rem 0.5rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

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

  .legal-layout .toc {
    position: -webkit-sticky;
    position: sticky;
    top: calc(var(--header-h) + 1.25rem);
    align-self: start;
  }
}

.prose {
  min-width: 0;
  padding: 1.75rem 1.15rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-l);
  background: var(--grain), rgba(248, 241, 222, 0.94);
  box-shadow: var(--shadow), inset 0 0 0 6px rgba(248, 241, 222, 0.94), inset 0 0 0 7px var(--line);
}

@media (min-width: 768px) {
  .prose {
    padding: 2.5rem 2.75rem;
  }
}

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

.prose h3 {
  margin-top: 1.5rem;
}

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

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

.prose address {
  font-style: normal;
}
