/* Páginas legais (privacidade e termos): mesma identidade do site, feitas pra leitura longa. */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wdth,wght@12..96,75..100,400..800&display=swap');

:root {
  --bg: #F3F1F8;
  --surface: #FFFFFF;
  --ink: #1C1633;
  --muted: #5F587A;
  --line: #E2DEEE;
  --c-compartilhar: #2F6BFF;
  --c-salvar: #C98200;
  --c-comentar: #8A54F5;
  --c-seguir: #12A877;
  --c-curtir: #E5486A;
  --link: #2251C9;
  --focus: #2F6BFF;
  --alerta-bg: #FFE3E8;
  --alerta: #A1112F;
  --fonte: 'Bricolage Grotesque', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 16px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #100E1E; --surface: #1A1730; --ink: #EEEAF8; --muted: #A9A2C8; --line: #2C2748;
    --c-compartilhar: #5B8BFF; --c-salvar: #E0A020; --c-comentar: #A07BFF; --c-seguir: #2BC48E; --c-curtir: #FF6B88;
    --link: #8FB0FF; --focus: #7FA3FF; --alerta-bg: #4A1222; --alerta: #FFB3C1;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #100E1E; --surface: #1A1730; --ink: #EEEAF8; --muted: #A9A2C8; --line: #2C2748;
  --c-compartilhar: #5B8BFF; --c-salvar: #E0A020; --c-comentar: #A07BFF; --c-seguir: #2BC48E; --c-curtir: #FF6B88;
  --link: #8FB0FF; --focus: #7FA3FF; --alerta-bg: #4A1222; --alerta: #FFB3C1;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--fonte); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
a { color: var(--link); text-underline-offset: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
code { font-size: .88em; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere; }

.miolo { max-width: 1160px; margin: 0 auto; padding-inline: 20px; }

.topo { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topo .miolo { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; flex-wrap: wrap; }
.marca { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 750; font-size: 18px; letter-spacing: -0.01em; }
.topo nav { display: flex; gap: 18px; font-size: 15px; }
.topo nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.topo nav a:hover, .topo nav a[aria-current="page"] { color: var(--ink); }
.topo nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

.documento { max-width: 760px; padding-block: 56px 72px; display: flex; flex-direction: column; gap: 28px; }
.sobre { font-size: 14px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.documento h1 { font-size: clamp(34px, 5vw, 48px); font-weight: 760; letter-spacing: -0.025em; line-height: 1.08; margin-top: -18px; }
.vigencia { color: var(--muted); margin-top: -16px; }

.resumo { background: var(--surface); border-radius: var(--r); padding: 22px 24px; border-left: 4px solid var(--c-seguir); }
.resumo h2 { font-size: 18px; margin-bottom: 8px; }
.resumo ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }

.indice { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 20px; font-size: 15px; padding: 18px 0; border-block: 1px solid var(--line); }
.indice a { color: var(--muted); text-decoration: none; padding: 3px 0; }
.indice a:hover { color: var(--ink); text-decoration: underline; }

.documento section { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 80px; }
.documento section h2 { font-size: 24px; font-weight: 720; letter-spacing: -0.015em; line-height: 1.2; }
.documento section h3 { font-size: 17px; font-weight: 700; margin-top: 6px; }
.documento ul, .documento ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.documento li::marker { color: var(--muted); }

table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--surface); border-radius: var(--r); overflow: hidden; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
thead th { font-size: 13px; color: var(--muted); font-weight: 650; }
tbody tr:last-child td { border-bottom: 0; }

/* Dado do responsável ainda não preenchido em legal.js */
.falta { background: var(--alerta-bg); color: var(--alerta); border-radius: 4px; padding: 0 4px; }

.rodape { border-top: 1px solid var(--line); padding-block: 28px 44px; }
.rodape .miolo { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.rodape a { color: inherit; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .documento { padding-block: 36px 56px; gap: 24px; }
  .documento section h2 { font-size: 21px; }
  .resumo { padding: 18px; }
  th, td { padding: 10px; }
}
@media print {
  .topo, .indice { display: none; }
  body { background: #fff; color: #000; }
}
