/* Folha das páginas de políticas (site/politicas/). Mesmas variáveis e fontes do
   site/index.html; só o que uma página de texto longo precisa. */
:root {
  --bg: #f3faf7; --surface: #ffffff; --ink: #0c1f19; --muted: #4f6a61; --line: #d3e6dd;
  --brand: #00a884; --brand-deep: #067a63; --brand-ink: #063d33; --mint: #dcf8ee;
  --amber: #f5b642; --amber-ink: #5a3d00;
  --dark: #0b141a; --dark-line: #24363e; --on-dark: #e9f5f0; --on-dark-muted: #9fb8ae;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b141a; --surface: #111b21; --ink: #e9f5f0; --muted: #9fb8ae; --line: #24363e; --mint: #0f2f27;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b141a; --surface: #111b21; --ink: #e9f5f0; --muted: #9fb8ae; --line: #24363e; --mint: #0f2f27;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Manrope", "Segoe UI", system-ui, sans-serif; font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: "Sora", "Segoe UI", system-ui, sans-serif; letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 700; }
h2 { font-size: 1.35rem; font-weight: 700; margin-top: 44px; scroll-margin-top: 90px; }
h3 { font-size: 1.05rem; font-weight: 600; margin-top: 26px; }
p { margin: 12px 0 0; }
a { color: var(--brand-deep); }
ul, ol { margin: 10px 0 0; padding-left: 24px; }
li { margin-top: 6px; }
li::marker { color: var(--brand-deep); }
strong { font-weight: 700; }
.wrap { width: min(1160px, 100%); margin-inline: auto; padding-inline: 20px; }

/* topo, igual ao do site */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(11, 20, 26, .92); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,.06); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-family: "Sora", sans-serif; font-weight: 700; font-size: 1.25rem; letter-spacing: -.02em; }
.nav-links { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--on-dark-muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; }
@media (max-width: 720px) { .nav-links { display: none; } }

/* cabeçalho do documento */
.doc-head { background: var(--dark); color: var(--on-dark); padding-block: clamp(40px, 6vw, 72px); }
.doc-head .eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.doc-head .eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--brand); }
.doc-head h1 { margin-top: 12px; }
.doc-head .meta { margin-top: 14px; color: var(--on-dark-muted); font-size: .95rem; }
.crumbs { font-size: .9rem; margin-bottom: 10px; }
.crumbs a { color: var(--on-dark-muted); text-decoration: none; }
.crumbs a:hover { color: #fff; }

/* corpo: sumário à esquerda, texto à direita */
.doc { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; padding-block: clamp(36px, 5vw, 64px); }
@media (max-width: 900px) { .doc { grid-template-columns: 1fr; gap: 24px; } }
.toc { position: sticky; top: 90px; align-self: start; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; font-size: .92rem; }
@media (max-width: 900px) { .toc { position: static; } }
.toc b { display: block; font-family: "Sora", sans-serif; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-deep); margin-bottom: 8px; }
.toc ol { list-style: none; padding: 0; margin: 0; }
.toc li { margin: 0; }
.toc a { display: block; padding: 5px 0; color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--brand-deep); }
.texto { max-width: 74ch; }
.texto > p:first-of-type { font-size: 1.1rem; color: var(--muted); }

/* caixas */
.aviso { margin-top: 16px; padding: 14px 18px; border-radius: 12px; background: var(--mint); border-left: 4px solid var(--brand); }
.aviso.atencao { background: rgba(245, 182, 66, .16); border-left-color: var(--amber); }
.aviso p:first-child { margin-top: 0; }

/* tabela */
table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { font-family: "Sora", sans-serif; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-deep); }
@media (max-width: 600px) {
  table, thead, tbody, tr, th, td { display: block; }
  thead { display: none; }
  tr { border-bottom: 1px solid var(--line); padding-block: 8px; }
  td { border: 0; padding: 3px 0; }
  td::before { content: attr(data-rotulo) ": "; font-weight: 700; }
}

/* campo que o dono preenche antes de publicar: some quando o texto for trocado */
.preencher { background: rgba(245, 182, 66, .35); color: inherit; padding: 0 4px; border-radius: 4px; }

/* índice das políticas */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 8px; }
.card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; text-decoration: none; color: var(--ink); transition: transform .15s ease, border-color .15s ease; }
.card:hover { transform: translateY(-2px); border-color: var(--brand); }
.card h2 { margin: 0; font-size: 1.1rem; }
.card p { color: var(--muted); font-size: .95rem; }
.card .ir { display: inline-block; margin-top: 12px; color: var(--brand-deep); font-weight: 700; font-size: .92rem; }

footer { background: var(--dark); color: var(--on-dark-muted); border-top: 1px solid var(--dark-line); padding-block: 32px; font-size: .9rem; margin-top: 40px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
footer a { color: var(--on-dark-muted); text-decoration: none; }
footer a:hover { color: #fff; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
