/* Paginas legais publicas (privacidade, termos, exclusao de dados).
   Mesma direcao "grotesca" da app: Archivo pesada, cantos retos, tinta sobre
   cinza quente, degrade da marca so como filete. Segue o tema do dispositivo. */

:root {
  --azul: #1079AA;
  --roxo: #5B43A6;
  --rosa: #D281AA;
  --amarelo: #FDB72A;
  --grad-barra: linear-gradient(90deg, #1079AA 0%, #5B43A6 40%, #D281AA 70%, #FDB72A 100%);

  --bg: #F4F4F2;
  --card: #FFFFFF;
  --borda: #E4E3DF;
  --borda-forte: #D3D2CC;
  --ink: #16161A;
  --muted: #62626A;
  --muted-2: #8A8A92;
  --link: #5B43A6;
  --topo: #16161A;
  --topo-texto: #F2F0F7;
  --topo-suave: #ADA4C2;
  --fonte: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111014;
    --card: #1B1A20;
    --borda: #2F2E36;
    --borda-forte: #3D3C45;
    --ink: #F2F0F7;
    --muted: #ADA4C2;
    --muted-2: #8B8299;
    --link: #A08BE0;
    --topo: #0C0B10;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--fonte);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--link); }
::selection { background: var(--roxo); color: #fff; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.miolo { max-width: 1080px; margin: 0 auto; padding-inline: 24px; }

/* ---------- Topo ---------- */
.topo {
  background: var(--topo);
  color: var(--topo-texto);
  position: sticky;
  top: 0;
  z-index: 20;
}
.topo::after {
  content: "";
  display: block;
  height: 3px;
  background: var(--grad-barra);
}
.topo__dentro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 56px;
}
.topo__logo { display: flex; align-items: center; }
.topo__logo img { height: 40px; width: auto; }
.topo__app {
  color: var(--topo-texto);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .02em;
  padding: 8px 14px;
  border: 1.5px solid rgba(255, 255, 255, .28);
  border-radius: 3px;
  transition: background .15s, color .15s;
}
.topo__app:hover { background: var(--topo-texto); color: var(--topo); }

/* ---------- Capa ---------- */
.capa { background: var(--topo); color: var(--topo-texto); padding: 56px 0 0; }
.capa__rotulo {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--amarelo);
}
.capa h1 {
  margin: 14px 0 0;
  max-width: 14ch;
  font-size: clamp(38px, 7vw, 72px);
  font-weight: 900;
  line-height: .98;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.capa__data {
  margin: 22px 0 0;
  font-size: 14px;
  color: var(--topo-suave);
}
.abas { display: flex; flex-wrap: wrap; gap: 0; margin-top: 40px; }
.abas a {
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 700;
  color: var(--topo-suave);
  text-decoration: none;
  border-top: 3px solid transparent;
}
.abas a:hover { color: var(--topo-texto); }
.abas a[aria-current="page"] {
  color: var(--ink);
  background: var(--bg);
  border-top-color: var(--roxo);
}

/* ---------- Corpo ---------- */
.corpo {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 64px;
  padding: 56px 0 96px;
  align-items: start;
}

.indice { position: sticky; top: 84px; font-size: 13px; }
.indice__titulo {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.indice__alterna { display: none; }
.indice ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--borda); }
.indice li { margin: 0; }
.indice a {
  display: block;
  padding: 6px 0 6px 14px;
  margin-left: -2px;
  border-left: 2px solid transparent;
  color: var(--muted);
  text-decoration: none;
  line-height: 1.35;
}
.indice a:hover { color: var(--ink); }
.indice a.ativo { color: var(--ink); font-weight: 700; border-left-color: var(--roxo); }

.texto { max-width: 680px; counter-reset: secao; }
.texto > p:first-child {
  margin-top: 0;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink);
  font-weight: 500;
}
.texto h2 {
  counter-increment: secao;
  display: grid;
  grid-template-columns: 3rem 1fr;
  align-items: baseline;
  margin: 56px 0 0;
  padding-top: 18px;
  border-top: 2px solid var(--ink);
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.015em;
  scroll-margin-top: 84px;
}
.texto h2::before {
  content: counter(secao, decimal-leading-zero);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--muted-2);
}
.texto p { margin: 16px 0 0; color: var(--muted); font-size: 16.5px; line-height: 1.7; }
.texto h2 + p { margin-top: 18px; }
.texto strong { color: var(--ink); font-weight: 700; }
.texto ul, .texto ol { margin: 16px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 16.5px; line-height: 1.7; }
.texto li { position: relative; margin-top: 10px; padding-left: 22px; }
.texto ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .72em;
  width: 7px;
  height: 7px;
  background: var(--roxo);
}
.texto ol { counter-reset: item; }
.texto ol li { counter-increment: item; }
.texto ol li::before {
  content: counter(item) ".";
  position: absolute;
  left: 0;
  font-weight: 800;
  color: var(--ink);
}
.texto a { text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.texto a:hover { color: var(--ink); }

/* ---------- Rodape ---------- */
.rodape { background: var(--topo); color: var(--topo-suave); padding: 36px 0; font-size: 13px; }
.rodape__dentro { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px; align-items: center; }
.rodape a { color: var(--topo-texto); text-underline-offset: 3px; }
.rodape nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }

/* ---------- Celular ---------- */
@media (max-width: 860px) {
  .corpo { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 32px; }
  .indice { position: static; }
  .indice__alterna {
    display: block;
    width: 100%;
    text-align: left;
    padding: 14px 16px;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink);
    background: var(--card);
    border: 1px solid var(--borda);
    border-radius: 3px;
  }
  .indice__alterna[hidden] { display: none; }
  .indice__alterna::after { content: "−"; float: right; font-weight: 400; font-size: 18px; line-height: 1; }
  .indice.recolhido .indice__alterna::after { content: "+"; }
  .indice.recolhido ol { display: none; }
  .indice__titulo { display: none; }
  .indice ol { margin: 8px 0 0 4px; }
}
@media (max-width: 560px) {
  .miolo { padding-inline: 18px; }
  .capa { padding-top: 40px; }
  .abas { margin-top: 32px; margin-inline: -18px; overflow-x: auto; flex-wrap: nowrap; }
  .abas a { white-space: nowrap; padding: 12px 16px; }
  .texto h2 { grid-template-columns: 2.4rem 1fr; margin-top: 44px; }
  .texto > p:first-child { font-size: 17.5px; }
  .texto p, .texto ul, .texto ol { font-size: 16px; }
  .topo__app span { display: none; }
}

@media print {
  .topo, .capa .abas, .indice, .rodape { display: none; }
  .capa { background: none; color: #000; padding: 0; }
  .capa__rotulo, .capa__data { color: #444; }
  .corpo { display: block; padding: 16px 0; }
  .texto, .texto p, .texto li { color: #000; max-width: none; }
}
