/* =========================================================
   17.111 — Páginas institucionais (Ajuda, Termos, Privacidade)
   Mesma linguagem da landing: creme, verde Vistal, sol, Bricolage + Inter.
   ========================================================= */
:root {
  --fundo: #F7F6F1; --fundo-2: #EFEDE5; --cartao: #FFFFFF; --linha: #E3E0D6; --linha-2: #ECE9E0;
  --verde: #2f5d4e; --verde-esc: #163d32; --verde-noite: #1e3630; --verde-claro: #3d6e5e;
  --sol: #d2a24c; --sol-fundo: rgba(210,162,76,.14);
  --tinta: #16231d; --cinza: #5b6a62; --cinza-2: #7d8a83;
  --display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --sombra-1: 0 1px 2px rgba(16,37,30,.05), 0 1px 1px rgba(16,37,30,.03);
  --sombra-2: 0 24px 60px -28px rgba(16,37,30,.25), 0 8px 20px -14px rgba(16,37,30,.12);
  --raio: 16px;
}
[data-tema="escuro"] {
  --fundo: #0f1814; --fundo-2: #131f1a; --cartao: #16221d; --linha: #24332c; --linha-2: #1d2a24;
  --verde: #8fb8a2; --verde-esc: #a3c6b2; --verde-claro: #8fb8a2;
  --tinta: #e9ebe5; --cinza: #9fb0a6; --cinza-2: #7f9187;
  --sol-fundo: rgba(210,162,76,.12);
  --sombra-1: 0 1px 2px rgba(0,0,0,.3);
  --sombra-2: 0 30px 70px -30px rgba(0,0,0,.7), 0 10px 24px -14px rgba(0,0,0,.5);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif; background: var(--fundo); color: var(--tinta);
  line-height: 1.6; -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01";
}
::selection { background: rgba(210,162,76,.38); }
:focus-visible { outline: 2.5px solid var(--sol); outline-offset: 2px; border-radius: 6px; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.pular { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--verde); color: #fff;
  padding: .5rem .9rem; border-radius: 8px; text-decoration: none; }
.pular:focus { left: 12px; }

/* ---------- botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 1px solid transparent;
  border-radius: 999px; cursor: pointer; font-family: inherit; font-weight: 600; font-size: .9rem; line-height: 1; padding: .68rem 1.1rem;
  text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, transform .08s; }
.btn:active { transform: scale(.98); }
.btn-verde { background: var(--verde); color: #fff; }
.btn-verde:hover { background: var(--verde-esc); }
[data-tema="escuro"] .btn-verde { color: #0c1612; }
.btn-ghost { background: var(--cartao); color: var(--tinta); border-color: var(--linha); }
.btn-ghost:hover { border-color: #cfcabb; }
[data-tema="escuro"] .btn-ghost:hover { border-color: #3a4d43; }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- topo ---------- */
.topo { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--fundo) 84%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  transition: border-color .2s; }
.topo.rolou { border-bottom-color: var(--linha); }
.topo-in { max-width: 1160px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 24px; }
.marca { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--tinta);
  font: 700 1.08rem/1 var(--display); letter-spacing: -.01em; }
.marca img { border-radius: 24%; }
.marca b { color: var(--sol); font-weight: 700; }
.topo-links { display: flex; gap: 4px; margin-left: 12px; }
.topo-links a { text-decoration: none; color: var(--cinza); font-size: .9rem; font-weight: 500; padding: .45rem .75rem;
  border-radius: 999px; transition: color .15s, background .15s; }
.topo-links a:hover { color: var(--tinta); background: var(--fundo-2); }
.topo-links a[aria-current="page"] { color: var(--tinta); background: var(--cartao); box-shadow: var(--sombra-1);
  border: 1px solid var(--linha); }
.topo-acoes { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.btn-tema { width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--linha); background: var(--cartao);
  color: var(--tinta); cursor: pointer; display: grid; place-items: center; }
.btn-tema svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.btn-tema .ic-sol, [data-tema="escuro"] .btn-tema .ic-lua { display: none; }
[data-tema="escuro"] .btn-tema .ic-sol { display: block; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--linha);
  background:
    radial-gradient(900px 340px at 85% -10%, rgba(210,162,76,.16), transparent 60%),
    radial-gradient(700px 300px at 0% 0%, rgba(47,122,99,.10), transparent 60%),
    var(--fundo); }
.hero-in { max-width: 1160px; margin: 0 auto; padding: 64px 24px 56px; }
.sobretitulo { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--verde); margin-bottom: 14px; }
.sobretitulo::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--sol); }
.hero h1 { font: 800 clamp(2.1rem, 4.6vw, 3.4rem)/1.04 var(--display); letter-spacing: -.035em; max-width: 18ch; }
.hero .lead { margin-top: 16px; font-size: 1.1rem; color: var(--cinza); max-width: 62ch; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 500; color: var(--cinza);
  background: var(--cartao); border: 1px solid var(--linha); padding: .38rem .75rem; border-radius: 999px; }
.chip svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- corpo ---------- */
.corpo { max-width: 1160px; margin: 0 auto; padding: 48px 24px 88px; }

/* documento legal: índice fixo ao lado + texto */
.doc { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; align-items: start; }
.indice-lat { position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow: auto; padding-right: 4px; }
.indice-lat b { display: block; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--cinza-2);
  margin-bottom: 10px; }
.indice-lat ol { list-style: none; border-left: 1px solid var(--linha); }
.indice-lat a { display: block; text-decoration: none; font-size: .86rem; line-height: 1.35; color: var(--cinza);
  padding: .42rem 0 .42rem 14px; margin-left: -1px; border-left: 2px solid transparent; transition: color .15s, border-color .15s; }
.indice-lat a:hover { color: var(--tinta); }
.indice-lat a.ativo { color: var(--verde); border-left-color: var(--verde); font-weight: 600; }
.doc-acoes { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.doc-acoes .btn { justify-content: flex-start; font-size: .84rem; padding: .55rem .9rem; }

.doc-texto { max-width: 760px; }
.resumo { background: var(--cartao); border: 1px solid var(--linha); border-radius: var(--raio); padding: 24px 26px;
  box-shadow: var(--sombra-1); margin-bottom: 44px; position: relative; overflow: hidden; }
.resumo::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--sol); }
.doc-texto .resumo h2 { font: 700 1.05rem/1.3 var(--display); margin: 0 0 4px; padding: 0; border: 0; }
.resumo .resumo-nota { font-size: .82rem; color: var(--cinza-2); margin-bottom: 14px; }
.doc-texto .resumo ul { list-style: none; margin: 0; display: grid; gap: 10px; }
.doc-texto .resumo li { position: relative; padding-left: 30px; font-size: .95rem; line-height: 1.55; margin: 0; }
.doc-texto .resumo li::before { content: ''; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--sol-fundo) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b8862a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/11px no-repeat; }

.doc-texto h2 { font: 700 1.32rem/1.25 var(--display); letter-spacing: -.015em; color: var(--tinta);
  margin: 46px 0 14px; padding-top: 22px; border-top: 1px solid var(--linha); scroll-margin-top: 96px; }
.doc-texto > h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.doc-texto h2 .num { color: var(--verde); margin-right: .35em; font-variant-numeric: tabular-nums; }
.doc-texto p { font-size: 1rem; line-height: 1.78; margin-bottom: 14px; color: var(--tinta); }
.doc-texto ul, .doc-texto ol { margin: 0 0 16px 1.2rem; }
.doc-texto li { font-size: 1rem; line-height: 1.7; margin-bottom: 8px; padding-left: 4px; }
.doc-texto li::marker { color: var(--verde); }
.doc-texto strong, .doc-texto b { font-weight: 650; }
.doc-texto a { color: var(--verde); text-underline-offset: 3px; }
.doc-texto table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 6px 0 18px; font-size: .92rem;
  border: 1px solid var(--linha); border-radius: 12px; overflow: hidden; background: var(--cartao); }
.doc-texto th { text-align: left; font-weight: 650; font-size: .8rem; letter-spacing: .02em; color: var(--cinza);
  background: var(--fundo-2); padding: 10px 14px; }
.doc-texto td { padding: 11px 14px; border-top: 1px solid var(--linha-2); vertical-align: top; }
.doc-texto .aviso { background: var(--sol-fundo); border: 1px solid rgba(210,162,76,.45); border-radius: 12px;
  padding: 14px 16px; margin: 18px 0; font-size: .93rem; }
.doc-fim { margin-top: 48px; padding: 22px 24px; border-radius: var(--raio); background: var(--fundo-2);
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.doc-fim p { margin: 0; font-size: .95rem; color: var(--cinza); }
.doc-fim p b { color: var(--tinta); }

/* ---------- Central de Ajuda ---------- */
.busca { margin-top: 26px; max-width: 560px; position: relative; }
.busca svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px;
  fill: none; stroke: var(--cinza-2); stroke-width: 2; stroke-linecap: round; }
.busca input { width: 100%; font-family: inherit; font-weight: 500; font-size: 1rem; color: var(--tinta); background: var(--cartao);
  border: 1px solid var(--linha); border-radius: 999px; padding: 1rem 1.2rem 1rem 3rem; box-shadow: var(--sombra-2);
  outline: none; transition: border-color .15s; }
.busca input:focus { border-color: var(--verde); }
.busca input::placeholder { color: var(--cinza-2); }
.busca-info { margin-top: 10px; font-size: .86rem; color: var(--cinza); min-height: 1.2em; }

.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-bottom: 64px; }
.cat { display: flex; gap: 14px; align-items: flex-start; text-decoration: none; background: var(--cartao);
  border: 1px solid var(--linha); border-radius: var(--raio); padding: 18px; box-shadow: var(--sombra-1);
  transition: transform .15s, box-shadow .15s, border-color .15s; }
.cat:hover { transform: translateY(-2px); box-shadow: var(--sombra-2); border-color: color-mix(in srgb, var(--verde) 35%, var(--linha)); }
.cat-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--verde) 10%, transparent); color: var(--verde); }
.cat-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.cat > span:last-child > b { display: block; font: 700 .98rem/1.25 var(--display); margin-bottom: 3px; }
.cat > span:last-child { min-width: 0; }
.cat > span:last-child > span { display: block; font-size: .86rem; line-height: 1.45; color: var(--cinza); }

.secao { margin-bottom: 64px; scroll-margin-top: 96px; }
.secao-topo { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.secao h2 { font: 800 clamp(1.45rem, 2.6vw, 1.9rem)/1.15 var(--display); letter-spacing: -.025em; }
.secao > p.sub { color: var(--cinza); margin: -8px 0 20px; max-width: 64ch; }

.passos { list-style: none; counter-reset: p; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.passos li { counter-increment: p; background: var(--cartao); border: 1px solid var(--linha); border-radius: var(--raio);
  padding: 20px; box-shadow: var(--sombra-1); }
.passos li::before { content: counter(p); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--verde); color: #fff; font: 700 .85rem/1 var(--display); margin-bottom: 12px; }
[data-tema="escuro"] .passos li::before { color: #0c1612; }
.passos > li > b { display: block; font: 700 1rem/1.3 var(--display); margin-bottom: 6px; }
.passos > li > span { display: block; font-size: .9rem; line-height: 1.55; color: var(--cinza); }

.faq { background: var(--cartao); border: 1px solid var(--linha); border-radius: var(--raio); box-shadow: var(--sombra-1); overflow: hidden; }
.faq details { border-top: 1px solid var(--linha-2); }
.faq details:first-child { border-top: 0; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; font-weight: 600; font-size: 1rem; line-height: 1.4; transition: background .15s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: color-mix(in srgb, var(--tinta) 2.5%, transparent); }
.faq summary::after { content: ''; flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--fundo-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6a62' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center/13px no-repeat;
  transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 22px 20px; color: var(--cinza); font-size: .96rem; line-height: 1.7; max-width: 72ch; }
.faq .a p { margin-bottom: 10px; }
.faq .a p:last-child { margin-bottom: 0; }
.faq .a ol, .faq .a ul { margin: 0 0 10px 1.2rem; }
.faq .a li { margin-bottom: 5px; }
.faq .a a { color: var(--verde); }
.faq .a b, .faq .a strong { color: var(--tinta); font-weight: 600; }
.faq mark { background: rgba(210,162,76,.4); color: inherit; border-radius: 3px; padding: 0 1px; }
.oculto { display: none !important; }
.sem-result { text-align: center; padding: 40px 20px; color: var(--cinza); background: var(--cartao);
  border: 1px dashed var(--linha); border-radius: var(--raio); margin-bottom: 40px; }
.sem-result b { display: block; color: var(--tinta); font: 700 1.1rem var(--display); margin-bottom: 6px; }

.contato { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.canal { background: var(--cartao); border: 1px solid var(--linha); border-radius: var(--raio); padding: 22px;
  box-shadow: var(--sombra-1); display: flex; flex-direction: column; gap: 10px; text-decoration: none; }
a.canal:hover { border-color: color-mix(in srgb, var(--verde) 35%, var(--linha)); }
.canal .cat-ic { margin-bottom: 4px; }
.canal b { font: 700 1.02rem var(--display); }
.canal > span:not(.cat-ic):not(.link) { font-size: .9rem; color: var(--cinza); line-height: 1.5; }
.canal .link { color: var(--verde); font-weight: 600; font-size: .92rem; }

.faixa-cta { margin-top: 8px; border-radius: 22px; padding: 36px; background: var(--verde-noite); color: #f2efe6;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; position: relative; overflow: hidden; }
.faixa-cta::after { content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(210,162,76,.35), transparent 65%); }
.faixa-cta h3 { font: 800 1.5rem/1.2 var(--display); letter-spacing: -.02em; }
.faixa-cta p { color: rgba(242,239,230,.75); margin-top: 4px; }
.faixa-cta .btn { position: relative; z-index: 1; background: var(--sol); color: #1e3630; }
.faixa-cta .btn:hover { background: #f5c868; }

/* ---------- rodapé ---------- */
.rodape { border-top: 1px solid var(--linha); background: var(--fundo-2); }
.rodape-in { max-width: 1160px; margin: 0 auto; padding: 48px 24px 28px; display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.rodape-marca p { margin-top: 12px; font-size: .9rem; color: var(--cinza); max-width: 30ch; }
.rodape-col { display: flex; flex-direction: column; gap: 9px; }
.rodape-col b { font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--cinza-2); margin-bottom: 2px; }
.rodape-col a { text-decoration: none; color: var(--tinta); font-size: .9rem; }
.rodape-col a:hover { color: var(--verde); }
.rodape-base { max-width: 1160px; margin: 0 auto; padding: 18px 24px 30px; display: flex; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; font-size: .82rem; color: var(--cinza-2); border-top: 1px solid var(--linha); }

/* ---------- celular ---------- */
@media (max-width: 900px) {
  .doc { grid-template-columns: 1fr; gap: 0; }
  .indice-lat { position: static; max-height: none; margin-bottom: 28px; background: var(--cartao);
    border: 1px solid var(--linha); border-radius: var(--raio); padding: 16px 18px; }
  .indice-lat ol { columns: 2; column-gap: 18px; border-left: 0; }
  .indice-lat a { padding: .3rem 0; border-left: 0; break-inside: avoid; }
  .doc-acoes { flex-direction: row; }
  .rodape-in { grid-template-columns: 1fr 1fr; }
  .rodape-marca { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .topo-in { padding: 12px 16px; gap: 10px; }
  .topo-links { display: none; }
  .hero-in { padding: 40px 18px 36px; }
  .hero .lead { font-size: 1rem; }
  .corpo { padding: 32px 18px 64px; }
  .indice-lat ol { columns: 1; }
  .resumo { padding: 20px; }
  .faq summary { padding: 16px 18px; }
  .faq .a { padding: 0 18px 18px; }
  .faixa-cta { padding: 26px; }
  @supports (-webkit-touch-callout: none) { .busca input { font-size: 16px; } }
}

/* ---------- impressão / PDF ---------- */
@media print {
  .topo, .indice-lat, .rodape, .doc-fim, .pular, .hero::before { display: none !important; }
  body { background: #fff; color: #000; }
  .hero { background: none; border: 0; }
  .hero-in { padding: 0 0 12px; }
  .corpo { padding: 0; }
  .doc { display: block; }
  .doc-texto { max-width: none; }
  .resumo { box-shadow: none; }
  .doc-texto h2 { break-after: avoid; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .cat, .faq summary::after { transition: none; } }
.doc-texto code { font: 500 .88em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--fundo-2); padding: .1em .35em; border-radius: 5px; }

/* índice recolhível no celular */
.indice-abrir { display: none; }
@media (max-width: 900px) {
  .indice-lat > b { display: none; }
  .indice-abrir { display: flex; width: 100%; align-items: center; justify-content: space-between; background: none;
    border: 0; color: var(--tinta); font: 600 .95rem var(--display); cursor: pointer; padding: 2px 0; }
  .indice-abrir svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .2s; }
  .indice-lat:not(.aberto) ol, .indice-lat:not(.aberto) .doc-acoes { display: none; }
  .indice-lat.aberto ol { margin-top: 12px; }
  .indice-lat.aberto .indice-abrir svg { transform: rotate(180deg); }
}
.passos > li > span b { color: var(--tinta); font-weight: 600; }

/* 17.114 — botões dentro do texto não herdam a cor de link */
.doc-texto a.btn, .faq .a a.btn { text-decoration: none; }
.doc-texto a.btn-verde, .doc-fim a.btn-verde, .faq .a a.btn-verde { color: #fff; }
[data-tema="escuro"] .doc-texto a.btn-verde, [data-tema="escuro"] .doc-fim a.btn-verde { color: #0c1612; }
.cat-ic svg, .btn-tema svg { display: block; flex: none; }
