/* Meridio Advisors - folha de estilos
   Conceito: 5 linhas azuis "costuram" a página. A cada secção, uma linha sai para o canto
   inferior direito e desenha parte do monograma. Fundos alternam branco, gelo, tinta e azul.
   Tokens: primitivos (manual de marca) > semânticos > componentes. */

/* 1. Primitivos (Manual de Identidade v1.0, p.11) */
:root {
  --blue-500: #3657FF;      /* Azul eléctrico */
  --blue-600: #2643E6;
  --blue-300: #8197FF;      /* azul clarificado para linhas sobre tinta */
  --ink-900: #171B2D;       /* Tinta */
  --ink-800: #1F2440;
  --ink-700: #2B3152;
  --ink-500: #4A4F63;
  --ice-50: #F4F5FA;        /* Branco-gelo */
  --ice-200: #DADDEA;
  --ice-400: #A9AEC4;
  --white: #FFFFFF;
  --red-600: #B42318;

  --font: "Segoe UI", "Segoe UI Variable Display", Arial, sans-serif; /* manual p.13 */

  --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px;
  --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 160px;

  --radius: 2px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --lane: 30px;             /* faixa lateral das linhas */
  --header-h: 72px;
}

/* 2. Semânticos (página clara com blocos de cor deliberados) */
:root {
  --bg: var(--white);
  --text: var(--ink-900);
  --text-muted: var(--ink-500);
  --border: var(--ice-200);
  --accent: var(--blue-500);
  --accent-hover: var(--blue-600);
  --on-accent: var(--white);
  --focus: var(--blue-500);
  --error: var(--red-600);
  color-scheme: light;
}

/* 3. Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; position: relative; overflow-x: clip;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.1; font-weight: 700; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: var(--radius); }
svg { display: block; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.band-content { position: relative; z-index: 1; }   /* conteúdo acima das linhas */
.lane-left, .lane-right { padding-left: calc(var(--gutter) + var(--lane)); }
@media (min-width: 768px) {
  :root { --lane: 110px; }
  .lane-left { padding-left: calc(var(--gutter) + var(--lane)); padding-right: var(--gutter); }
  .lane-right { padding-left: var(--gutter); padding-right: calc(var(--gutter) + var(--lane)); }
}
@media (min-width: 1024px) { :root { --lane: 170px; } }
@media (min-width: 1280px) { :root { --lane: 220px; } }

.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 12px 16px; }
.skip:focus { top: 12px; }

/* 4. Bandas: o fundo fica num pseudo-elemento por baixo das linhas */
.band { position: relative; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--band-bg, var(--white)); }
.band[data-bg="white"] { --band-bg: var(--white); }
.band[data-bg="ice"]   { --band-bg: var(--ice-50); }
.band[data-bg="ink"]   { --band-bg: var(--ink-900); --text: var(--ice-50); --text-muted: var(--ice-400); --border: var(--ink-700); --focus: var(--blue-300); color: var(--text); }
.band[data-bg="blue"]  { --band-bg: var(--blue-500); --text: var(--white); --text-muted: #E3E8FF; --border: rgba(255,255,255,.35); --focus: var(--white); color: var(--text); }
.band-hero::before {
  background:
    radial-gradient(60% 70% at 88% 30%, rgba(54, 87, 255, 0.10), transparent 70%),
    radial-gradient(50% 60% at 70% 95%, rgba(244, 245, 250, 1), transparent 70%),
    var(--white);
}

/* Halo discreto com a cor do fundo: mantém o texto legível quando a onda passa por trás */
.band-content :is(h1, h2, h3, h4, p, li, dt, dd, label, .area-tab, .step-n) {
  text-shadow: 0 0 2px var(--band-bg, #fff), 0 0 8px var(--band-bg, #fff), 0 0 16px var(--band-bg, #fff);
}
.band-content .btn, .band-content .form-wrap *, .band-content .panel * { text-shadow: none; }

/* 5. Linhas (camada única, por detrás do conteúdo) */
.route { position: absolute; inset: 0 0 auto 0; z-index: 0; pointer-events: none; }
.route-svg { position: absolute; top: 0; left: 0; overflow: visible; }
.route-svg path { fill: none; stroke-width: 1.2; stroke-linecap: round; }
.route-dot {
  position: absolute; top: 0; left: 0; width: 12px; height: 12px; border-radius: 50%;
  background: var(--dot, var(--blue-500)); offset-anchor: center; offset-rotate: 0deg;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--dot, var(--blue-500)) 18%, transparent);
  transition: background-color 400ms var(--ease-out);
}

/* 6. Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border-radius: var(--radius);
  font: inherit; font-size: 1rem; font-weight: 600; line-height: 1; white-space: nowrap;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out), border-color 180ms var(--ease-out), transform 120ms var(--ease-out);
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: var(--text); color: var(--text); background: transparent; }
.btn-ghost:hover { background: var(--text); color: var(--white); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 0.9375rem; }
.btn[disabled] { opacity: 0.7; cursor: progress; }

/* 7. Cabeçalho */
.site-header {
  position: sticky; top: 0; z-index: 30; height: var(--header-h);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color 240ms var(--ease-out);
}
body.is-scrolled .site-header { border-bottom-color: var(--ice-200); }
@media (prefers-reduced-transparency: reduce) { .site-header { background: var(--white); backdrop-filter: none; } }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { position: relative; display: inline-flex; align-items: center; height: 44px; color: var(--ink-900); }
.logo-full { height: 28px; width: auto; transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out); }
.logo-mono { position: absolute; left: 0; top: 50%; height: 34px; width: auto; fill: var(--blue-500);
  opacity: 0; transform: translateY(-50%) scale(0.9); transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out); }
body.is-scrolled .logo-full { opacity: 0; transform: translateY(-6px); }
body.is-scrolled .logo-mono { opacity: 1; transform: translateY(-50%) scale(1); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a, .lang { font-size: 0.9688rem; font-weight: 600; text-decoration: none; padding: 10px 0; position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform 260ms var(--ease-out);
}
.nav-links a:hover::after, .nav-links a.is-current::after { transform: scaleX(1); }
.lang { min-width: 28px; text-align: center; color: var(--ink-500); }
.lang:hover { color: var(--ink-900); }
.menu-btn { display: none; }

@media (max-width: 1023px) {
  .menu-btn {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 48px; height: 48px; padding: 0 12px; border: 1px solid var(--ice-200); border-radius: var(--radius);
    background: var(--white); cursor: pointer;
  }
  .menu-btn span { display: block; height: 2px; background: var(--ink-900); transition: transform 240ms var(--ease-out); }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 29;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--ice-200);
    padding: 8px var(--gutter) 24px; box-shadow: 0 24px 48px rgba(23, 27, 45, 0.10);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out), visibility 0s linear 220ms;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links a { display: block; font-size: 1.375rem; padding: 14px 0; border-bottom: 1px solid var(--ice-200); }
  .nav-links a::after { display: none; }
  .nav-cta { margin-top: 20px; }
  .lang { align-self: flex-start; margin-top: 12px; font-size: 1rem; }
}

/* 8. Monograma no canto (desenhado pelas linhas que saem) */
.dock {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 25;
  display: flex; align-items: center; gap: 12px; flex-direction: row-reverse;
  padding: 10px; border-radius: var(--radius); text-decoration: none; color: var(--ink-900);
  background: rgba(255, 255, 255, 0.9); border: 1px solid var(--ice-200);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 32px rgba(23, 27, 45, 0.10);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out);
}
body.is-scrolled .dock { opacity: 1; transform: none; pointer-events: auto; }
.dock-m { width: 40px; height: 36px; overflow: visible; }
.dock-track { fill: none; stroke: var(--ice-200); stroke-width: 3; stroke-linejoin: round; }
.dock-draw {
  fill: var(--blue-500); fill-opacity: 0; stroke: var(--blue-500); stroke-width: 3.5; stroke-linejoin: round;
  stroke-dasharray: 1 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset 1200ms var(--ease-out), fill-opacity 700ms var(--ease-out) 600ms;
}
.dock[data-stage="1"] .dock-draw { stroke-dashoffset: 0.75; }
.dock[data-stage="2"] .dock-draw { stroke-dashoffset: 0.5; }
.dock[data-stage="3"] .dock-draw { stroke-dashoffset: 0.25; }
.dock[data-stage="4"] .dock-draw { stroke-dashoffset: 0; fill-opacity: 1; }
.dock.is-pulse { animation: dock-pulse 700ms var(--ease-out); }
@keyframes dock-pulse { 0% { transform: scale(1); } 35% { transform: scale(1.06); } 100% { transform: scale(1); } }
.dock-label { font-size: 0.875rem; font-weight: 600; padding-left: 6px; white-space: nowrap; }
.dock:hover { border-color: var(--blue-500); }
@media (max-width: 640px) { .dock-label { display: none; } .dock { padding: 8px; } .dock-m { width: 32px; height: 29px; } }

/* 9. Hero (início) */
.band-hero { min-height: calc(100svh - var(--header-h)); display: flex; align-items: center; }
.hero-grid { padding-block: var(--s-8) var(--s-9); }
.hero-copy { max-width: 760px; }
.hero-title { font-size: clamp(2.75rem, 7vw, 6.25rem); letter-spacing: -0.035em; line-height: 0.98; }
.hero-sub { margin-top: var(--s-6); font-size: clamp(1.125rem, 1.6vw, 1.375rem); color: var(--text-muted); max-width: 38ch; }
.hero-ctas { margin-top: var(--s-7); display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 767px) { .hero-grid { padding-left: calc(var(--gutter) + var(--lane)); } }
@media (min-width: 768px) { .hero-copy { max-width: 62%; } }

/* 10. Secções */
.band:not(.band-hero) { padding-block: var(--s-9); }
@media (min-width: 1024px) { .band:not(.band-hero) { padding-block: 184px; } }
.section-title { font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -0.025em; }

.statement { font-size: clamp(2.125rem, 5vw, 4.5rem); letter-spacing: -0.03em; line-height: 1.02; max-width: 16ch; }
.intro-body { margin-top: var(--s-7); display: grid; gap: var(--s-4); max-width: 60ch; color: var(--text-muted); font-size: 1.1875rem; }
@media (min-width: 1024px) { .intro-body { grid-template-columns: 1fr 1fr; gap: var(--s-7); max-width: none; } }

.who-grid { margin-top: var(--s-8); display: grid; gap: var(--s-7); }
.who-item { padding-top: var(--s-5); border-top: 3px solid var(--accent); }
.who-item h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -0.015em; }
.who-item p { margin-top: var(--s-4); color: var(--text-muted); max-width: 46ch; font-size: 1.125rem; }
.who-note { margin-top: var(--s-7); color: var(--text-muted); }
@media (min-width: 768px) { .who-grid { grid-template-columns: 1fr 1fr; gap: var(--s-8); } }

/* 10.1 Áreas: lista tipográfica + painel */
.areas-grid { margin-top: var(--s-8); display: grid; gap: var(--s-7); }
.area-list { display: grid; gap: 4px; align-content: start; }
.area-tab {
  appearance: none; border: 0; background: none; cursor: pointer; text-align: left;
  font: inherit; font-weight: 700; letter-spacing: -0.03em; line-height: 1.05;
  font-size: clamp(2rem, 4.4vw, 3.75rem); color: var(--text-muted); padding: 6px 0;
  transition: color 240ms var(--ease-out), transform 360ms var(--ease-out);
}
.area-tab:hover { color: var(--text); }
.area-tab[aria-selected="true"] { color: var(--blue-300); font-style: italic; transform: translateX(10px); }
.panel { background: var(--ink-800); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(24px, 3.5vw, 44px); }
.js .panel[hidden] { display: none; }
.panel + .panel { margin-top: var(--s-5); }
.js .panel + .panel { margin-top: 0; }
.panel-title { font-size: clamp(1.375rem, 2vw, 1.75rem); }
.panel-lede { margin-top: var(--s-3); font-size: 1.1875rem; font-weight: 600; }
.panel-desc { margin-top: var(--s-4); color: var(--text-muted); }
.panel-label, .facts dt { margin-top: var(--s-6); font-size: 0.875rem; font-weight: 700; letter-spacing: 0.02em; }
.ticks { margin-top: var(--s-3); display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 24px; color: var(--text-muted); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 14px; height: 1.5px; background: var(--blue-300); }
.facts { margin: var(--s-4) 0 0; display: grid; gap: 0 var(--s-6); border-top: 1px solid var(--border); }
.facts dd { margin: 6px 0 0; color: var(--text-muted); }
.panel.is-entering { animation: panel-in 380ms var(--ease-out); }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (min-width: 1024px) {
  .areas-grid { grid-template-columns: 5fr 6fr; gap: var(--s-8); align-items: start; }
  .area-list { position: sticky; top: calc(var(--header-h) + 32px); }
  .facts { grid-template-columns: 1fr 1fr; }
}

/* 10.2 Abordagem (azul) */
.steps { margin-top: var(--s-8); display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 64px 1fr; gap: var(--s-5); padding: var(--s-6) 0; border-top: 1px solid var(--border); position: relative; }
.step:last-child { border-bottom: 1px solid var(--border); }
.step::before { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 100%; background: var(--white);
  transform: scaleX(0); transform-origin: left; transition: transform 800ms var(--ease-out); }
.step.is-active::before { transform: scaleX(1); }
.step-n { font-size: 1rem; font-weight: 700; padding-top: 6px; font-variant-numeric: tabular-nums; }
.step h3 { font-size: clamp(1.375rem, 2.4vw, 2rem); letter-spacing: -0.015em; }
.step p { margin-top: var(--s-3); color: var(--text-muted); max-width: 52ch; }
@media (min-width: 768px) { .step > div { display: grid; grid-template-columns: 5fr 6fr; gap: var(--s-6); align-items: baseline; } .step p { margin-top: 0; } }

/* 10.3 Contacto */
.contact-grid { display: grid; gap: var(--s-7); }
.contact-copy p { margin-top: var(--s-4); color: var(--text-muted); max-width: 42ch; font-size: 1.125rem; }
.contact-copy .contact-alt { margin-top: var(--s-6); color: var(--text); font-size: 1rem; }
.contact-alt a { font-weight: 600; }
@media (min-width: 1100px) { .contact-grid { grid-template-columns: 4fr 6fr; gap: var(--s-8); align-items: start; } }

/* 11. Formulário */
.form-wrap { background: var(--ice-50); border: 1px solid var(--ice-200); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); }
.form { display: grid; gap: var(--s-5); }
.field { display: grid; gap: 8px; }
.field-row { display: grid; gap: var(--s-5); }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
label { font-weight: 600; font-size: 0.9688rem; }
.opt { font-weight: 400; color: var(--text-muted); }
.field-help { font-size: 0.9375rem; color: var(--text-muted); }
input[type="text"], input[type="email"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink-900); background: var(--white);
  border: 1px solid var(--ink-500); border-radius: var(--radius); padding: 12px 14px; min-height: 50px;
  transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}
textarea { resize: vertical; min-height: 140px; }
input:hover, select:hover, textarea:hover { border-color: var(--ink-900); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(54, 87, 255, 0.3); }
[aria-invalid="true"] { border-color: var(--error) !important; }
.select { position: relative; }
.select select { appearance: none; padding-right: 44px; cursor: pointer; }
.select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px;
  border-right: 1.5px solid var(--ink-900); border-bottom: 1.5px solid var(--ink-900); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.field-check { grid-template-columns: 24px 1fr; align-items: start; column-gap: 12px; }
.field-check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--blue-500); cursor: pointer; }
.field-check label { font-weight: 400; }
.field-check .field-error { grid-column: 2; }
.field-error { color: var(--error); font-size: 0.9375rem; font-weight: 600; }
.field-error:empty { display: none; }
.form-summary { border-left: 3px solid var(--error); padding: 12px 16px; color: var(--error); font-weight: 600; background: rgba(180, 35, 24, 0.06); }
.form-fail { border-left: 3px solid var(--error); padding: 12px 16px; background: var(--white); }
.btn-submit { justify-self: start; min-width: 210px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-ok h3 { font-size: 1.5rem; }
.form-ok p { margin-top: var(--s-3); color: var(--text-muted); }

/* 12. Rodapé (tinta) */
.site-footer { position: relative; z-index: 1; background: var(--ink-900); color: var(--ice-50); padding-block: var(--s-8) calc(var(--s-8) + 56px); }
.footer-inner { display: grid; gap: var(--s-6); }
.footer-brand .logo { height: 26px; width: auto; color: var(--white); }
.footer-brand p, .footer-meta p { margin-top: var(--s-3); color: var(--ice-400); font-size: 0.9375rem; }
.footer-meta a { font-weight: 600; }
@media (min-width: 768px) { .footer-inner { grid-template-columns: 1fr auto; align-items: end; } .footer-meta { text-align: right; } }

/* 13. Entrada do hero (uma vez, ao carregar) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); filter: blur(6px); }
  .js .is-loaded .reveal { opacity: 1; transform: none; filter: none;
    transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out), filter 800ms var(--ease-out); }
  .js .is-loaded .reveal:nth-child(2) { transition-delay: 100ms; }
  .js .is-loaded .reveal:nth-child(3) { transition-delay: 200ms; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* 14. Aviso de consentimento (RGPD) */
.consent {
  position: fixed; left: max(16px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40;
  width: min(560px, calc(100% - 32px)); max-height: calc(100svh - 32px); overflow: auto;
  background: var(--white); color: var(--ink-900); border: 1px solid var(--ice-200); border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(23, 27, 45, 0.18); padding: 24px;
  display: grid; gap: 16px;
}
.consent[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .consent:not([hidden]) { animation: consent-in 420ms var(--ease-out); }
  @keyframes consent-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}
.consent-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; }
.consent-m { width: 30px; height: 27px; fill: var(--blue-500); }
.consent h2 { font-size: 1.25rem; letter-spacing: -0.01em; outline: none; }
.consent-x { position: relative; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; border-radius: var(--radius); }
.consent-x span { position: absolute; left: 12px; right: 12px; top: 50%; height: 2px; background: var(--ink-900); }
.consent-x span:first-child { transform: rotate(45deg); }
.consent-x span:last-child { transform: rotate(-45deg); }
.consent-x:hover { background: var(--ice-50); }
.consent > p { font-size: 0.9688rem; color: var(--ink-500); line-height: 1.55; }
.consent-actions { display: grid; gap: 10px; }
.consent-actions .btn { width: 100%; min-height: 48px; padding: 0 14px; }
.consent-actions [hidden] { display: none; }
@media (min-width: 520px) { .consent-actions { grid-template-columns: 1fr 1fr 1fr; } }
.btn-ink { background: var(--ink-900); color: var(--white); }
.btn-ink:hover { background: var(--ink-700); }
.consent .btn-ghost { border-color: var(--ink-900); color: var(--ink-900); }
.consent .btn-ghost:hover { background: var(--ink-900); color: var(--white); }
.consent-policy { justify-self: center; font-size: 0.9375rem; font-weight: 600; color: var(--blue-500); }
.consent-prefs { display: grid; gap: 0; border-top: 1px solid var(--ice-200); }
.consent-prefs[hidden] { display: none; }
.pref { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--ice-200); cursor: pointer; }
.pref:first-child { cursor: default; }
.pref strong { font-size: 0.9688rem; }
.pref p { margin-top: 4px; font-size: 0.875rem; color: var(--ink-500); line-height: 1.5; }
.pref-always { font-size: 0.8125rem; font-weight: 600; color: var(--ink-500); white-space: nowrap; }
.switch { appearance: none; -webkit-appearance: none; width: 44px; height: 26px; border-radius: 13px; margin: 0; cursor: pointer;
  background: var(--ice-200); position: relative; transition: background-color 180ms var(--ease-out); flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--white);
  box-shadow: 0 1px 3px rgba(23, 27, 45, 0.25); transition: transform 200ms var(--ease-out); }
.switch:checked { background: var(--blue-500); }
.switch:checked::after { transform: translateX(18px); }
.switch:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 2px; }
@media (max-width: 640px) {
  .consent { left: 8px; right: 8px; bottom: 8px; width: auto; padding: 20px; }
  body.consent-open .dock { opacity: 0 !important; pointer-events: none !important; }
}

/* 15. Rodapé: ligações legais */
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: flex-start; margin-top: 0 !important; }
@media (min-width: 768px) { .footer-links { justify-content: flex-end; } }
.footer-links a, .link-btn { color: var(--ice-50); font-weight: 600; font-size: 0.9375rem; }
.link-btn { appearance: none; background: none; border: 0; padding: 0; font: inherit; font-weight: 600; text-decoration: underline;
  text-underline-offset: 3px; text-decoration-thickness: 1px; cursor: pointer; color: inherit; }
.field-check .consent-note { grid-column: 2; font-size: 0.875rem; }
.consent-note a { color: var(--blue-500); font-weight: 600; }

/* 16. Páginas legais e 404 */
.site-header--simple .nav--simple { position: static; visibility: visible; opacity: 1; transform: none; flex-direction: row;
  padding: 0; box-shadow: none; border: 0; background: none; }
.legal { padding-block: var(--s-8) var(--s-9); }
.legal-inner { max-width: 820px; }
.legal-back { display: inline-block; font-weight: 600; color: var(--blue-500); margin-bottom: var(--s-6); }
.legal h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); letter-spacing: -0.025em; }
.legal-updated { margin-top: var(--s-3); color: var(--ink-500); }
.legal section { margin-top: var(--s-7); }
.legal h2 { font-size: 1.375rem; letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--ink-500); margin-top: var(--s-3); max-width: 68ch; }
.legal ul { list-style: disc; padding-left: 1.25em; }
.legal strong { color: var(--ink-900); }
.legal a:not(.btn) { color: var(--blue-500); font-weight: 600; }
.legal .link-btn { color: var(--blue-500); }
mark.todo { background: #FFF1B8; color: var(--ink-900); padding: 0 4px; border-radius: 2px; }
.table-wrap { overflow-x: auto; margin-top: var(--s-4); }
.legal table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 0.9375rem; }
.legal th, .legal td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--ice-200); vertical-align: top; color: var(--ink-500); }
.legal th { color: var(--ink-900); background: var(--ice-50); }
.notfound h1 { margin-top: var(--s-7); }
.notfound-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s-6) !important; }
