/* =========================================================
   PlayGameRadar — "Hatch" pastel-zine redesign
   Hand-drawn candy-store aesthetic: cream paper canvas,
   white cards with 1px ink borders (no shadows), mint
   primary action, sky/peach/pink confetti accents.
   Strict BEM. System fonts only.
   ========================================================= */

/* ----- Design tokens ----- */
:root {
  /* Palette */
  --cream: #f5f4f0;
  --white: #ffffff;
  --ink: #000000;
  --charcoal: #222222;
  --slate: #333333;
  --fog: #dddfe2;
  --mint: #99ffcc;
  --mint-soft: #c7ffe6;
  --plum: #160042;
  --aubergine: #26153f;
  --sky: #7bbbff;
  --pink: #ff99cc;
  --peach: #ffcc99;

  /* Fonts — system only, serif for the editorial voice */
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", sans-serif;

  /* Spacing (4px base) */
  --sp-4: 4px;   --sp-8: 8px;   --sp-12: 12px; --sp-16: 16px;
  --sp-20: 20px; --sp-24: 24px; --sp-28: 28px; --sp-32: 32px;
  --sp-40: 40px; --sp-48: 48px; --sp-64: 64px; --sp-80: 80px;
  --sp-100: 100px; --sp-120: 120px;

  /* Radii */
  --r-sm: 8px;
  --r-btn: 12px;
  --r-card: 16px;
  --r-lg: 28px;
  --r-xl: 40px;
  --r-pill: 9999px;

  --border: 1.5px solid var(--ink);
  --container: 1200px;
  --section-gap: clamp(64px, 9vw, 112px);
}

/* ----- Reset-ish ----- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 4px; }

/* ----- Utilities ----- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--mint); color: var(--ink); border: var(--border);
  padding: 10px 18px; border-radius: var(--r-btn); font-weight: 700;
}
.skip-link:focus { left: 12px; top: 12px; }

/* Accent word with hand-drawn mint swash */
.accent { position: relative; white-space: nowrap; }
.accent::before {
  content: ""; position: absolute; z-index: -1;
  left: -0.12em; right: -0.12em; top: 38%; bottom: 2%;
  background: var(--mint);
  border-radius: 46% 54% 52% 48% / 62% 58% 42% 38%;
  transform: rotate(-2deg);
}

/* Confetti dots */
.confetti { position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; }
.confetti--pink { background: var(--pink); }
.confetti--sky { background: var(--sky); }
.confetti--peach { background: var(--peach); }
.confetti--mint { background: var(--mint); }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: 17px; line-height: 1;
  text-decoration: none; border: var(--border); border-radius: var(--r-btn);
  padding: 13px 22px; background: var(--white); color: var(--ink);
  transition: transform .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn__ic { width: 20px; height: 20px; flex: none; }
.btn--primary { background: var(--mint); }
.btn--primary:hover { background: var(--mint-soft); }
.btn--dark { background: var(--plum); color: var(--white); }
.btn--dark:hover { background: var(--aubergine); }
.btn--outline { background: transparent; }
.btn--outline:hover { background: var(--white); }
.btn--block { width: 100%; }
.btn--lg { padding: 16px 28px; font-size: 18px; }
.btn--pill { border-radius: var(--r-pill); padding: 10px 22px; font-size: 16px; }

/* ===================================================
   1) HEADER
   =================================================== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--cream); border-bottom: var(--border);
}
.header__inner { display: flex; align-items: center; gap: var(--sp-16); min-height: 68px; }

.logo {
  font-family: var(--font-display); font-weight: 700; font-size: 26px;
  letter-spacing: -0.03em; text-decoration: none; color: var(--ink);
  margin-right: auto; white-space: nowrap;
}
.logo__accent { color: var(--plum); position: relative; }
.logo__accent::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 1px; height: 5px;
  background: var(--mint); z-index: -1; border-radius: var(--r-pill);
}

.header__nav { display: flex; align-items: center; gap: var(--sp-20); }
.header__links { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.header__link {
  text-decoration: none; color: var(--slate); font-size: 15px; font-weight: 400;
  padding: 8px 10px; border-radius: var(--r-pill); white-space: nowrap;
}
.header__link:hover { background: var(--white); color: var(--ink); }
.header__cta { margin-left: var(--sp-8); }

.burger {
  display: none; width: 46px; height: 46px; border: var(--border);
  border-radius: var(--r-btn); background: var(--white); color: var(--ink);
  align-items: center; justify-content: center; padding: 0;
}
.burger svg { width: 24px; height: 24px; }

@media (max-width: 980px) {
  .burger { display: inline-flex; }
  .header__nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: var(--sp-8);
    background: var(--cream); border-bottom: var(--border);
    padding: var(--sp-16) clamp(16px, 4vw, 32px) var(--sp-24);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
  }
  .header__nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .header__links { flex-direction: column; align-items: stretch; gap: 2px; }
  .header__link { padding: 12px 12px; font-size: 17px; border-radius: var(--r-btn); }
  .header__link:hover { background: var(--white); }
  .header__cta { margin: var(--sp-8) 0 0; }
}

/* ===================================================
   2) HERO — split, subscribe form on the right
   =================================================== */
.hero { position: relative; padding: clamp(40px, 7vw, 80px) 0 var(--section-gap); overflow: hidden; }
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero__left { max-width: 620px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); border: var(--border); border-radius: var(--r-pill);
  padding: 7px 16px; font-size: 14px; font-weight: 700;
}
.hero__badge .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--pink); }
.hero__title {
  margin: var(--sp-20) 0;
  font-size: clamp(40px, 6.6vw, 76px); line-height: 1.02; letter-spacing: -0.03em;
}
.hero__lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--charcoal); max-width: 540px; }

.hero__benefits { margin: var(--sp-28) 0 0; display: grid; gap: var(--sp-16); }
.hero__benefit { display: flex; align-items: flex-start; gap: var(--sp-12); font-size: 17px; }
.hero__benefit-ic {
  flex: none; width: 34px; height: 34px; border: var(--border); border-radius: 10px;
  display: grid; place-items: center; background: var(--white);
}
.hero__benefit:nth-child(1) .hero__benefit-ic { background: var(--mint); }
.hero__benefit:nth-child(2) .hero__benefit-ic { background: var(--sky); }
.hero__benefit:nth-child(3) .hero__benefit-ic { background: var(--peach); }
.hero__benefit-ic svg { width: 20px; height: 20px; }
.hero__benefit b { font-weight: 700; }
.hero__benefit span { display: block; color: var(--slate); font-size: 15px; }

/* subscribe card (the ONE form, in the hero) */
.hero__card {
  position: relative; z-index: 1;
  background: var(--white); border: var(--border); border-radius: var(--r-xl);
  padding: clamp(24px, 3.4vw, 40px);
}
.hero__card-tab {
  position: absolute; top: -18px; left: 32px;
  background: var(--mint); border: var(--border); border-radius: var(--r-pill);
  padding: 6px 18px; font-size: 14px; font-weight: 700;
}
.hero__card-title { font-size: clamp(26px, 3vw, 34px); margin-bottom: 6px; }
.hero__card-sub { color: var(--slate); font-size: 15px; margin-bottom: var(--sp-20); }

/* Form */
.form { display: grid; gap: var(--sp-16); }
.field { display: grid; gap: 6px; }
.field__label { font-size: 14px; font-weight: 700; color: var(--charcoal); }
.field__input {
  font-family: inherit; font-size: 16px; color: var(--ink);
  background: var(--cream); border: var(--border); border-radius: var(--r-btn);
  padding: 13px 15px; width: 100%;
}
.field__input::placeholder { color: #8a8a8a; }
.field__input:focus { outline: 3px solid var(--sky); outline-offset: 1px; background: var(--white); }

.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--slate); line-height: 1.45; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--plum); flex: none; }
.consent a { color: var(--plum); font-weight: 700; }

.form__hint { font-size: 13px; color: #6d6d6d; }
.form__success {
  display: none; align-items: flex-start; gap: 10px;
  background: var(--mint-soft); border: var(--border); border-radius: var(--r-btn);
  padding: 14px 16px; font-size: 14px; font-weight: 600; color: var(--ink);
}
.form__success.is-visible { display: flex; }
.form__success svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }

/* hero decorative dots */
.hero .confetti--a { width: 14px; height: 14px; top: 8%; left: 46%; }
.hero .confetti--b { width: 10px; height: 10px; top: 22%; right: 4%; }
.hero .confetti--c { width: 18px; height: 18px; bottom: 14%; left: 3%; }
.hero .confetti--d { width: 8px;  height: 8px;  bottom: 26%; right: 42%; }
.hero .confetti--e { width: 12px; height: 12px; top: 4%; left: 8%; }

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__card { order: 2; }
  .hero .confetti { display: none; }
}

/* ===================================================
   SECTION scaffolding
   =================================================== */
.section { padding: var(--section-gap) 0; position: relative; }
.section--white { background: var(--white); border-top: var(--border); border-bottom: var(--border); }
.section__head { max-width: 720px; margin: 0 0 var(--sp-48); }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  background: var(--white); border: var(--border); border-radius: var(--r-pill);
  padding: 6px 14px; margin-bottom: var(--sp-16);
}
.eyebrow--sky { background: var(--sky); }
.eyebrow--peach { background: var(--peach); }
.eyebrow--pink { background: var(--pink); }
.eyebrow--mint { background: var(--mint); }
.section__title { font-size: clamp(30px, 4.4vw, 52px); letter-spacing: -0.03em; }
.section__lead { margin-top: var(--sp-16); font-size: 18px; color: var(--charcoal); }

/* ===================================================
   Rating stars (fractional)
   =================================================== */
.rating { display: inline-flex; align-items: center; gap: 8px; }
.stars { position: relative; display: inline-block; line-height: 0; }
.stars__row { display: inline-flex; gap: 2px; }
.stars__base { color: var(--fog); }
.stars__fill {
  position: absolute; top: 0; left: 0; width: var(--pct, 0%);
  overflow: hidden; white-space: nowrap; color: var(--pink);
}
.star { width: 18px; height: 18px; display: block; }
.rating__num { font-weight: 700; font-size: 15px; }

/* ===================================================
   3) GIOCHI — masonry (CSS columns)
   =================================================== */
.games { columns: 3; column-gap: var(--sp-24); }
.game {
  break-inside: avoid; -webkit-column-break-inside: avoid;
  margin: 0 0 var(--sp-24);
  background: var(--white); border: var(--border); border-radius: var(--r-card);
  padding: var(--sp-24);
}
.game__top { display: flex; align-items: center; gap: var(--sp-16); }
.game__icon {
  width: 66px; height: 66px; flex: none; border-radius: 16px; border: var(--border);
  background: var(--cream);
}
.game__head { min-width: 0; }
.game__name { font-size: 24px; letter-spacing: -0.02em; }
.game__dev { font-size: 14px; color: var(--slate); margin-top: 2px; }

.game__tag {
  display: inline-block; margin: var(--sp-16) 0 var(--sp-12);
  font-size: 13px; font-weight: 700; border: var(--border); border-radius: var(--r-pill);
  padding: 4px 12px;
}
.game:nth-child(6n+1) .game__tag { background: var(--mint); }
.game:nth-child(6n+2) .game__tag { background: var(--sky); }
.game:nth-child(6n+3) .game__tag { background: var(--peach); }
.game:nth-child(6n+4) .game__tag { background: var(--pink); }
.game:nth-child(6n+5) .game__tag { background: var(--mint); }
.game:nth-child(6n+6) .game__tag { background: var(--sky); }

.game__rating { margin-bottom: var(--sp-12); }
.game__desc { font-size: 16px; color: var(--charcoal); margin-bottom: var(--sp-20); }
.game__cta { margin-top: 2px; }
.game__cta svg { width: 18px; height: 18px; }

@media (max-width: 900px) { .games { columns: 2; } }
@media (max-width: 600px) { .games { columns: 1; } }

/* ===================================================
   4) COME GUADAGNIAMO — split
   =================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.split__body { max-width: 560px; }
.split__title { font-size: clamp(28px, 4vw, 46px); margin-bottom: var(--sp-20); }
.split__text { color: var(--charcoal); margin-bottom: var(--sp-16); }
.split__text a { color: var(--plum); font-weight: 700; }
.split__actions { margin-top: var(--sp-24); }

.rows { display: grid; gap: var(--sp-16); }
.row {
  display: flex; align-items: flex-start; gap: var(--sp-16);
  background: var(--white); border: var(--border); border-radius: var(--r-card);
  padding: var(--sp-20) var(--sp-24);
}
.row__ic { flex: none; width: 44px; height: 44px; border: var(--border); border-radius: 12px; display: grid; place-items: center; }
.row:nth-child(1) .row__ic { background: var(--mint); }
.row:nth-child(2) .row__ic { background: var(--peach); }
.row:nth-child(3) .row__ic { background: var(--sky); }
.row__ic svg { width: 22px; height: 22px; }
.row b { display: block; font-size: 17px; }
.row span { display: block; font-size: 15px; color: var(--slate); margin-top: 2px; }

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

/* ===================================================
   5) PERCHÉ FIDARSI — trust cards
   =================================================== */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-24); }
.trust__card {
  background: var(--white); border: var(--border); border-radius: var(--r-card);
  padding: var(--sp-28);
}
.trust__ic { width: 52px; height: 52px; border: var(--border); border-radius: 14px; display: grid; place-items: center; margin-bottom: var(--sp-16); }
.trust__card:nth-child(1) .trust__ic { background: var(--mint); }
.trust__card:nth-child(2) .trust__ic { background: var(--sky); }
.trust__card:nth-child(3) .trust__ic { background: var(--peach); }
.trust__card:nth-child(4) .trust__ic { background: var(--pink); }
.trust__ic svg { width: 26px; height: 26px; }
.trust__title { font-size: 21px; margin-bottom: var(--sp-8); }
.trust__text { font-size: 15px; color: var(--charcoal); }

@media (max-width: 900px) { .trust { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .trust { grid-template-columns: 1fr; } }

/* ===================================================
   6) COME INIZIARE — steps
   =================================================== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-24); }
.step {
  position: relative; background: var(--white); border: var(--border); border-radius: var(--r-card);
  padding: var(--sp-32) var(--sp-28) var(--sp-28);
}
.step__num {
  position: absolute; top: -20px; left: 24px;
  width: 48px; height: 48px; border: var(--border); border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 24px;
}
.step:nth-child(1) .step__num { background: var(--mint); }
.step:nth-child(2) .step__num { background: var(--peach); }
.step:nth-child(3) .step__num { background: var(--pink); }
.step__title { font-size: 22px; margin: var(--sp-16) 0 var(--sp-8); }
.step__text { font-size: 15px; color: var(--charcoal); }

@media (max-width: 780px) { .steps { grid-template-columns: 1fr; gap: var(--sp-40); } }

/* ===================================================
   7) DEMO — screenshots gallery
   =================================================== */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-24); }
.shot { margin: 0; background: var(--white); border: var(--border); border-radius: var(--r-card); overflow: hidden; }
.shot img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: var(--border); }
.shot__cap { padding: 14px 18px; font-size: 14px; color: var(--slate); }
.shot__cap b { color: var(--ink); }

@media (max-width: 900px) { .shots { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .shots { grid-template-columns: 1fr; } }

/* ===================================================
   8) RECENSIONI — reviews
   =================================================== */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-24); }
.review { background: var(--white); border: var(--border); border-radius: var(--r-card); padding: var(--sp-28); }
.review__stars { margin-bottom: var(--sp-16); }
.review__text { font-size: 17px; color: var(--charcoal); margin-bottom: var(--sp-24); }
.review__foot { display: flex; align-items: center; gap: var(--sp-12); }
.review__avatar {
  width: 46px; height: 46px; border: var(--border); border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 15px; flex: none;
}
.review:nth-child(1) .review__avatar { background: var(--mint); }
.review:nth-child(2) .review__avatar { background: var(--peach); }
.review:nth-child(3) .review__avatar { background: var(--sky); }
.review__name { font-weight: 700; font-size: 16px; }
.review__meta { font-size: 14px; color: var(--slate); }

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

/* ===================================================
   9) STATISTICHE — numbers
   =================================================== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-24); }
.stat { background: var(--white); border: var(--border); border-radius: var(--r-card); padding: var(--sp-28); text-align: center; }
.stat__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(38px, 5vw, 58px); letter-spacing: -0.03em; line-height: 1; }
.stat:nth-child(1) .stat__num { color: var(--plum); }
.stat:nth-child(2) .stat__num { color: var(--sky); }
.stat:nth-child(3) .stat__num { color: var(--plum); }
.stat:nth-child(4) .stat__num { color: var(--pink); }
.stat__label { margin-top: var(--sp-8); font-size: 15px; color: var(--slate); }

@media (max-width: 820px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .stats { grid-template-columns: 1fr; } }

/* ===================================================
   10) FAQ — accordion
   =================================================== */
.faq { max-width: 800px; margin: 0 auto; display: grid; gap: var(--sp-16); }
.faq__item { background: var(--white); border: var(--border); border-radius: var(--r-card); overflow: hidden; }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-16);
  background: transparent; border: 0; text-align: left;
  padding: var(--sp-20) var(--sp-24); font-size: 18px; font-weight: 700; color: var(--ink);
}
.faq__q .chev { flex: none; width: 30px; height: 30px; border: var(--border); border-radius: 50%; display: grid; place-items: center; transition: transform .2s ease, background .2s ease; }
.faq__q .chev svg { width: 18px; height: 18px; }
.faq__item.is-open .chev { transform: rotate(180deg); background: var(--mint); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.faq__item.is-open .faq__a { max-height: 440px; }
.faq__a-inner { padding: 0 var(--sp-24) var(--sp-24); font-size: 16px; color: var(--charcoal); }
.faq__a-inner a { color: var(--plum); font-weight: 700; }

/* ===================================================
   11) FOOTER
   =================================================== */
.footer { background: var(--white); border-top: var(--border); padding: var(--sp-64) 0 var(--sp-40); }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: var(--sp-40); }
.footer__brand .logo { display: inline-block; margin-bottom: var(--sp-16); }
.footer__tag { font-size: 15px; color: var(--slate); max-width: 320px; }
.footer__col h3 { font-family: var(--font-body); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--slate); margin-bottom: var(--sp-16); }
.footer__col ul { display: grid; gap: 10px; }
.footer__col a { text-decoration: none; color: var(--charcoal); font-size: 15px; }
.footer__col a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--fog); }
.footer__bottom { margin-top: var(--sp-48); padding-top: var(--sp-24); border-top: var(--border); display: grid; gap: var(--sp-12); }
.footer__bottom p { font-size: 13px; color: var(--slate); }
.footer__disclaimer { max-width: 900px; }

@media (max-width: 820px) { .footer__top { grid-template-columns: 1fr 1fr; gap: var(--sp-32); } }
@media (max-width: 480px) { .footer__top { grid-template-columns: 1fr; } }

/* ----- Cookie banner ----- */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 150;
  max-width: 640px; margin: 0 auto;
  background: var(--white); border: var(--border); border-radius: var(--r-lg);
  padding: var(--sp-20) var(--sp-24);
  display: none; align-items: center; gap: var(--sp-20); flex-wrap: wrap;
}
.cookie.is-visible { display: flex; }
.cookie__text { font-size: 14px; color: var(--charcoal); flex: 1 1 260px; }
.cookie__text a { color: var(--plum); font-weight: 700; }
.cookie__actions { display: flex; gap: var(--sp-12); }
.cookie__actions .btn { padding: 10px 18px; font-size: 15px; }

/* ----- Back to top ----- */
.totop {
  position: fixed; right: 18px; bottom: 18px; z-index: 140;
  width: 50px; height: 50px; border: var(--border); border-radius: 50%;
  background: var(--mint); color: var(--ink);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.totop.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.totop svg { width: 24px; height: 24px; }

/* ===================================================
   LEGAL pages
   =================================================== */
.legal { padding: var(--sp-64) 0 var(--section-gap); }
.legal__wrap { max-width: 760px; margin: 0 auto; }
.legal__title { font-size: clamp(34px, 5vw, 56px); margin-bottom: var(--sp-12); }
.legal__updated { color: var(--slate); font-size: 14px; margin-bottom: var(--sp-32); }
.legal p { margin-bottom: var(--sp-16); color: var(--charcoal); }
.legal h2 { font-size: clamp(22px, 3vw, 30px); margin: var(--sp-40) 0 var(--sp-12); }
.legal ul { display: grid; gap: 10px; margin-bottom: var(--sp-16); padding-left: var(--sp-24); list-style: disc; }
.legal li { color: var(--charcoal); }
.legal a { color: var(--plum); font-weight: 700; }
.legal__note {
  margin-top: var(--sp-40); background: var(--peach); border: var(--border); border-radius: var(--r-card);
  padding: var(--sp-20) var(--sp-24); font-size: 15px; color: var(--ink);
}
