/* ==========================================================================
   FAVARON CONSULENZE — design system
   Mobile-first. Bianco dominante, arancio #FF5C00 solo su CTA, blu #1F5BFF
   su titoli/accenti. Font: Sora (display) + Inter (corpo).
   ========================================================================== */

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

:root {
  --white:      #ffffff;
  --bg-soft:    #F7F8FA;
  --bg-grey:    #F0F1F4;
  --ink:        #0B0D12;
  --ink-soft:   #565C68;
  --ink-faint:  #8A8F99;
  --line:       #E7E9EE;

  --orange:     #FF5C00;
  --orange-dk:  #DB4E00;
  --orange-10:  rgba(255,92,0,.10);
  --orange-20:  rgba(255,92,0,.20);

  --blue:       #1F5BFF;
  --blue-dk:    #1642BF;
  --blue-10:    rgba(31,91,255,.08);

  --gold:       #FFB800;
  --green:      #16A34A;

  --radius-sm:  10px;
  --radius:     18px;
  --radius-lg:  28px;

  --shadow:     0 4px 24px rgba(11,13,18,.06);
  --shadow-lg:  0 16px 48px rgba(11,13,18,.12);

  --wa-green:   #25D366;

  --font-display: 'Sora', sans-serif;
  --font-body:    'Inter', sans-serif;
}

html { scroll-behavior: smooth; overflow-x: hidden; }
body { overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
section[id], div[id="form"] { scroll-margin-top: 76px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 768px) { .container { padding: 0 32px; } }

.section { padding: 64px 0; }
.section-soft { background: var(--bg-soft); }
.section-grey { background: var(--bg-grey); }
@media (min-width: 768px) { .section { padding: 96px 0; } }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
@media (min-width: 768px) { .section-head { margin-bottom: 64px; } }

.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue);
  margin-bottom: 14px;
}

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; color: var(--ink); }

.h-xl {
  font-size: clamp(2.1rem, 7vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -.02em;
}
.h-lg {
  font-size: clamp(1.7rem, 4.6vw, 2.6rem);
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -.015em;
  margin-bottom: 16px;
}
.h-md { font-size: clamp(1.15rem, 2.6vw, 1.5rem); font-weight: 700; }

.lead {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 560px;
}
.center-mx { margin-left: auto; margin-right: auto; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px; border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 700;
  cursor: pointer; text-decoration: none; border: 2px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dk); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(255,92,0,.35); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
.btn-outline-light:hover { border-color: var(--white); background: rgba(255,255,255,.08); transform: translateY(-2px); }
.btn-wa { background: var(--wa-green); color: var(--white); }
.btn-wa:hover { background: #1EBE59; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(37,211,102,.35); }
.btn-block { width: 100%; }
.btn-lg { padding: 18px 34px; font-size: 1.05rem; }

@media (prefers-reduced-motion: reduce) {
  .btn:hover { transform: none; }
}

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 300;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 8px;
}
.logo {
  font-family: var(--font-display); font-weight: 800;
  font-size: .82rem; letter-spacing: -.01em;
  text-decoration: none; color: var(--ink);
  flex-shrink: 1; min-width: 0; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.logo span { color: var(--orange); }
.main-nav {
  display: none; align-items: center; gap: 32px;
}
.main-nav a {
  font-size: .92rem; font-weight: 600; text-decoration: none;
  color: var(--ink-soft); transition: color .18s;
}
.main-nav a:hover { color: var(--blue); }
.header-cta {
  padding: 9px 14px; font-size: .8rem; border-radius: 8px;
  flex-shrink: 0; white-space: nowrap;
}
.header-cta .full { display: none; }
.header-cta .short { display: inline; }

@media (min-width: 420px) {
  .logo { font-size: .95rem; }
  .header-cta { padding: 10px 18px; font-size: .88rem; }
  .header-cta .full { display: inline; }
  .header-cta .short { display: none; }
}
@media (min-width: 900px) {
  .main-nav { display: flex; }
  .logo { font-size: 1rem; }
}

/* ── Hero ── */
.hero {
  padding: 48px 0 56px;
  min-height: 92vh;
  display: flex; align-items: center;
}
@media (min-width: 900px) {
  .hero { min-height: 92vh; padding: 60px 0; }
}
.hero-inner { width: 100%; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue-10); color: var(--blue);
  font-size: .8rem; font-weight: 700;
  padding: 7px 16px; border-radius: 100px; margin-bottom: 24px;
}
.hero-eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 3px rgba(22,163,74,.2);
}

.hero h1 { margin-bottom: 22px; max-width: 15ch; }
.hero h1 .hl {
  position: relative; white-space: nowrap;
  background-image: linear-gradient(var(--orange-20), var(--orange-20));
  background-repeat: no-repeat;
  background-size: 0% 100%;
  background-position: 0 0;
  transition: background-size 1s cubic-bezier(.4,0,.2,1);
  padding: 0 .06em;
  border-radius: 4px;
}
.hero h1 .hl.hl-active { background-size: 100% 100% !important; }
@media (prefers-reduced-motion: reduce) {
  .hero h1 .hl { background-size: 100% 100% !important; transition: none; }
}

.hero .lead { margin-bottom: 36px; }

.hero-ctas { display: flex; flex-direction: column; gap: 14px; margin-bottom: 26px; }
.hero-ctas .btn { width: 100%; }
@media (min-width: 640px) {
  .hero-ctas { flex-direction: row; }
  .hero-ctas .btn { width: auto; }
}

.trust-line {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  font-size: .86rem; font-weight: 600; color: var(--ink-soft);
}
.trust-line span { color: var(--green); font-weight: 700; }

/* ── Stats bar ── */
.stats-bar { background: var(--blue); color: var(--white); }
.stats-grid {
  display: grid; grid-template-columns: 1fr; gap: 32px;
  text-align: center;
}
@media (min-width: 700px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}
.stat-num {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2rem, 5vw, 2.6rem);
  letter-spacing: -.02em; margin-bottom: 6px;
}
.stat-label { font-size: .92rem; color: rgba(255,255,255,.82); font-weight: 500; line-height: 1.5; max-width: 22ch; margin: 0 auto; }

/* ── Reveal on scroll ── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Servizi ── */
.services-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 900px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.svc-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px 28px;
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.svc-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--blue-10);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.svc-card h3 { font-size: 1.25rem; margin-bottom: 12px; color: var(--ink); }
.svc-card p { font-size: .95rem; color: var(--ink-soft); line-height: 1.7; flex: 1; }
.svc-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--orange); color: var(--white);
  font-size: .74rem; font-weight: 700;
  padding: 6px 12px; border-radius: 100px;
  margin-bottom: 16px; align-self: flex-start;
}
.svc-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--orange); font-weight: 700; font-size: .92rem;
  text-decoration: none; margin-top: 20px;
}
.svc-link:hover { text-decoration: underline; }

/* ── Come funziona ── */
.steps { display: flex; flex-direction: column; gap: 0; }
@media (min-width: 900px) {
  .steps { flex-direction: row; align-items: flex-start; position: relative; }
  .steps::before {
    content: ''; position: absolute; top: 34px; left: 16.5%; right: 16.5%;
    height: 2px; background: var(--line); z-index: 0;
  }
}
.step {
  flex: 1; text-align: left; position: relative; z-index: 1;
  padding: 0 0 32px; display: flex; gap: 20px; align-items: flex-start;
}
@media (min-width: 900px) {
  .step { text-align: center; flex-direction: column; align-items: center; padding: 0 20px; }
}
.step-num {
  width: 68px; height: 68px; border-radius: 50%; flex-shrink: 0;
  background: var(--white); border: 2px solid var(--blue); color: var(--blue);
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
@media (min-width: 900px) { .step-num { margin-bottom: 20px; } }
.step p { font-size: 1rem; color: var(--ink-soft); line-height: 1.65; padding-top: 10px; }
@media (min-width: 900px) { .step p { padding-top: 0; } }
.step p strong { color: var(--ink); font-weight: 700; }

/* ── Recensioni ── */
.reviews-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 900px) { .reviews-grid { grid-template-columns: repeat(3, 1fr); } }
.review-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 26px;
}
.stars { display: flex; gap: 3px; margin-bottom: 16px; }
.stars svg { fill: var(--gold); }
.review-quote {
  font-size: .95rem; color: var(--ink); line-height: 1.7;
  margin-bottom: 20px; min-height: 4.5em;
}
.review-quote .placeholder-tag {
  display: inline-block; background: var(--orange-10); color: var(--orange-dk);
  font-weight: 700; font-size: .82rem; padding: 2px 8px; border-radius: 6px;
}
.review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue-10); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: .95rem;
  flex-shrink: 0;
}
.review-name { font-size: .92rem; font-weight: 700; color: var(--ink); }
.review-city { font-size: .82rem; color: var(--ink-faint); }
.reviews-cta { text-align: center; margin-top: 36px; }
.reviews-cta a {
  color: var(--blue); font-weight: 700; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px; font-size: .95rem;
}
.reviews-cta a:hover { text-decoration: underline; }

/* ── Convenzioni ── */
.unions-box {
  display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center;
}
@media (min-width: 900px) { .unions-box { grid-template-columns: 1fr auto; } }
.unions-badges { display: flex; gap: 14px; flex-wrap: wrap; }
.union-badge {
  display: flex; align-items: center; gap: 10px;
  background: var(--white); border: 1px solid var(--line);
  padding: 12px 18px; border-radius: var(--radius-sm);
  font-size: .86rem; font-weight: 700; color: var(--ink);
  box-shadow: var(--shadow);
}
.union-badge svg { color: var(--blue); flex-shrink: 0; }

/* ── Referral banner ── */
.referral-banner {
  background: var(--orange); color: var(--white);
  padding: 20px 0;
}
.referral-inner {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; text-align: center; font-size: .95rem; font-weight: 600;
}
@media (min-width: 640px) { .referral-inner { flex-direction: row; gap: 14px; } }
.referral-inner a {
  color: var(--white); font-weight: 800; text-decoration: underline;
  text-underline-offset: 3px; white-space: nowrap; background: none; border: none;
  cursor: pointer; font-size: inherit; font-family: inherit;
}

/* ── FAQ ── */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; background: none; border: none; text-align: left; cursor: pointer;
  padding: 22px 4px; font-family: var(--font-display); font-weight: 700;
  font-size: 1.02rem; color: var(--ink);
}
.faq-q .chev { flex-shrink: 0; transition: transform .25s ease; color: var(--orange); }
.faq-item[data-open="true"] .faq-q .chev { transform: rotate(180deg); }
.faq-a {
  overflow: hidden; max-height: 0; transition: max-height .3s ease;
}
.faq-a p { padding: 0 4px 22px; color: var(--ink-soft); font-size: .95rem; line-height: 1.7; max-width: 62ch; }
@media (prefers-reduced-motion: reduce) {
  .faq-a { transition: none; }
}

/* ── CTA finale + form ── */
.final-cta-grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: start; }
@media (min-width: 1000px) { .final-cta-grid { grid-template-columns: .85fr 1.15fr; gap: 64px; } }
.final-cta-copy h2 { margin-bottom: 18px; }
.final-cta-copy .lead { margin-bottom: 32px; }
.final-cta-alt {
  border-top: 1px solid var(--line); padding-top: 24px; margin-top: 8px;
}
.final-cta-alt p { font-size: .88rem; color: var(--ink-faint); margin-bottom: 14px; }

.form-card {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 24px;
}
@media (min-width: 640px) { .form-card { padding: 40px; } }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: .85rem; font-weight: 700; color: var(--ink); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 14px 16px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-size: .95rem; font-family: inherit; color: var(--ink);
  background: var(--white);
  transition: border-color .18s, box-shadow .18s;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--orange);
  box-shadow: 0 0 0 4px var(--orange-10);
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231F5BFF' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 42px;
}
.form-group textarea { resize: vertical; min-height: 100px; }
.honeypot-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.form-privacy {
  grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 10px;
  font-size: .82rem; color: var(--ink-soft); line-height: 1.5;
}
.form-privacy input[type="checkbox"] {
  width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px;
  accent-color: var(--orange);
}
.form-privacy a { color: var(--orange); text-decoration: underline; }
.form-submit { grid-column: 1 / -1; margin-top: 6px; }
.form-note { grid-column: 1 / -1; font-size: .78rem; color: var(--ink-faint); text-align: center; margin-top: 4px; }

/* ── Footer ── */
.site-footer { background: var(--ink); color: rgba(255,255,255,.6); padding: 52px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; margin-bottom: 40px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; } }
.footer-brand .logo { color: var(--white); margin-bottom: 12px; display: inline-block; }
.footer-brand p { font-size: .86rem; line-height: 1.75; max-width: 320px; }
.footer-col h4 {
  font-family: var(--font-display); font-size: .78rem; font-weight: 700; color: var(--white);
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 10px; font-size: .87rem; }
.footer-col a { color: rgba(255,255,255,.62); text-decoration: none; transition: color .18s; }
.footer-col a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: .8rem;
}
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal a, .footer-legal button {
  color: rgba(255,255,255,.5); text-decoration: none; transition: color .18s;
  background: none; border: none; font-size: inherit; font-family: inherit; cursor: pointer; padding: 0;
}
.footer-legal a:hover, .footer-legal button:hover { color: var(--white); }

/* ── WhatsApp float ── */
.wa-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 250;
  width: 60px; height: 60px; background: var(--wa-green); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.4);
  text-decoration: none;
  animation: wa-pulse 10s ease-in-out infinite;
}
.wa-float:hover { transform: scale(1.08); }
@keyframes wa-pulse {
  0%   { box-shadow: 0 8px 24px rgba(37,211,102,.4), 0 0 0 0 rgba(37,211,102,.5); }
  4%   { box-shadow: 0 8px 24px rgba(37,211,102,.4), 0 0 0 14px rgba(37,211,102,0); }
  8%   { box-shadow: 0 8px 24px rgba(37,211,102,.4), 0 0 0 0 rgba(37,211,102,0); }
  100% { box-shadow: 0 8px 24px rgba(37,211,102,.4), 0 0 0 0 rgba(37,211,102,0); }
}
@media (prefers-reduced-motion: reduce) {
  .wa-float { animation: none; }
}

/* ── Cookie banner ── */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: var(--ink); color: rgba(255,255,255,.85);
  padding: 22px 20px; box-shadow: 0 -8px 32px rgba(0,0,0,.25);
  display: flex; flex-direction: column; gap: 16px;
}
#cookie-banner.hidden { display: none; }
.cookie-text { font-size: .87rem; line-height: 1.6; max-width: 760px; }
.cookie-text a { color: var(--orange); text-decoration: underline; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions button {
  font-family: var(--font-display); font-size: .86rem; font-weight: 700;
  padding: 11px 18px; border-radius: 8px; cursor: pointer; border: none;
  transition: background .18s;
}
.cookie-btn-all { background: var(--orange); color: var(--white); }
.cookie-btn-all:hover { background: var(--orange-dk); }
.cookie-btn-necessary { background: rgba(255,255,255,.12); color: var(--white); }
.cookie-btn-necessary:hover { background: rgba(255,255,255,.2); }
.cookie-btn-custom { background: transparent; color: rgba(255,255,255,.75); border: 1.5px solid rgba(255,255,255,.3) !important; }
.cookie-btn-custom:hover { border-color: rgba(255,255,255,.6) !important; color: var(--white); }
@media (min-width: 760px) {
  #cookie-banner { flex-direction: row; align-items: center; justify-content: space-between; padding: 20px 32px; }
}

/* ── Cookie preferences modal ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(11,13,18,.65); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.hidden { display: none; }
.modal-box {
  background: var(--white); border-radius: var(--radius);
  max-width: 560px; width: 100%; max-height: 88vh; overflow-y: auto;
  padding: 32px; position: relative; box-shadow: var(--shadow-lg);
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--bg-soft); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: var(--ink-soft);
}
.modal-close:hover { background: var(--bg-grey); }
.modal-box h2 { font-size: 1.3rem; margin-bottom: 20px; padding-right: 30px; }
.pref-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.pref-row:last-of-type { border-bottom: none; }
.pref-row-text h4 { font-family: var(--font-body); font-size: .95rem; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.pref-row-text p { font-size: .82rem; color: var(--ink-soft); line-height: 1.5; }
.switch { position: relative; display: inline-block; width: 44px; height: 26px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch-track {
  position: absolute; inset: 0; background: var(--line); border-radius: 100px; cursor: pointer; transition: background .2s;
}
.switch-track::before {
  content: ''; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px;
  background: var(--white); border-radius: 50%; transition: transform .2s; box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.switch input:checked + .switch-track { background: var(--orange); }
.switch input:checked + .switch-track::before { transform: translateX(18px); }
.switch input:disabled + .switch-track { background: var(--ink-faint); cursor: not-allowed; opacity: .5; }
.modal-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.modal-actions .btn { flex: 1; }

/* ── Legal pages ── */
.legal-page { padding: 48px 0 80px; }
.legal-page h1 { font-size: clamp(1.7rem, 5vw, 2.4rem); color: var(--blue); margin-bottom: 8px; }
.legal-updated { font-size: .85rem; color: var(--ink-faint); margin-bottom: 40px; }
.legal-body { max-width: 760px; }
.legal-body h2 { font-size: 1.15rem; color: var(--ink); margin: 32px 0 12px; }
.legal-body p, .legal-body li { font-size: .95rem; color: var(--ink-soft); line-height: 1.75; margin-bottom: 10px; }
.legal-body ul { padding-left: 22px; margin-bottom: 12px; }
.legal-body ul li { list-style: disc; }
.legal-body a { color: var(--orange); }
.legal-body strong { color: var(--ink); }
.legal-body table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .88rem; }
.legal-body th, .legal-body td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.legal-body th { background: var(--bg-soft); color: var(--ink); font-weight: 700; }
.legal-back { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); text-decoration: none; font-weight: 600; font-size: .9rem; margin-bottom: 28px; }
.legal-back:hover { text-decoration: underline; }

/* ── Visually hidden ── */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
