/* RacerPlain — styles.css
   Visual DNA: "Vetric" iridescent-prism system.
   White canvas, Midnight Ink text, four-colour prism accent set,
   Noto Serif editorial headlines + Manrope UI, hairline borders, no shadows. */

:root {
  /* Colours */
  --ink: #090a1e;
  --paper: #ffffff;
  --ash: #e0e0e0;
  --carbon: #222222;
  --mist: #c3dae3;
  --blue: #2969ff;
  --pink: #f75cc3;
  --yellow: #ffd363;
  --green: #5ab040;
  --cream: #fffdea;
  --mint: #eaffed;
  --blush: #fff3fb;
  --sky: #e5f5ff;
  --muted: #5b5d6b;
  --prism: linear-gradient(90deg, #f75cc3, #2969ff, #ffd363, #5ab040);

  /* Type */
  --serif: 'Noto Serif', ui-serif, Georgia, Cambria, 'Times New Roman', serif;
  --sans: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Layout */
  --max: 1200px;
  --pad: clamp(20px, 5vw, 48px);
  --gap: clamp(56px, 8vw, 96px);
  --r: 7px;
  --r-lg: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0;
}
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.section { padding-block: var(--gap); }
.section--tight { padding-block: clamp(40px, 6vw, 64px); }

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
  display: inline-block;
}
.section__head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 52px); }
.section__title {
  font-size: clamp(30px, 5vw, 49px);
}
.section__lead {
  margin-top: 18px;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--muted);
  max-width: 60ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 12px 24px;
  border-radius: var(--r);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: #16183a; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ash); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--block { width: 100%; justify-content: center; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255,255,255,0.86);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--ash);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.logo {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.logo__accent {
  background: var(--prism);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav { display: flex; align-items: center; gap: 28px; }
.nav__list { display: flex; align-items: center; gap: 26px; }
.nav__link {
  font-size: 15px;
  font-weight: 500;
  color: var(--carbon);
  text-decoration: none;
  transition: color .15s ease;
}
.nav__link:hover { color: var(--blue); }
.nav__cta { margin-left: 4px; }

.burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--ash);
  border-radius: var(--r);
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.burger svg { width: 22px; height: 22px; }
.burger__close { display: none; }
.burger.is-open .burger__open { display: none; }
.burger.is-open .burger__close { display: block; }

@media (max-width: 900px) {
  .burger { display: inline-flex; }
  .nav {
    position: fixed;
    inset: 70px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--ash);
    padding: 12px var(--pad) 26px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { padding: 14px 4px; border-bottom: 1px solid var(--ash); }
  .nav__cta { margin: 16px 0 0; }
  .nav__cta .btn { width: 100%; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(9,10,30,.62), rgba(9,10,30,.78)),
    radial-gradient(120% 90% at 12% 8%, rgba(41,105,255,.35), transparent 55%),
    radial-gradient(90% 80% at 92% 100%, rgba(247,92,195,.30), transparent 55%);
}
.hero__inner {
  padding-block: clamp(72px, 13vw, 132px);
  max-width: 760px;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 7px 14px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  margin-bottom: 26px;
}
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.hero__title {
  font-size: clamp(38px, 7vw, 77px);
  line-height: 1.03;
  letter-spacing: -0.04em;
}
.hero__title em { font-style: normal; }
.hero__title .grad {
  background: var(--prism);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  margin-top: 24px;
  font-size: clamp(17px, 2.1vw, 21px);
  line-height: 1.5;
  color: rgba(255,255,255,.86);
  max-width: 56ch;
}
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__meta {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 30px;
  align-items: center;
}
.hero__stat { display: flex; flex-direction: column; }
.hero__stat b { font-family: var(--serif); font-size: 26px; font-weight: 500; }
.hero__stat span { font-size: 13px; color: rgba(255,255,255,.72); letter-spacing: 0.02em; }

/* ---------- Rating stars ---------- */
.rating { display: inline-flex; align-items: center; gap: 8px; }
.rating__track { position: relative; width: 108px; height: 20px; flex: none; }
.rating__track svg { width: 108px; height: 20px; display: block; }
.rating__base { color: #d5d7e0; }
.rating__fill {
  position: absolute; inset: 0; overflow: hidden; white-space: nowrap;
  color: var(--yellow);
}
.rating__fill svg { color: var(--yellow); }
.rating__num { font-size: 14px; font-weight: 700; color: var(--ink); }
.hero .rating__num { color: #fff; }

/* ---------- Stats band ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--ash);
  border: 1px solid var(--ash);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.stats__item { background: #fff; padding: 30px 24px; text-align: center; }
.stats__num {
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 500;
  letter-spacing: -0.03em;
}
.stats__num .grad { background: var(--prism); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats__label { margin-top: 8px; font-size: 14px; color: var(--muted); }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Trust / feature cards ---------- */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .grid-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-cards { grid-template-columns: 1fr; } }

.feature {
  border: 1px solid var(--ash);
  border-radius: var(--r-lg);
  padding: 28px;
  background: #fff;
}
.feature__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: var(--r);
  border: 1px solid var(--ash);
  margin-bottom: 18px;
}
.feature__icon svg { width: 22px; height: 22px; }
.feature--blue .feature__icon { background: var(--sky); border-color: #bfe0ff; color: var(--blue); }
.feature--pink .feature__icon { background: var(--blush); border-color: #f7cbe9; color: var(--pink); }
.feature--green .feature__icon { background: var(--mint); border-color: #bfe9c4; color: var(--green); }
.feature--yellow .feature__icon { background: var(--cream); border-color: #f0e0a8; color: #b98900; }
.feature__title { font-size: 22px; margin-bottom: 8px; }
.feature__text { font-size: 15px; color: var(--muted); }

/* ---------- Top game (protagonista) ---------- */
.star {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
@media (max-width: 940px) { .star { grid-template-columns: 1fr; } }
.star__media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--ash);
}
.star__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; }
.star__head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.star__icon { width: 66px; height: 66px; border-radius: 15px; border: 1px solid var(--ash); }
.star__badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid #f0e0a8;
  padding: 6px 12px; border-radius: 999px;
  margin-bottom: 16px;
}
.star__badge svg { width: 14px; height: 14px; color: #b98900; }
.star__title { font-size: clamp(28px, 4vw, 42px); }
.star__dev { font-size: 14px; color: var(--muted); margin-top: 4px; }
.star__text { margin-top: 18px; font-size: 16px; color: #33353f; }
.star__text + .star__text { margin-top: 14px; }
.star__facts {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--ash);
  border: 1px solid var(--ash);
  border-radius: var(--r);
  overflow: hidden;
}
.star__fact { background: #fff; padding: 14px 16px; }
.star__fact dt { font-size: 12px; letter-spacing: 0.02em; color: var(--muted); }
.star__fact dd { margin: 3px 0 0; font-weight: 600; font-size: 15px; }
.star__actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.star__gallery {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 780px) { .star__gallery { grid-template-columns: 1fr 1fr; } }
.star__shot {
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--ash);
}
.star__shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* ---------- Editorial byline ---------- */
.byline { display: flex; align-items: center; gap: 12px; margin: 22px 0 4px; }
.byline .avatar { width: 40px; height: 40px; font-size: 14px; }
.byline__meta { font-size: 14px; color: var(--muted); line-height: 1.35; }
.byline__meta b { color: var(--ink); font-weight: 600; }
.byline__meta span { display: block; }

/* ---------- Game catalogue — masonry (column flow, uneven tiles) ---------- */
.games { column-count: 3; column-gap: 20px; }
@media (max-width: 1040px) { .games { column-count: 2; } }
@media (max-width: 620px) { .games { column-count: 1; } }

.card {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  width: 100%;
  margin: 0 0 20px;
  border: 1px solid var(--ash);
  border-radius: var(--r-lg);
  background: #fff;
  overflow: hidden;
  transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: var(--mist); transform: translateY(-2px); }
.card__head { display: flex; gap: 14px; align-items: center; padding: 22px 22px 0; }
.card__icon { width: 56px; height: 56px; border-radius: 13px; border: 1px solid var(--ash); flex: none; }
.card__name { font-size: 20px; font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
.card__dev { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.card__rating { padding: 15px 22px 0; }
.card__text { padding: 12px 22px 4px; font-size: 14.5px; color: #40424c; }
.card__note { padding: 10px 22px 0; font-size: 13.5px; color: var(--muted); }
.card__note b { color: var(--ink); font-weight: 600; }
.card__chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 22px 2px; }
.chip { font-size: 12px; font-weight: 600; color: var(--carbon); border: 1px solid var(--ash); border-radius: 999px; padding: 5px 11px; background: #fff; }
.chip--accent { color: var(--blue); border-color: #bfe0ff; background: var(--sky); }
.card__foot { padding: 16px 22px 22px; }

/* ---------- Confronto rapido (comparison table) ---------- */
.compare__wrap { border: 1px solid var(--ash); border-radius: var(--r-lg); overflow-x: auto; }
.compare { width: 100%; min-width: 660px; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { text-align: left; padding: 16px 22px; border-bottom: 1px solid var(--ash); vertical-align: middle; }
.compare thead th { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); background: #fbfbfd; }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody tr:hover { background: #fafbff; }
.compare__game { font-weight: 600; white-space: nowrap; }
.compare__game span { display: block; font-size: 12.5px; color: var(--muted); font-weight: 400; }
.compare__vote { font-weight: 700; color: var(--ink); white-space: nowrap; }
.compare__vote em { font-style: normal; color: var(--green); }

/* ---------- Glossario ---------- */
.glossary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--ash); border: 1px solid var(--ash); border-radius: var(--r-lg); overflow: hidden; }
@media (max-width: 700px) { .glossary { grid-template-columns: 1fr; } }
.glossary__item { background: #fff; padding: 26px 28px; }
.glossary__item--wide { grid-column: 1 / -1; background: var(--sky); }
.glossary__term { font-family: var(--serif); font-size: 21px; font-weight: 500; letter-spacing: -0.02em; }
.glossary__term small { margin-left: 9px; font-family: var(--sans); font-size: 11px; font-weight: 700; color: var(--blue); letter-spacing: 0.06em; text-transform: uppercase; }
.glossary__def { margin-top: 9px; font-size: 15px; color: #40424c; }

/* ---------- Review meta ---------- */
.review__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.review__date { font-size: 12.5px; color: var(--muted); white-space: nowrap; }

/* ---------- Monetisation ---------- */
.money {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
@media (max-width: 900px) { .money { grid-template-columns: 1fr; } }
.money__list { margin-top: 22px; display: grid; gap: 14px; }
.money__row { display: flex; gap: 14px; align-items: flex-start; }
.money__row svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--blue); }
.money__row b { font-weight: 600; }
.money__row p { font-size: 15px; color: var(--muted); margin-top: 2px; }
.money__panel {
  border-radius: var(--r-lg);
  padding: 2px;
  background: var(--prism);
}
.money__inner {
  background: #fff;
  border-radius: 18px;
  padding: clamp(24px, 3vw, 34px);
}
.money__inner h3 { font-size: 24px; margin-bottom: 12px; }
.money__inner p { font-size: 15px; color: #40424c; }
.money__tag {
  display: inline-block; margin-bottom: 16px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blue);
}
.money__note { margin-top: 18px; font-size: 13px; color: var(--muted); }
.money__note a { color: var(--blue); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step { border: 1px solid var(--ash); border-radius: var(--r-lg); padding: 28px; position: relative; }
.step__n {
  font-family: var(--serif); font-size: 40px; font-weight: 500;
  background: var(--prism); -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1;
}
.step__title { font-size: 20px; margin: 14px 0 8px; }
.step__text { font-size: 15px; color: var(--muted); }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .reviews { grid-template-columns: 1fr; } }
.review { border: 1px solid var(--ash); border-radius: var(--r-lg); padding: 28px; background: #fff; }
.review__quote { font-size: 16px; color: #2c2e38; margin-top: 16px; }
.review__author { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; font-size: 15px; color: #fff;
}
.avatar--a { background: var(--blue); }
.avatar--b { background: var(--pink); }
.avatar--c { background: var(--green); }
.review__name { font-weight: 600; font-size: 15px; }
.review__role { font-size: 13px; color: var(--muted); }

/* ---------- Subscribe form ---------- */
.subscribe {
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 900px) { .subscribe { grid-template-columns: 1fr; } }
.subscribe__intro { padding: clamp(32px, 4vw, 52px); position: relative; }
.subscribe__intro::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(90% 70% at 100% 0, rgba(41,105,255,.4), transparent 60%),
              radial-gradient(80% 70% at 0 100%, rgba(247,92,195,.28), transparent 60%);
  pointer-events: none;
}
.subscribe__intro > * { position: relative; z-index: 1; }
.subscribe__title { font-size: clamp(26px, 3.4vw, 42px); color: #fff; }
.subscribe__text { margin-top: 16px; color: rgba(255,255,255,.82); font-size: 16px; }
.subscribe__list { margin-top: 22px; display: grid; gap: 10px; }
.subscribe__list li { display: flex; gap: 10px; align-items: center; font-size: 14.5px; color: rgba(255,255,255,.9); }
.subscribe__list svg { width: 18px; height: 18px; color: var(--green); flex: none; }
.subscribe__form { background: #fff; color: var(--ink); padding: clamp(32px, 4vw, 52px); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; }
.field input {
  width: 100%; font-family: var(--sans); font-size: 15px;
  padding: 12px 14px; border: 1px solid var(--ash); border-radius: var(--r);
  background: #fff; color: var(--ink);
}
.field input:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 4px 0 20px; }
.consent input { margin-top: 3px; width: 17px; height: 17px; flex: none; accent-color: var(--blue); }
.consent a { color: var(--blue); }
.form__success {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid #bfe9c4;
  background: var(--mint);
  border-radius: var(--r);
  font-size: 14px;
  color: #2f6d2b;
}
.form__success.is-visible { display: block; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--ash); }
.faq__q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  font-family: var(--serif); font-size: clamp(18px, 2.4vw, 23px); font-weight: 500;
  color: var(--ink); padding: 24px 44px 24px 0; position: relative;
}
.faq__q:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.faq__q svg { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; transition: transform .2s ease; color: var(--blue); }
.faq__item.is-open .faq__q svg { transform: translateY(-50%) rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq__a p { padding: 0 0 24px; color: var(--muted); font-size: 16px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--ash); padding-block: 56px 30px; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 32px;
}
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand .logo { font-size: 22px; }
.footer__about { margin-top: 14px; font-size: 14px; color: var(--muted); max-width: 34ch; }
.footer__h { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer__link { display: block; font-size: 14.5px; color: var(--carbon); text-decoration: none; padding: 5px 0; }
.footer__link:hover { color: var(--blue); }
.footer__mail { font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none; }
.footer__mail:hover { color: var(--blue); }
.footer__bar {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--ash);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted);
}

/* ---------- Back to top ---------- */
.totop {
  position: fixed; right: 22px; bottom: 22px; z-index: 50;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--ash); background: #fff; color: var(--ink);
  display: grid; place-items: center; cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.totop.is-visible { opacity: 1; visibility: visible; transform: none; }
.totop svg { width: 20px; height: 20px; }

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 70;
  max-width: 620px; margin-inline: auto;
  background: #fff; border: 1px solid var(--ash); border-radius: var(--r-lg);
  padding: 20px 22px;
  display: none;
}
.cookie.is-visible { display: block; }
.cookie__text { font-size: 14px; color: var(--muted); }
.cookie__text a { color: var(--blue); }
.cookie__actions { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Legal pages ---------- */
.legal { padding-block: clamp(48px, 7vw, 80px); }
.legal__head { max-width: 760px; margin-bottom: 40px; }
.legal__title { font-size: clamp(32px, 5vw, 49px); }
.legal__updated { margin-top: 14px; font-size: 14px; color: var(--muted); }
.legal__body { max-width: 760px; }
.legal__body h2 { font-size: clamp(24px, 3vw, 30px); margin: 40px 0 12px; }
.legal__body h3 { font-family: var(--sans); font-size: 17px; font-weight: 700; margin: 24px 0 8px; }
.legal__body p { color: #35373f; margin-bottom: 14px; font-size: 16px; }
.legal__body ul { margin: 0 0 16px; padding-left: 4px; }
.legal__body li { position: relative; padding-left: 22px; margin-bottom: 9px; color: #35373f; font-size: 16px; }
.legal__body li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 8px; height: 8px; border-radius: 2px; background: var(--blue); }
.legal__body a { color: var(--blue); }

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