/* Sendfield — site institucional.
   Paleta espelha a paleta "azul" do app (app/src/styles/theme.js) e a faixa escura da WelcomeScreen.
   Tipografia: Archivo (única família), carregada por <link> nos HTML.
   Breakpoints: 1000 (grades), 860 (menu, rodapé, duas colunas), 720 (cartões em 1 coluna, passos, sobre),
   560 (celular), 480 (cabeçalho compacto). Hover com movimento e rolagem suave só em
   prefers-reduced-motion: no-preference. */

:root {
  /* Paleta "azul" — ver lightColorsBlue em app/src/styles/theme.js */
  --primary: #0057FF;
  --secondary: #D6E4F0;
  --primary-dark: #003FBF;
  --highlight: #FFF275;

  --bg: #F8F7F4;
  --card-bg: #FFFFFF;
  --text: #4A4A4A;
  --text-light: #6E6E6E;
  --border: #E0DDD9;
  --border-light: #F0EDE9;

  /* Faixa do herói — HERO_GRADIENT_BY_PALETTE.azul em WelcomeScreen.js */
  --hero-1: #163a7a;
  --hero-2: #0c1c42;
  --hero-3: #080b18;
  --hero-text: #F8F7F4;

  --serif: 'Instrument Serif', Georgia, serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 2px 8px rgba(10, 15, 30, 0.06);
  --shadow-md: 0 8px 24px rgba(10, 15, 30, 0.08);
}

* { box-sizing: border-box; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.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;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
main p a:not(.btn), main li a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* Anel de foco visível em todo elemento interativo. Nos fundos escuros (herói, rodapé, banner de CTA)
   usa o amarelo --highlight: azul sobre azul-marinho não teria contraste suficiente. */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.hero-band :focus-visible,
.site-footer :focus-visible,
.cta-banner :focus-visible {
  outline-color: var(--highlight);
}

/* Link "Pular para o conteúdo": só aparece no foco do teclado. */
.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 100;
  background: var(--primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus { top: 12px; text-decoration: none; }
main:focus { outline: none; }

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
@media print {
  .js .reveal { opacity: 1; transform: none; }
}

h1, h2, h3 {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  letter-spacing: -0.2px;
  line-height: 1.2;
  text-wrap: balance;
  margin: 0 0 16px;
  color: var(--text);
}
h1 { font-size: 40px; line-height: 1.1; }
h2 { font-size: 38px; margin-bottom: 12px; }
/* Títulos de h1/h2 em serifa (Instrument Serif, só peso 400); páginas legais seguem em Archivo. */
body:not(.doc-page) :is(h1, h2) { font-family: var(--serif); font-weight: 400; letter-spacing: -0.5px; line-height: 1.1; }
h3 { font-size: 22px; }
p { margin: 0 0 16px; text-wrap: pretty; }

.eyebrow {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
  display: block;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 247, 244, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 72px;
}
/* Itens do menu + CTA ficam à direita da marca; o CTA nunca some (inclusive no mobile, fora do menu recolhido). */
.site-nav { margin-left: auto; }
.site-header .header-cta {
  padding: 8px 18px;
  min-height: 44px;
  font-size: 14px;
  white-space: nowrap;
}
section[id] { scroll-margin-top: 88px; }
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand-logo { width: 30px; height: 42px; object-fit: contain; }
.brand-name {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a {
  color: var(--text-light);
  font-size: 15px;
  font-weight: 500;
}
.site-nav a:hover { color: var(--primary); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--primary); font-weight: 600; }
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 44px;
  height: 44px;
  color: var(--text);
  cursor: pointer;
}
.nav-toggle svg { width: 18px; height: 18px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle.open .icon-open { display: none; }
.nav-toggle.open .icon-close { display: block; }

@media (max-width: 860px) {
  .site-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-light);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 16px;
    box-shadow: var(--shadow-md);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
  }
  .site-nav.open { visibility: visible; opacity: 1; transform: none; }
  @media (prefers-reduced-motion: no-preference) {
    .site-nav { transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s; }
  }
  .site-nav a { width: 100%; padding: 10px 0; }
  .nav-toggle { display: flex; }
  .site-header .header-cta { margin-left: auto; }
}
/* Telas pequenas: marca, CTA e botão do menu cabem na mesma linha (360 px). */
@media (max-width: 480px) {
  .header-inner { gap: 10px; }
  .brand { gap: 8px; }
  .brand-name { font-size: 13px; letter-spacing: 0.3px; }
  .site-header .header-cta { padding: 8px 12px; font-size: 13px; }
}
@media (max-width: 339px) {
  .brand-name { display: none; }
}

/* ---------- Hero ---------- */
.hero-band {
  background: linear-gradient(160deg, var(--hero-1), var(--hero-2) 55%, var(--hero-3));
  padding: 72px 0 120px;
  text-align: center;
  position: relative;
  overflow: hidden;
  /* Força um contexto de composição próprio — sem isso, o clip do
     overflow:hidden às vezes não é aplicado no primeiro paint quando o
     canvas WebGL com mask-image é maior que o .hero-band (visto em
     Chromium: o canvas "vaza" por uma captura/frame antes de corrigir). */
  isolation: isolate;
}
/* Raios de luz do herói — porte em WebGL puro do componente "Light Rays"
   do spell.sh (shader e uniforms copiados da fonte publicada em
   spell.sh/r/light-rays.json; ver site/js/light-rays.js). */
/* Altura fixa (não 100% do herói) de propósito: o shader atenua os raios
   proporcionalmente à altura do próprio canvas, igual no demo original do
   spell.sh (caixa de ~500px/350px). Nosso .hero-band é bem mais alto que
   isso — esticar o canvas pro tamanho inteiro fazia a mesma matemática
   "lavar" uma área proporcionalmente enorme da faixa em azul. */
.light-rays-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 480px;
  display: block;
  pointer-events: none;
  z-index: 0;
  /* Fundo quase-preto igual ao demo original (lá é backgroundColor="#000"
     atrás do canvas) — sem isso os raios ficam alfa-compostos sobre o azul
     já claro do degradê do herói, e tudo lê como "lavado" em vez de
     raios de luz contra fundo escuro. Máscara esmaece o canvas antes do
     fim pra emendar sem costura visível no degradê do .hero-band por trás. */
  background: var(--hero-3);
  /* Nasce transparente: sem WebGL (ou antes do 1º frame) o degradê azul do
     .hero-band aparece em vez de um bloco preto. light-rays.js põe .is-ready
     depois do primeiro desenho. */
  opacity: 0;
  transition: opacity 0.4s ease;
  -webkit-mask-image: linear-gradient(to bottom, black 65%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 65%, transparent 100%);
}
.light-rays-canvas.is-ready { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .light-rays-canvas { transition: none; }
}
.hero-band .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-band h1 {
  color: var(--hero-text);
  font-size: 60px;
  margin-bottom: 10px;
}
.hero-band h1 { max-width: 760px; }
/* Lema da marca: as três palavras-chave no amarelo de destaque. */
.hero-motto {
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  line-height: 1.2;
  color: var(--hero-text);
  margin: 4px 0 16px;
}
.hero-motto span { color: var(--highlight); }
/* Sobre: faixa mais baixa que a da home. */
.hero-band--compact { padding: 56px 0 96px; }
.hero-band--compact h1 { font-size: 48px; }
/* Versículo sobre os raios: fundo escuro translúcido garante contraste >= 4,5:1 mesmo no ponto
   mais claro da animação (pior caso medido ~6,8:1), sem mudar o visual dos raios em volta. */
.hero-verse {
  font-family: 'Archivo', sans-serif;
  font-style: italic;
  color: #F8F7F4;
  max-width: 520px;
  font-size: 18px;
  line-height: 1.5;
  margin: 36px 0 0;
  padding: 18px 8px 0;
  border-top: 1px solid rgba(248, 247, 244, 0.22);
  background: radial-gradient(ellipse at 50% 100%, rgba(8, 11, 24, 0.55), rgba(8, 11, 24, 0) 75%);
}
.hero-verse p { margin: 0 0 6px; color: inherit; }
.hero-verse cite {
  display: block;
  font-style: normal;
  font-size: 14px;
  letter-spacing: 0.3px;
  color: rgba(248, 247, 244, 0.92);
}
@media (max-width: 560px) {
  .hero-band h1 { font-size: 40px; }
  .hero-band--compact h1 { font-size: 36px; }
  h2 { font-size: 32px; }
  .hero-motto { font-size: 24px; }
  .hero-band { padding: 48px 0 96px; }
  .hero-verse { font-size: 16px; margin-top: 28px; }
}
.hero-lede {
  color: rgba(248, 247, 244, 0.92);
  max-width: 560px;
  font-size: 17px;
  margin-bottom: 8px;
}

.button-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 12px;
}

/* Botões: cantos pouco arredondados, borda definida, sombra sutil no primário e leve elevação no hover/active. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.1px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; }
@media (prefers-reduced-motion: no-preference) {
  .btn:hover { transform: translateY(-1px); }
  .btn:active { transform: translateY(0); }
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  /* Sombra neutra (preta, baixa opacidade), não um brilho colorido na cor do botão. */
  box-shadow: 0 1px 2px rgba(8, 11, 24, 0.1), 0 4px 8px rgba(8, 11, 24, 0.16);
}
.btn-primary:hover { background: #0047d1; box-shadow: 0 2px 4px rgba(8, 11, 24, 0.12), 0 6px 14px rgba(8, 11, 24, 0.2); }
.btn-primary:active { box-shadow: 0 1px 2px rgba(8, 11, 24, 0.1), 0 2px 4px rgba(8, 11, 24, 0.14); }
.btn-outline {
  background: transparent;
  border-color: rgba(248, 247, 244, 0.5);
  color: var(--hero-text);
}
.btn-outline:hover { background: rgba(248, 247, 244, 0.12); border-color: rgba(248, 247, 244, 0.7); }

/* Cartão que sobrepõe a faixa do herói — mesma composição da WelcomeScreen
   (card com overlap negativo sobre o gradiente escuro). */
.overlap-card {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  margin: -72px auto 0;
  max-width: 1032px;
  padding: 48px 40px;
  position: relative;
  z-index: 2;
}

/* ---------- O problema (home) ---------- */
.problem-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 28px; }
.problem-cols--3 { grid-template-columns: repeat(3, 1fr); margin-bottom: 0; }
.problem-col { border-top: 2px solid var(--primary); padding-top: 24px; }
.problem-col h3 { font-size: 22px; margin-bottom: 8px; }
.problem-col p { color: var(--text-light); margin-bottom: 0; }
.problem-band {
  background: linear-gradient(135deg, var(--hero-1), var(--hero-2));
  border-radius: var(--radius-lg);
  padding: 28px 32px;
}
.problem-band .eyebrow { color: var(--highlight); }
.problem-band p { color: var(--hero-text); font-size: 18px; line-height: 1.5; margin: 0; }
.problem-note { max-width: 62ch; margin: 28px auto 0; text-align: center; color: var(--text-light); font-size: 15px; }
@media (max-width: 720px) {
  .problem-cols { grid-template-columns: 1fr; gap: 24px; }
  .problem-band { padding: 22px 20px; }
}

/* ---------- O objetivo (home): faixa escura de ponta a ponta ---------- */
.objective {
  background: linear-gradient(160deg, var(--hero-1), var(--hero-2) 55%, var(--hero-3));
  color: var(--hero-text);
  margin-top: 72px;
}
.objective .eyebrow { color: var(--highlight); }
.objective-head { max-width: 760px; margin-bottom: 48px; }
.objective-head h2 { color: var(--hero-text); font-size: 44px; margin-bottom: 16px; }
.objective-lead { font-family: var(--serif); font-style: italic; font-size: 26px; line-height: 1.3; color: rgba(248, 247, 244, 0.92); margin: 0; }
.objective-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.objective-col { border-top: 2px solid rgba(248, 247, 244, 0.45); padding-top: 24px; }
.objective-col h3 { font-family: var(--serif); font-weight: 400; font-size: 32px; color: var(--highlight); margin-bottom: 8px; }
.objective-col p { color: rgba(248, 247, 244, 0.88); margin: 0; }
@media (max-width: 720px) {
  .objective { margin-top: 48px; }
  .objective-head h2 { font-size: 34px; }
  .objective-lead { font-size: 22px; }
  .objective-cols { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Confiança e Taxa Sustentável (home) ---------- */
.trust-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 32px;
}
.trust-card h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; margin-bottom: 16px; }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { position: relative; padding-left: 36px; margin-bottom: 14px; color: var(--text-light); }
.check-list li:last-child { margin-bottom: 0; }
.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--secondary);
}
.check-list li::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 7px;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg);
}
.trust-note { text-align: center; color: var(--text-light); font-size: 15px; margin: 28px 0 0; }
#confianca .two-col { gap: 32px; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-tight { padding: 40px 0; }
.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head p { color: var(--text-light); }
.section-head--tight { margin-bottom: 32px; }

/* 3 colunas só quando cada card passa de ~290 px (acima de 1000 px); em tablet 2 colunas com o 3º
   card ocupando a linha toda; no celular 1 coluna com padding enxuto (o padding aninhado
   overlap-card + card deixava o texto com ~60% da largura). */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1000px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid > .card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .card-grid { grid-template-columns: 1fr; gap: 16px; }
  .overlap-card { padding: 28px 16px; margin-top: -56px; border-radius: var(--radius-lg); }
  .card { padding: 20px; }
}
.card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--secondary);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.card .icon svg { width: 22px; height: 22px; }
.card .card-index {
  position: absolute;
  top: 22px;
  right: 24px;
  font-family: 'Archivo', sans-serif;
  font-style: italic;
  font-size: 26px;
  color: #7B8497; /* decorativo (aria-hidden); >= 3:1 sobre branco */
}
.card h3 { margin-bottom: 8px; font-size: 20px; }
.card p { color: var(--text-light); margin-bottom: 0; font-size: 15px; }

/* ---------- Linha do tempo (Como funciona) ---------- */
.steps {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  margin-bottom: 52px;
}
.steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 6%;
  right: 6%;
  height: 1px;
  background: var(--border);
  z-index: 0;
}
.step {
  position: relative;
  z-index: 1;
  flex: 1;
  text-align: center;
  padding: 0 10px;
}
.step-num {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  margin: 0 auto 16px;
  box-shadow: 0 0 0 6px var(--bg);
}
.step h3 {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 6px;
  color: var(--text);
}
.step p { font-size: 15.5px; line-height: 1.55; color: var(--text-light); margin-bottom: 0; }
@media (max-width: 720px) {
  .steps { flex-direction: column; gap: 28px; }
  .steps::before { display: none; }
  .step-num { box-shadow: none; }
}

/* ---------- FAQ (acordeão nativo) ---------- */
.faq { max-width: 720px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border-light);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 2px;
  font-weight: 600;
  color: var(--text);
  font-size: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--primary); }
@media (prefers-reduced-motion: no-preference) {
  .faq { interpolate-size: allow-keywords; }
  .faq-item::details-content {
    height: 0;
    overflow: hidden;
    transition: height 0.25s ease, content-visibility 0.25s allow-discrete;
  }
  .faq-item[open]::details-content { height: auto; }
}
.faq-item summary .plus {
  position: relative;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}
.faq-item summary .plus::before,
.faq-item summary .plus::after {
  content: '';
  position: absolute;
  background: var(--primary);
  border-radius: 2px;
}
.faq-item summary .plus::before { top: 9px; left: 1px; right: 1px; height: 2px; }
.faq-item summary .plus::after {
  left: 9px;
  top: 1px;
  bottom: 1px;
  width: 2px;
  transition: transform 0.2s ease;
}
.faq-item[open] summary .plus::after { transform: scaleY(0); }
.faq-item p {
  margin: 0;
  padding: 0 28px 20px 2px;
  color: var(--text-light);
  font-size: 15px;
}

/* ---------- Banner de CTA ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--hero-1), var(--hero-2));
  border-radius: var(--radius-xl);
  padding: 56px 40px;
  text-align: center;
}
.cta-banner h2 { color: var(--hero-text); margin-bottom: 10px; }
.cta-banner p {
  color: rgba(248, 247, 244, 0.8);
  max-width: 480px;
  margin: 0 auto 28px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  /* stretch: os dois cartões ficam com a mesma altura. */
  align-items: stretch;
}
@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; }
}

.role-card {
  background: var(--secondary);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.role-card h3 { color: var(--primary-dark); }
.role-card ul { margin: 0; padding-left: 18px; color: var(--text); }
.role-card li { margin-bottom: 6px; }

/* Cartão institucional (CNPJ) */
.legal-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.legal-card h2 { font-size: 24px; }
.legal-card p { max-width: 68ch; }
.legal-card p:last-child { margin-bottom: 0; }

/* ---------- Legal pages (termos/privacidade) ---------- */
.container-doc {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}
.doc-top { padding-top: 56px; }
/* Título e meta na mesma coluna (720 px) do texto. */
.doc-intro { max-width: 720px; margin: 0 auto; }
.doc-meta {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 40px;
}
.doc-page section {
  padding: 0 0 36px;
}
.doc-page h2 { font-size: 22px; font-weight: 700; }
/* Links diretos (termos#taxa) não ficam atrás do cabeçalho fixo: já coberto por section[id] { scroll-margin-top }. */
/* Escopado a "main": fora dele a regra vazaria para o rodapé escuro e derrubaria o contraste do texto claro. */
.doc-page main p, .doc-page main li { color: var(--text); font-size: 16px; line-height: 1.7; }
.doc-page ul { padding-left: 20px; }
.doc-page li + li { margin-top: 6px; }

/* Texto corrido em coluna única, sem sumário lateral. */
.doc-layout { max-width: 720px; margin: 0 auto; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--hero-3);
  color: rgba(248, 247, 244, 0.72);
  padding: 56px 0 48px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 1fr 0.9fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(248, 247, 244, 0.12);
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
.footer-brand { display: flex; align-items: flex-start; gap: 12px; }
.footer-logo {
  width: 26px;
  height: 36px;
  box-sizing: content-box;
  padding: 6px;
  object-fit: contain;
  background: var(--hero-text);
  border-radius: 10px;
}
.footer-brand-name {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--hero-text);
  font-size: 15px;
  margin-bottom: 6px;
}
.footer-verse {
  font-family: 'Archivo', sans-serif;
  font-style: italic;
  font-size: 14px;
  color: rgba(248, 247, 244, 0.55);
  max-width: 260px;
  line-height: 1.5;
}
/* Rótulos do rodapé usam <p>, não <h4>: um <h4> aqui criaria um salto de nível no esboço da página. */
.site-footer .footer-heading {
  color: var(--hero-text);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
  margin: 0 0 14px;
  font-family: 'Archivo', sans-serif;
}
.site-footer a { color: rgba(248, 247, 244, 0.72); }
.site-footer a:hover { color: var(--hero-text); }
.footer-legal p { margin: 0 0 8px; font-size: 14.5px; }
/* Mesmo recuo vertical dos links (padding 9px) das outras colunas. */
.footer-legal p:not(.footer-heading) { padding-top: 9px; }
.footer-contact p { margin: 0; font-size: 16px; }
.footer-contact { display: flex; flex-direction: column; }
.footer-links { display: flex; flex-direction: column; gap: 0; }
.footer-contact a,
.footer-links a {
  display: inline-block;
  padding: 9px 0;
  font-size: 16px;
}

/* Botão flutuante do WhatsApp: contato direto de qualquer página (os demais contatos ficam no rodapé).
   O HTML vem do partial footer.html (ambiente-teste/site-build); main.js só alterna a visibilidade. */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(8, 11, 24, 0.24), 0 2px 4px rgba(8, 11, 24, 0.16);
  z-index: 60;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, visibility 0.2s;
}
.whatsapp-float:hover { box-shadow: 0 6px 18px rgba(8, 11, 24, 0.28), 0 3px 6px rgba(8, 11, 24, 0.18); }
@media (prefers-reduced-motion: no-preference) {
  .whatsapp-float:hover { transform: translateY(-2px) scale(1.04); }
}
/* Sem JS o botão fica sempre visível (js-flag.js marca <html class="js">); com JS ele só aparece depois
   de rolar e some quando o rodapé entra na tela (main.js). Nas páginas legais não aparece. */
.doc-page .whatsapp-wrap { display: none; }
.js .whatsapp-float.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
}
.whatsapp-float svg { width: 28px; height: 28px; }
@media (max-width: 560px) {
  .whatsapp-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .whatsapp-float svg { width: 26px; height: 26px; }
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 24px;
  font-size: 13px;
  /* 0.6 mede ~6,85:1 sobre --hero-3 (0.45 ficava em ~4,27:1, abaixo do AA). */
  color: rgba(248, 247, 244, 0.6);
}

/* ---------- Sobre: texto + árvore da marca ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 40px;
  align-items: center;
}
.brand-tree { margin: 0; text-align: center; }
.brand-tree img { width: 162px; height: auto; margin: 0 auto 8px; }
.brand-tree figcaption { font-size: 13px; color: var(--text-light); font-style: italic; }
.about-text p { max-width: 68ch; }
@media (max-width: 720px) {
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .brand-tree { order: -1; }
  .brand-tree img { width: 120px; }
}

/* ---------- Impressão / PDF ---------- */
@media print {
  .site-header, .skip-link, .whatsapp-wrap, .light-rays-canvas, .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .doc-page main p, .doc-page main li { color: #000; font-size: 11pt; line-height: 1.5; }
  .site-footer { background: none; color: #000; padding: 16px 0 0; }
  .site-footer a, .footer-verse, .footer-bottom { color: #000; }
  .footer-logo, .footer-verse { display: none; }
  main a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; }
  h2 { break-after: avoid; }
  .doc-page section { break-inside: avoid; padding-bottom: 14pt; }
}
