/* ==========================================================================
   Fontes
   ========================================================================== */

/* Fonte primária (marca) — arquivos em fonts/delmon-delicate/, ver LEIA-ME.txt */
@font-face {
  font-family: "Delmon Delicate";
  src: url("fonts/delmon-delicate/DelmonDelicate-Regular.woff2") format("woff2"),
       url("fonts/delmon-delicate/DelmonDelicate-Regular.woff") format("woff"),
       url("fonts/delmon-delicate/DelmonDelicate-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Fonte secundária (Montserrat) — auto-hospedada em fonts/montserrat/, só os
   4 pesos usados no site (regular/medium/semibold/bold), sem itálico e sem
   os subsets cirílico/vietnamita que o Google Fonts manda por padrão. */
@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat/Montserrat-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat/Montserrat-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat/Montserrat-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat/Montserrat-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   Tokens — Camada 1: paleta bruta
   Matiz preservado da marca (Heather Black / Khaki Traditional / Branco);
   a escala foi construída EM VOLTA desses três valores, não substituindo-os.
   --ink-900, --gold-500 e --paper-000 SÃO os valores de marca originais.

   Regra dos 4 degraus úteis: cada rampa só existe pra servir fundo, borda,
   texto secundário e texto primário. Um degrau sem uma dessas funções
   atribuídas é decoração — não adicionar de volta sem lhe dar uso real.

   Regra de degrau x superfície: texto sobre claro nunca usa um degrau que
   reprove contra --paper-000 (hoje, o piso é --ink-500, 6.94:1); texto sobre
   escuro nunca usa um degrau que reprove contra --ink-900 (hoje, o piso é
   --ink-300, 6.62:1). O meio da rampa (--ink-700/800, --gold-400/500) é
   território de superfície e acento sobre escuro — nunca texto sobre claro.
   ========================================================================== */

:root {
  color-scheme: light;

  /* Escala de tinta (neutro frio de marca, H230/S8 — mesmo matiz do Heather Black) */
  --ink-900: #232429; /* Heather Black — valor de marca original */
  --ink-900-rgb: 35, 36, 41;
  --ink-800: #2d2e34;
  --ink-700: #444650;
  --ink-500: #565968; /* escurecido nesta rodada: garante ≥5:1 contra o novo --paper-050 */
  --ink-300: #a7a9b4;
  --ink-200: #d6d7dc;

  /* Escala de papel (branco de marca + creme quente derivado do matiz do dourado) */
  --paper-000: #ffffff; /* Branco — valor de marca original */
  --paper-050: #efebe3; /* creme perceptível — era quase idêntico ao branco */
  --paper-100: #f5f4ef;
  --paper-200: #e4e1d7;

  /* Escala de dourado (H45/S~36, ancorada no Khaki Traditional = --gold-500) */
  --gold-600: #7e6a30; /* dourado escuro — só texto/link sobre fundo claro; escurecido nesta rodada pra passar 4.5:1 também sobre --paper-100 */
  --gold-500: #c7b787; /* Khaki Traditional — valor de marca original, uso exclusivo: CTA e acento sobre escuro */
  --gold-400: #d6ccae; /* hover sobre escuro, detalhe de baixa ênfase */

  /* Funcional (mínimo necessário) */
  --caution-600: #8a5a2b;  /* terroso — seção "não sustenta rescisão" */

  /* Legado: Silver Penny (#CECDCD) é superado por esta escala nesta rodada;
     mantido apenas como referência histórica da marca, não usado em componentes. */
  --color-silver-penny: #cecdcd;

  /* Exceção deliberada ao sistema ink/gold/paper: verde/teal oficial do
     WhatsApp, usado em componentes específicos por pedido explícito do
     cliente (barra fixa mobile, CTA de "como funciona", CTA da objeção) —
     não é o CTA principal padrão, que continua exclusivamente dourado. */
  --whatsapp-teal: #0b7b5e;
  --whatsapp-teal-rgb: 11, 123, 94;
  --whatsapp-teal-hover: #096b51;
  --whatsapp-teal-active: #075e54; /* teal escuro oficial do WhatsApp */
  --whatsapp-icon-accent: #25d366; /* verde vívido — texto/borda/glifo sobre fundo ESCURO (7,8:1); não usar sobre claro */

  /* Fonte primária: títulos/destaque de marca */
  --font-primary: "Delmon Delicate", "Georgia", serif;

  /* Fonte secundária: texto corrido e UI */
  --font-secondary: "Montserrat", system-ui, sans-serif;

  /* Pesos da fonte secundária (Montserrat) */
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-black: 900;

  /* Espaçamento */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: 6.5rem;

  /* Ritmo vertical de seção */
  --space-section: 3.5rem;    /* 56px mobile */
  --space-section-lg: 6.5rem; /* 104px desktop — mesmo valor de --space-7 */
  --gap-block: 1.5rem;        /* 24px mobile */
  --gap-block-lg: 2rem;       /* 32px desktop */
  --gap-item: 0.75rem;        /* 12px mobile */
  --gap-item-lg: 1rem;        /* 16px desktop */

  /* Escala de ritmo vertical (Parte 3.3) */
  --sp-heading-to-lead: 0.75rem;  /* 12px — H2 → parágrafo de abertura */
  --sp-lead-to-content: 1.5rem;   /* 24px — parágrafo → grid/lista */
  --sp-eyebrow-to-grid: 0.75rem;  /* 12px — rótulo de grupo → grid */
  --sp-group-gap: 1.75rem;        /* 28px — entre grupos rotulados */
  --sp-content-to-close: 2rem;    /* 32px — grid → .section-close */
  --sp-close-gap: 1.25rem;        /* 20px — texto de fecho → CTA */

  /* Container */
  --wrap-max-md: 47.5rem; /* 760px */
  --wrap-max-lg: 70rem;   /* 1120px */

  /* Escala tipográfica (mobile-first; sobrescrita em --bp-lg) */
  --fs-h1: 2rem;        /* 32px */
  --lh-h1: 1.12;
  --fs-h2-marco: 1.75rem;  /* 28px — âncoras: Isso é você? / verbas / autoridade */
  --lh-h2-marco: 1.15;
  --fs-h2-apoio: 1.5rem;   /* 24px — demais H2 */
  --lh-h2-apoio: 1.2;
  --fs-h3: 1.0625rem;   /* 17px — título de card */
  --lh-h3: 1.3;
  --fs-body: 1.0625rem; /* 17px */
  --lh-body: 1.6;
  --fs-body-sm: 0.9375rem; /* 15px — mínimo absoluto de texto corrido */
  --lh-body-sm: 1.55;
  --fs-eyebrow: 0.75rem;   /* 12px */
  --lh-eyebrow: 1.2;

  /* Raio (sistema existente, reaproveitado — nenhum raio novo introduzido) */
  --radius-sm: 10px;
  --radius-md: 12px;
}

/* Breakpoints deste rebuild: sm 37.5rem (600px) / md 56.25rem (900px) / lg 75rem (1200px) */
@media (min-width: 75rem) {
  :root {
    --fs-h1: 3.375rem;      /* 54px */
    --fs-h2-marco: 2.625rem; /* 42px */
    --fs-h2-apoio: 2.125rem; /* 34px */
    --fs-h3: 1.1875rem;   /* 19px */
    --fs-body: 1.125rem;  /* 18px */
    --fs-body-sm: 1rem;   /* 16px */
    --fs-eyebrow: 0.8125rem; /* 13px */

    --sp-heading-to-lead: 1rem;    /* 16px */
    --sp-lead-to-content: 2rem;    /* 32px */
    --sp-eyebrow-to-grid: 1rem;    /* 16px */
    --sp-group-gap: 2.25rem;       /* 36px */
    --sp-content-to-close: 2.5rem; /* 40px */
    --sp-close-gap: 1.5rem;        /* 24px */
  }
}

/* ==========================================================================
   Tokens — Camada 2: semânticos
   ========================================================================== */

:root {
  /* superfícies */
  --surface-default: var(--paper-000);
  --surface-alt: var(--paper-050);
  --surface-card: var(--paper-100);
  --surface-inverse: var(--ink-900);
  --surface-inverse-card: var(--ink-800);

  /* texto sobre claro */
  --text-primary: var(--ink-900);
  --text-secondary: var(--ink-500);
  --text-accent: var(--gold-600);

  /* texto sobre escuro */
  --text-on-inverse: var(--paper-000);
  --text-on-inverse-muted: var(--ink-300);
  --text-on-inverse-accent: var(--gold-500);

  /* bordas */
  --border-subtle: var(--ink-200);
  --border-card: var(--paper-200);
  --border-inverse: var(--ink-700);
}

/* ==========================================================================
   Tokens — Camada 3: uso
   ========================================================================== */

:root {
  /* CTA primário — o dourado vive aqui e em nenhum outro lugar (R1) */
  --cta-bg: var(--gold-500);
  --cta-text: var(--ink-900);
  --cta-bg-hover: var(--gold-400);
  --cta-ring: var(--gold-600);

  /* CTA secundário sobre claro */
  --cta2-bg: transparent;
  --cta2-text: var(--ink-900);
  --cta2-border: var(--ink-900);

  /* CTA sobre fundo escuro */
  --cta-inverse-bg: var(--gold-500);
  --cta-inverse-text: var(--ink-900);

  /* marcadores — não dourado */
  --marker-affirm: var(--ink-900);
  --marker-neutral: var(--ink-500);
  --marker-caution: var(--caution-600);

  /* foco */
  --focus-ring: var(--gold-600);
  --focus-ring-inverse: var(--gold-400);
}

/* ==========================================================================
   Superfícies de seção (R2/R3) — um componente escrito uma vez funciona
   nos dois contextos porque os tokens semânticos são redefinidos aqui.
   ========================================================================== */

.surface--default {
  background-color: var(--surface-default);
  color: var(--text-primary);
}

.surface--alt {
  background-color: var(--surface-alt);
  color: var(--text-primary);
}

.surface--inverse {
  background-color: var(--surface-inverse);
  color: var(--text-on-inverse);
  --text-primary: var(--text-on-inverse);
  --text-secondary: var(--text-on-inverse-muted);
  --text-accent: var(--text-on-inverse-accent);
  --surface-card: var(--surface-inverse-card);
  --border-card: var(--border-inverse);
  --marker-affirm: var(--paper-000);
  --focus-ring: var(--focus-ring-inverse);
}

/* ==========================================================================
   Reset e base
   ========================================================================== */

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

body {
  font-family: var(--font-secondary);
  font-weight: var(--fw-regular);
  color: var(--text-primary);
  background-color: var(--surface-default);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-primary);
  /* "Delmon Delicate" só existe no peso Regular (ver PRODUCT.md) — o navegador
     sintetiza o peso medium a partir desse único arquivo. Não é o ideal, mas é
     o que a família suporta sem um corte Medium/SemiBold real. */
  font-weight: var(--fw-medium);
  text-wrap: balance;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--surface-default);
  color: var(--text-primary);
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  z-index: 100;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.wrap {
  width: 100%;
  padding-inline: 1.25rem; /* 20px */
}

@media (min-width: 37.5rem) {
  .wrap {
    padding-inline: 2rem; /* 32px */
  }
}

@media (min-width: 56.25rem) {
  .wrap {
    max-width: var(--wrap-max-md);
    margin-inline: auto;
  }
}

@media (min-width: 75rem) {
  .wrap {
    max-width: var(--wrap-max-lg);
  }
}

main section {
  padding-block: var(--space-section);
}

@media (min-width: 75rem) {
  main section {
    padding-block: var(--space-section-lg);
  }
}

.section-lead {
  max-width: 42rem;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  margin-bottom: var(--sp-lead-to-content);
}

h2 {
  font-size: var(--fs-h2-apoio);
  line-height: var(--lh-h2-apoio);
  margin-bottom: var(--sp-heading-to-lead);
  max-width: 30ch;
}

h2.h2--marco {
  font-size: var(--fs-h2-marco);
  line-height: var(--lh-h2-marco);
}

main p {
  max-width: 65ch;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

/* ==========================================================================
   Bloco de fecho de seção (Parte 3.2) — texto de ressalva + CTA.
   Todo espaçamento interno vem do gap; proibido margin em filhos.
   ========================================================================== */

.section-close {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-close-gap);
  margin-top: var(--sp-content-to-close);
}

.section-close > * {
  margin: 0;
}

.section-close p {
  max-width: 62ch;
  color: var(--text-secondary);
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body-sm);
}

/* ==========================================================================
   Botões
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  font-family: var(--font-secondary);
  font-weight: var(--fw-bold);
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.15s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.15s ease, filter 0.15s ease;
}

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

.btn:active {
  transform: translateY(1px);
}

.btn-whatsapp {
  /* Contraste verificado por cálculo (WCAG 2.1): texto --ink-900 sobre fundo
     --gold-500 = razão ~7.8:1, acima do mínimo de 4.5:1 exigido. --gold-500
     nunca carrega texto branco (R1/R4). */
  background-color: var(--cta-bg);
  color: var(--cta-text);
  box-shadow: 0 6px 16px -6px rgb(var(--ink-900-rgb) / 0.35);
}

.btn-whatsapp:hover {
  background-color: var(--cta-bg-hover);
  box-shadow: 0 10px 22px -6px rgb(var(--ink-900-rgb) / 0.42);
}

.btn-whatsapp:active {
  filter: brightness(0.94);
}

.btn-whatsapp .icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

.btn-whatsapp--small {
  padding: 0.65rem 1.1rem;
  font-size: 0.9rem;
  min-height: 48px;
}

.btn-whatsapp--large {
  width: 100%;
  min-height: 56px;
  padding: 0.9rem 1.5rem;
  font-size: 1.05rem;
}

.btn-whatsapp--large span {
  white-space: nowrap;
}

/* Abaixo de sm o botão é width:100% — a fonte encolhe (via container query,
   relativa à própria largura do botão) para o rótulo nunca quebrar linha.
   Escopado à faixa width:100% para não criar referência circular com o
   width:auto do desktop (onde o botão já se ajusta ao conteúdo). */
@media (max-width: 37.4375rem) {
  .btn-whatsapp--large {
    container-type: inline-size;
  }

  @supports (width: 1cqw) {
    .btn-whatsapp--large {
      font-size: clamp(0.6875rem, 8cqw, 1.05rem);
    }
  }
}

@media (min-width: 37.5rem) {
  .btn-whatsapp--large {
    width: auto;
    padding-inline: 2rem;
  }
}

@media (min-width: 75rem) {
  .btn-whatsapp--large {
    min-height: 52px;
    padding-block: 0.85rem;
  }
}

/* CTA discreto (secundário) — outline, não hiperlink. Usado em blocos que não
   devem repetir o CTA cheio. Usa os tokens semânticos (não os de uso do CTA
   cheio) pra se adaptar automaticamente dentro de .surface--inverse. */
.btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-secondary);
  font-weight: var(--fw-bold);
  font-size: var(--fs-body-sm);
  color: var(--text-primary);
  text-decoration: none;
  border: 1px solid var(--text-accent);
  border-radius: var(--radius-sm);
  transition: background-color 0.15s ease;
}

@media (min-width: 37.5rem) {
  .btn-link {
    width: auto;
  }
}

.btn-link:hover {
  background-color: var(--surface-card);
}

.btn-link .icon {
  width: 1.1em;
  height: 1.1em;
  flex: none;
  color: var(--text-accent);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background-color: var(--surface-default);
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-subtle);
  transition: transform 0.25s cubic-bezier(0, 0, 0.2, 1);
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding-block: 0.85rem;
}

.header-logo {
  display: inline-flex;
}

.logo {
  height: 34px;
  width: auto;
}

@media (min-width: 75rem) {
  .logo {
    height: 40px;
  }
}

.logo--inverse {
  height: 32px;
  margin-bottom: var(--space-2);
}

/* Parte 7.1 — mobile: só o logo, sem botão (a barra sticky cobre a função) */
.header-logo .logo--on-dark {
  display: none;
}

.site-header .btn-whatsapp--nav {
  display: none;
}

/* Desktop: contorno discreto sobre um header que assume o tom escuro da hero */
@media (min-width: 56.25rem) {
  .site-header {
    background-color: var(--surface-inverse);
    color: var(--text-on-inverse);
    border-bottom-color: var(--border-inverse);
  }

  .header-logo .logo--on-light {
    display: none;
  }

  .header-logo .logo--on-dark {
    display: block;
  }

  .site-header .btn-whatsapp--nav {
    display: inline-flex;
    background-color: transparent;
    color: var(--text-on-inverse);
    border: 1px solid var(--border-inverse);
    box-shadow: none;
  }

  .site-header .btn-whatsapp--nav:hover {
    background-color: var(--surface-inverse-card);
  }

  .site-header .btn-whatsapp--nav:active {
    filter: none;
    background-color: var(--border-inverse);
  }
}

/* O cabeçalho é sticky: sem isto o topo da seção alvo fica escondido atrás
   dele quando o link "Sobre" salta para #advogado. */
html {
  scroll-padding-top: 5rem;
}

/* Ligação com o site institucional. Fica oculta no mobile, onde o cabeçalho é
   só o logo e a barra sticky assume a conversão; o rodapé cobre todos os
   tamanhos. */
.header-nav {
  display: none;
}

@media (min-width: 56.25rem) {
  .header-nav {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-left: auto;
    margin-right: var(--space-3);
  }

  .header-nav a {
    font-size: var(--fs-body-sm);
    color: inherit;
    opacity: 0.8;
    text-decoration: none;
  }

  .header-nav a:hover,
  .header-nav a:focus-visible {
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 0.2em;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding-top: var(--space-4);
  padding-bottom: var(--space-5);
  min-height: 100svh;
  display: flex;
  align-items: center;
}

@media (min-width: 75rem) {
  .hero {
    min-height: 0;
    padding-top: var(--space-5);
    padding-bottom: var(--space-6);
  }
}

.hero-inner {
  width: 100%;
}

@media (min-width: 75rem) {
  .hero-inner {
    display: grid;
    grid-template-columns: 1fr 21rem;
    gap: var(--space-6);
    align-items: start;
  }
}

.hero-kicker {
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--fs-eyebrow);
  line-height: var(--lh-eyebrow);
  color: var(--text-secondary);
  margin-bottom: var(--sp-eyebrow-to-grid);
}

@media (min-width: 75rem) {
  .hero-kicker::before {
    content: "";
    display: block;
    width: 2rem;
    height: 2px;
    background-color: var(--text-accent);
    margin-bottom: 0.9rem;
  }
}

.hero-title {
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  margin-bottom: var(--sp-heading-to-lead);
  max-width: 19ch;
}

@media (min-width: 75rem) {
  .hero-title {
    max-width: 17ch;
  }
}

.hero-sub {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  margin-bottom: var(--sp-lead-to-content);
  max-width: 42rem;
}

.hero-credential {
  margin-top: var(--sp-close-gap);
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body-sm);
}

.hero-note {
  display: none;
}

.hero-panel {
  display: none;
}

/* Desktop largo: painel "quem atende" substitui a linha de credencial —
   sem foto, credibilidade construída em texto e ícones. */
@media (min-width: 75rem) {
  .hero-credential {
    display: none;
  }

  .hero-note {
    display: block;
    margin-top: var(--sp-close-gap);
    font-size: var(--fs-body-sm);
    line-height: var(--lh-body-sm);
    color: var(--text-secondary);
  }

  .hero-panel {
    display: block;
  }
}

.hero-panel-eyebrow {
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--fs-eyebrow);
  line-height: var(--lh-eyebrow);
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.hero-panel-eyebrow::before {
  content: "";
  display: block;
  width: 2rem;
  height: 2px;
  background-color: var(--text-accent);
  margin-bottom: 0.9rem;
}

.hero-panel-name {
  font-family: var(--font-primary);
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}

.hero-panel-oab {
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-medium);
  color: var(--text-accent);
  margin-bottom: var(--space-3);
}

.hero-panel-list {
  list-style: none;
  display: grid;
  gap: var(--gap-item);
}

.hero-panel-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body-sm);
  color: var(--text-secondary);
}

.hero-panel-list .icon {
  width: 1.2em;
  height: 1.2em;
  flex: none;
  margin-top: 0.15em;
  color: var(--text-accent);
}

/* ==========================================================================
   Chips de credencial (placeholders visuais para OAB/CNPJ/tempo de atuação)
   ========================================================================== */

.credential-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 0.3em 0.85em;
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-medium);
  white-space: nowrap;
}

.credential-chip--inline {
  vertical-align: middle;
  margin-top: var(--sp-eyebrow-to-grid);
}

/* Acento dourado sobre fundo escuro — uso permitido por R1 */
.credential-chip--inverse {
  border-color: var(--text-on-inverse-accent);
  color: var(--text-on-inverse);
}

.tbd {
  font-style: italic;
  opacity: 0.75;
}

/* ==========================================================================
   Entrada da hero — único momento coreografado da página (CSS puro, roda no
   load, sem depender de JS: se o script falhar em qualquer lugar da página,
   o conteúdo aqui já terá aparecido normalmente).
   ========================================================================== */

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-kicker,
.hero-title,
.hero-sub,
.hero-main .btn,
.hero-credential,
.hero-note,
.hero-panel {
  animation: hero-rise 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-kicker { animation-delay: 0ms; }
.hero-title { animation-delay: 90ms; }
.hero-sub { animation-delay: 180ms; }
.hero-main .btn { animation-delay: 270ms; }
.hero-credential,
.hero-note { animation-delay: 340ms; }
.hero-panel { animation-delay: 420ms; }

@media (prefers-reduced-motion: reduce) {
  .hero-kicker,
  .hero-title,
  .hero-sub,
  .hero-main .btn,
  .hero-credential,
  .hero-note,
  .hero-panel {
    animation: none;
  }
}

/* ==========================================================================
   Checklist ("Isso é você?")
   ========================================================================== */

/* Parte 4 — coluna estreita centralizada; itens permanecem à esquerda */
@media (min-width: 56.25rem) {
  .checklist h2,
  .checklist .section-lead {
    text-align: center;
    margin-inline: auto;
  }

  .checklist-list {
    margin-inline: auto;
  }

  .checklist .section-close {
    align-items: center;
    text-align: center;
    margin-inline: auto;
  }
}

@media (min-width: 75rem) {
  .checklist .wrap {
    max-width: var(--wrap-max-md);
  }
}

.checklist-list {
  list-style: none;
  display: grid;
  gap: var(--gap-item);
  max-width: 40rem;
}

@media (min-width: 75rem) {
  .checklist-list {
    gap: var(--gap-item-lg);
  }
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background-color: var(--surface-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

.checklist-item .icon {
  width: 1.35em;
  height: 1.35em;
  flex: none;
  margin-top: 0.1em;
  color: var(--marker-affirm);
}

.checklist-item-consequence {
  display: block;
  margin-top: 0.25rem;
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body-sm);
  color: var(--text-secondary);
}

/* Reconhecimento de item: entra em leve stagger e o check "se desenha" —
   só ativado via JS (.will-animate), então sem script o checklist já
   aparece inteiro e visível; nada fica preso num estado escondido. */
.checklist-item .icon {
  stroke-dasharray: 24;
  stroke-dashoffset: 0;
}

.checklist-list.will-animate .checklist-item {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.checklist-list.will-animate .checklist-item .icon {
  stroke-dashoffset: 24;
  transition: stroke-dashoffset 0.5s cubic-bezier(0.16, 1, 0.3, 1) 120ms;
}

.checklist-list.will-animate.is-inview .checklist-item {
  opacity: 1;
  transform: none;
}

.checklist-list.will-animate.is-inview .checklist-item .icon {
  stroke-dashoffset: 0;
}

.checklist-list.will-animate .checklist-item:nth-child(1) { transition-delay: 0ms; }
.checklist-list.will-animate .checklist-item:nth-child(2) { transition-delay: 70ms; }
.checklist-list.will-animate .checklist-item:nth-child(3) { transition-delay: 140ms; }
.checklist-list.will-animate .checklist-item:nth-child(4) { transition-delay: 210ms; }
.checklist-list.will-animate .checklist-item:nth-child(5) { transition-delay: 280ms; }
.checklist-list.will-animate .checklist-item:nth-child(6) { transition-delay: 350ms; }

@media (prefers-reduced-motion: reduce) {
  .checklist-list.will-animate .checklist-item,
  .checklist-list.will-animate .checklist-item .icon {
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Verbas rescisórias
   ========================================================================== */

.verbas-framing {
  max-width: 60ch;
  margin-bottom: var(--sp-lead-to-content);
}

.verbas-cluster + .verbas-cluster {
  margin-top: var(--sp-group-gap);
}

.verbas-cluster-title {
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--fs-eyebrow);
  line-height: var(--lh-eyebrow);
  /* Acento dourado sobre fundo escuro — uso permitido por R1 */
  color: var(--text-accent);
  margin-bottom: var(--sp-eyebrow-to-grid);
}

.verbas-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: var(--gap-item);
}

@media (min-width: 56.25rem) {
  .verbas-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap-item-lg);
  }
}

@media (min-width: 75rem) {
  .verbas-grid {
    gap: 1.25rem;
  }
}

.verba-item {
  display: flex;
  flex-direction: column;
  background-color: var(--surface-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
}

/* Cluster 1 ("verbas da rescisão"): cards claros, o ponto de maior contraste
   da seção escura — a recompensa concreta salta primeiro. */
.verbas-cluster--light .verba-item {
  background-color: var(--paper-100);
  border-color: var(--paper-200);
}

.verbas-cluster--light .verba-item-title {
  color: var(--ink-900);
}

.verbas-cluster--light .verba-item p:not(.verba-item-title) {
  color: var(--ink-500);
}

/* Cluster 2 ("o que mais entra na conta"): cards escuros com borda dourada,
   acento sobre fundo escuro — uso permitido por R1. */
.verbas-cluster--outline .verba-item {
  border-color: var(--text-accent);
}

.verba-item-title {
  font-weight: var(--fw-semibold);
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  margin-bottom: 0.3rem;
}

.verba-item p:not(.verba-item-title) {
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body-sm);
  max-width: none;
  color: var(--text-secondary);
}

.verbas-disclaimer {
  font-weight: var(--fw-medium);
  max-width: 60ch;
}

/* ==========================================================================
   Situações que não dão direito
   ========================================================================== */

.naodireito-list {
  list-style: none;
  display: grid;
  gap: var(--gap-item);
}

@media (min-width: 37.5rem) {
  .naodireito-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 75rem) {
  .naodireito-list {
    gap: var(--gap-item-lg);
  }
}

.naodireito-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background-color: var(--surface-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

/* Terroso, nunca vermelho de erro — ver camada 1 (--caution-600) */
.naodireito-item .icon {
  width: 1.35em;
  height: 1.35em;
  flex: none;
  margin-top: 0.1em;
  color: var(--marker-caution);
}

.naodireito-disclaimer {
  font-weight: var(--fw-medium);
  max-width: 60ch;
}

/* ==========================================================================
   Quebra de objeção (retaliação) — sem card, direto sobre a seção escura
   ========================================================================== */

.objection-title {
  font-size: 1.4rem;
  max-width: none;
}

@media (min-width: 75rem) {
  .objection-title {
    font-size: 1.75rem;
  }
}

.objection-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-close-gap);
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-card);
}

.objection-body p {
  max-width: 60ch;
}

/* --whatsapp-teal reprova contraste sobre --ink-900 (2,95:1); nesta seção
   escura usamos --whatsapp-icon-accent, que passa 7,8:1 sobre o fundo. */
.objection-body .btn-link {
  color: var(--whatsapp-icon-accent);
  border-color: var(--whatsapp-icon-accent);
}

.objection-body .btn-link .icon {
  color: var(--whatsapp-icon-accent);
}

.objection-body .btn-link:hover {
  background-color: var(--whatsapp-icon-accent);
  color: var(--ink-900);
}

/* ==========================================================================
   Cabeçalho com eyebrow em coluna (reutilizado em "como funciona" e na
   quebra de objeção): rótulo dourado com traço acima, título ao lado.
   ========================================================================== */

.eyebrow-head {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: var(--gap-item);
  align-items: start;
  padding-bottom: 1.25rem;
}

@media (min-width: 56.25rem) {
  .eyebrow-head {
    grid-template-columns: 5rem 1fr;
  }
}

.eyebrow-head h1,
.eyebrow-head h2 {
  margin-bottom: 0;
}

.eyebrow-head-label {
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--fs-eyebrow);
  line-height: 1.3;
  color: var(--text-accent);
}

.eyebrow-head-label::before {
  content: "";
  display: block;
  width: 2rem;
  height: 2px;
  background-color: var(--text-accent);
  margin-bottom: 0.6rem;
}

/* ==========================================================================
   Como funciona
   ========================================================================== */

.steps {
  list-style: none;
  display: grid;
}

.step {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: var(--gap-item);
  align-items: center;
  padding-block: 1.25rem;
  border-top: 1px solid var(--border-card);
}

@media (min-width: 56.25rem) {
  .step {
    grid-template-columns: 5rem 1fr;
  }
}

.step-number {
  font-family: var(--font-primary);
  font-size: 2rem;
  line-height: 1;
  color: var(--text-accent);
}

@media (min-width: 56.25rem) {
  .step-number {
    font-size: 3rem;
  }
}

/* ==========================================================================
   Rodapé "botão + nota" (reutilizado em "como funciona" e na oferta final):
   empilha no mobile, botão + texto lado a lado a partir de 600px.
   ========================================================================== */

.note-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-close-gap);
  padding-top: 1.5rem;
}

@media (min-width: 37.5rem) {
  .note-footer {
    flex-direction: row;
    align-items: center;
  }
}

.note-footer-cta {
  width: 100%;
}

@media (min-width: 37.5rem) {
  .note-footer-cta {
    width: auto;
  }
}

/* Verde do WhatsApp: mesmo tratamento da barra fixa, agora também aqui —
   exceção deliberada ao sistema ink/gold/paper (ver Camada 1). */
.note-footer-cta {
  background-color: var(--whatsapp-teal);
  color: var(--paper-000);
}

.note-footer-cta:hover {
  background-color: var(--whatsapp-teal-hover);
}

.note-footer-cta:active {
  background-color: var(--whatsapp-teal-active);
  filter: none;
}

.note-footer-note {
  font-weight: var(--fw-medium);
  font-size: var(--fs-body-sm);
  line-height: 1.5;
  color: var(--text-secondary);
}

/* ==========================================================================
   Autoridade
   ========================================================================== */

.authority-inner {
  display: grid;
  gap: var(--space-4);
  align-items: start;
}

.authority-photo {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 5 / 6;
  margin-inline: auto;
  border-radius: var(--radius-md);
  object-fit: cover;
  object-position: top center;
}

.authority-name {
  font-family: var(--font-primary);
  font-size: 1.3rem;
  margin-bottom: var(--space-2);
}

.authority-highlight {
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  font-weight: var(--fw-bold);
  margin-bottom: 0.4rem;
}

.authority-bio {
  max-width: 40rem;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  margin-bottom: 0.6rem;
}

.authority-personal,
.authority-formation {
  max-width: 40rem;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  margin-bottom: 0.6rem;
  color: var(--text-secondary);
}

.authority-formation {
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body-sm);
}

.authority-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: var(--space-3);
}

@media (min-width: 56.25rem) {
  .authority-inner {
    grid-template-columns: 38% 1fr;
  }

  .authority-photo {
    max-width: none;
    aspect-ratio: 4 / 5;
    margin-inline: 0;
  }
}

/* Revelação única no pico de confiança da página — só ativado via JS
   (.will-animate); sem script a foto já aparece normalmente. */
.authority-photo.will-animate {
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.authority-photo.will-animate.is-inview {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .authority-photo.will-animate {
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Transformação
   ========================================================================== */

.transformation-grid {
  display: grid;
  gap: var(--gap-block);
  margin-top: var(--sp-lead-to-content);
}

@media (min-width: 75rem) {
  .transformation-grid {
    gap: var(--gap-block-lg);
  }
}

.transformation-card {
  padding: var(--space-4);
  border-radius: var(--radius-md);
}

.transformation-card p:last-child {
  max-width: 34ch;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

.transformation-label {
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--fs-eyebrow);
  line-height: var(--lh-eyebrow);
  margin-bottom: 0.5rem;
}

.transformation-card--before {
  background-color: var(--surface-card);
  border: 1px solid var(--border-card);
}

/* .surface--inverse é aplicada também nesta carta (ver index.html) para que
   os tokens semânticos dos filhos (label em --text-accent) resolvam sozinhos. */
.transformation-card--after {
  background-color: var(--surface-card);
}

.transformation-card--after .transformation-label {
  color: var(--text-accent);
}

@media (min-width: 56.25rem) {
  .transformation-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ==========================================================================
   FAQ
   ========================================================================== */

/* Coluna estreita centralizada no desktop, mesmo padrão do checklist;
   pergunta/resposta permanecem à esquerda dentro de cada item. */
@media (min-width: 56.25rem) {
  .faq h2 {
    text-align: center;
    margin-inline: auto;
  }

  .faq-list {
    margin-inline: auto;
  }

  .faq .section-close {
    align-items: center;
    text-align: center;
    margin-inline: auto;
  }
}

.faq-list {
  display: grid;
  gap: var(--gap-item);
  max-width: 48rem;
  margin-top: var(--sp-lead-to-content);
}

.faq-item {
  background-color: var(--surface-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.25rem;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  min-height: 48px;
}

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

.faq-item summary::marker {
  content: "";
}

.faq-item summary::after {
  content: "";
  flex: none;
  width: 0.75rem;
  height: 0.75rem;
  border-right: 2px solid var(--text-primary);
  border-bottom: 2px solid var(--text-primary);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-top: -0.2rem;
}

.faq-item[open] summary::after {
  transform: rotate(225deg);
  margin-top: 0.2rem;
}

/* Sobrescreve o snap nativo do <details> (display:none) por uma transição
   de altura de fato — o conteúdo continua sempre presente no DOM/acessível,
   só a apresentação visual passa a ser gradual. */
.faq-item p {
  display: grid;
  grid-template-rows: 0fr;
  margin-top: 0;
  padding-top: 0;
  border-top: 0 solid var(--border-card);
  overflow: hidden;
  opacity: 0;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  transition: grid-template-rows 0.35s cubic-bezier(0.16, 1, 0.3, 1), margin-top 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding-top 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-top-width 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.faq-item[open] p {
  grid-template-rows: 1fr;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top-width: 1px;
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .faq-item summary::after,
  .faq-item p {
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Oferta final
   ========================================================================== */

.stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-block);
  padding-block: 1.25rem;
  border-top: 1px solid var(--border-card);
  border-bottom: 1px solid var(--border-card);
}

.stat {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.stat-number {
  flex: none;
  font-family: var(--font-primary);
  font-size: 2.25rem;
  line-height: 1;
  color: var(--text-accent);
}

@media (min-width: 56.25rem) {
  .stat-number {
    font-size: 2.75rem;
  }
}

.stat-label {
  font-size: var(--fs-body-sm);
  line-height: 1.4;
  color: var(--text-secondary);
  padding-top: 0.3rem;
}

.final-cta-lead {
  max-width: 46rem;
  margin-top: 1.25rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Rodapé
   ========================================================================== */

.site-footer {
  padding-block: var(--space-5);
  border-top: 1px solid var(--border-subtle);
}

.site-footer .logo {
  margin-bottom: var(--space-2);
}

.footer-legal {
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body-sm);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.footer-legal a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
  color: var(--text-primary);
}

.footer-links a {
  text-decoration: underline;
  font-size: var(--fs-body-sm);
  display: inline-flex;
  align-items: center;
  min-height: 48px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-3);
  margin-bottom: var(--space-1);
}

.footer-nav a {
  font-size: var(--fs-body-sm);
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.footer-disclaimer {
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body-sm);
  color: var(--text-secondary);
  max-width: 46rem;
  margin-bottom: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   CTA fixo (mobile)
   ========================================================================== */

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  height: 68px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background-color: var(--surface-inverse);
  border-top: 1px solid var(--text-on-inverse-accent);
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.25s cubic-bezier(0, 0, 0.2, 1), opacity 0.25s ease;
}

.sticky-cta.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.sticky-cta .btn-whatsapp--sticky {
  width: 100%;
  min-height: 48px;
  container-type: inline-size;
  background-color: var(--whatsapp-teal);
  color: var(--paper-000);
}

.sticky-cta .btn-whatsapp--sticky:hover {
  background-color: var(--whatsapp-teal-hover);
}

.sticky-cta .btn-whatsapp--sticky:active {
  background-color: var(--whatsapp-teal-active);
  filter: none;
}

.sticky-cta .btn-whatsapp--sticky:focus-visible {
  outline: 3px solid rgb(var(--whatsapp-teal-rgb) / 0.4);
  outline-offset: 3px;
}

.sticky-cta .btn-whatsapp--sticky span {
  white-space: nowrap;
}

@supports (width: 1cqw) {
  .sticky-cta .btn-whatsapp--sticky {
    font-size: clamp(0.75rem, 7cqw, 1rem);
  }
}

body.has-sticky-cta {
  padding-bottom: 68px;
}

/* ==========================================================================
   WhatsApp flutuante (desktop) — equivalente à barra fixa do mobile;
   verde do WhatsApp, mesma exceção deliberada ao sistema ink/gold/paper.
   ========================================================================== */

.floating-whatsapp {
  display: none;
}

@media (min-width: 56.25rem) {
  .floating-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    right: var(--space-3);
    bottom: var(--space-3);
    z-index: 30;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--whatsapp-teal);
    color: var(--paper-000);
    box-shadow: 0 10px 24px -8px rgb(var(--ink-900-rgb) / 0.4);
    transform: translateY(16px) scale(0.9);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s cubic-bezier(0, 0, 0.2, 1), opacity 0.25s ease, background-color 0.15s ease;
  }

  .floating-whatsapp.is-visible {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
  }

  .floating-whatsapp:hover {
    background-color: var(--whatsapp-teal-hover);
  }

  .floating-whatsapp:active {
    background-color: var(--whatsapp-teal-active);
  }

  .floating-whatsapp:focus-visible {
    outline: 3px solid rgb(var(--whatsapp-teal-rgb) / 0.4);
    outline-offset: 3px;
  }

  .floating-whatsapp .icon {
    width: 30px;
    height: 30px;
  }
}

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

  body.has-sticky-cta {
    padding-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sticky-cta,
  .floating-whatsapp,
  .site-header,
  .btn,
  .skip-link {
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Política de Privacidade — página de conteúdo corrido, escopada à parte
   porque usa h1/h2/p soltos, sem os componentes de seção do resto do site.
   ========================================================================== */

/* Cabeçalho e rodapé ficam fora da área de rolagem: a página em si não
   rola, só o painel de conteúdo entre eles. */
body.legal-page {
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body.legal-page .site-header {
  flex: none;
  position: static; /* já não precisa de sticky: está fora do painel que rola */
}

.legal-scroll {
  flex: 1;
  min-height: 0; /* permite que o painel encolha e ganhe scroll próprio dentro do flex */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.legal-content {
  max-width: 60rem;
  padding-block: var(--space-5);
}

.legal-content h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
}

.legal-content h2 {
  font-size: var(--fs-h2-apoio);
  line-height: var(--lh-h2-apoio);
  max-width: none;
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
}

.legal-content p {
  margin-bottom: var(--space-2);
  color: var(--text-secondary);
}

.legal-content p:first-of-type {
  color: var(--text-primary);
}

.legal-content a {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* Desktop: item de flex normal entre header e painel — já fica sempre
   visível só por estar fora da área que rola, sem precisar de position:fixed. */
.legal-back {
  flex: none;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: var(--space-2) var(--space-3);
  padding-inline: 1.25rem;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  font-weight: var(--fw-semibold);
  text-decoration: none !important;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.legal-back:hover {
  background-color: var(--surface-card);
  border-color: var(--text-primary);
}

/* Mobile: sai do fluxo e vira barra fixa no rodapé da tela, sempre alcançável
   pelo polegar — mesmo padrão de fixação da barra de WhatsApp da home. */
@media (max-width: 56.1875rem) {
  .legal-back {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 25;
    width: 100%;
    min-height: 56px;
    margin: 0;
    border-radius: 0;
    border: none;
    border-top: 1px solid var(--border-card);
    background-color: var(--surface-default);
  }

  .legal-content {
    padding-bottom: 88px; /* libera espaço pra barra fixa não cobrir o fim do texto */
  }
}
