
@font-face {
  font-family: "Host Grotesk"; src: url(assets/HostGrotesk.ttf) format("truetype");
  font-weight: 300 800; font-style: normal; font-display: swap;
}
:root {
  --bg-app: #0c0c0c; --bg-surface: #121212; --bg-elev: #181818; --bg-inverse: #f5f5f5;
  --border: #272727; --border-strong: #383838;
  --tx: #f5f5f5; --tx-corpo: #d4d4d4; --tx2: #a3a3a3; --tx3: #8a8a8a; --tx-inv: #0c0c0c;
  --brand: #9654f4; --roxo100: #ceb0fa; --roxo200: #b78af7; --roxo-10: #9654f41a; --roxo-16: #9654f429;
  --btn-hover: #e2e2e2; --btn-press: #d4d4d4;
  --r12: 12px; --r16: 16px; --r24: 24px; --pill: 999px;
  --font: "Host Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --ease-out: cubic-bezier(.23, 1, .32, 1); --t-hover: 180ms;
  --ic-tela: 1.25;
  --topo-h: 72px;
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { background: var(--bg-app); color-scheme: dark; -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
@media (min-width: 1024px) { html { scroll-padding-top: calc(var(--topo-h) + 24px); } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { background: var(--bg-app); color: var(--tx-corpo); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--roxo200); outline-offset: 2px; border-radius: 4px; }
main:focus { outline: none; }

.skip { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--bg-inverse); color: var(--tx-inv); padding: 10px 16px; border-radius: var(--r12); text-decoration: none; }
.skip:focus { top: 12px; }

svg.ci { --ic-px: 16; width: 16px; height: 16px; flex: none; }
svg.ci * { stroke-width: calc(var(--ic-tela) * 24 / var(--ic-px)); }

.marca { display: inline-flex; align-items: center; font: 500 24px/1 var(--font); letter-spacing: -.02em; color: #FAF9F6; white-space: nowrap; text-decoration: none; }
.marca .marca-s { width: .81em; height: .81em; margin: 0 .149em 0 -.019em; }
@media (min-width: 768px) { .topo .marca { font-size: 28px; } }

.btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 20px; border-radius: var(--pill);
  background: var(--bg-inverse); color: var(--tx-inv); font: 500 15px/1 var(--font); text-decoration: none; white-space: nowrap;
  transition: background-color var(--t-hover) var(--ease-out), transform 160ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: var(--btn-hover); color: var(--tx-inv); } }
.btn:active { background: var(--btn-press); transform: scale(.97); }

.topo { position: relative; z-index: 50; background: rgba(12, 12, 12, .86); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.topo-in { width: min(1240px, 100% - 40px); margin-inline: auto; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "marca btn" "docs docs"; align-items: center; gap: 12px 16px; padding: 14px 0 12px; }
.topo .marca { grid-area: marca; justify-self: start; }
.topo .btn { grid-area: btn; }
.topo .docs { grid-area: docs; }
.docs { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.docs .rot-c { display: none; }
@media (max-width: 767px) { .docs .rot-l { display: none; } .docs .rot-c { display: inline; } .docs a { padding: 0 11px; } }
.docs a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: var(--pill); color: var(--tx2); font-size: 14px; text-decoration: none; transition: color var(--t-hover) var(--ease-out), background-color var(--t-hover) var(--ease-out); }
.docs a[aria-current="page"] { color: var(--tx); background: var(--bg-elev); }
@media (hover: hover) and (pointer: fine) { .docs a:hover { color: var(--tx); background: var(--bg-elev); } }
@media (min-width: 1024px) {
  .topo { position: sticky; top: 0; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .topo-in { height: var(--topo-h); padding: 0; grid-template-columns: 1fr auto 1fr; grid-template-areas: "marca docs btn"; }
  .topo .btn { justify-self: end; height: 40px; }
}

.faixa { background: var(--roxo-10); border-bottom: 1px dashed var(--roxo200); color: #e9dcfd; }
.faixa-in { width: min(1240px, 100% - 40px); margin-inline: auto; padding: 10px 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; line-height: 1.45; }
.faixa strong { font-weight: 600; }
.faixa-c { color: #cbb8ef; }
.faixa .nw { white-space: nowrap; }

.cabeca, .colunas { width: min(1240px, 100% - 40px); margin-inline: auto; }
.cabeca { padding: 48px 0 32px; }
.cabeca h1 { color: var(--tx); font: 500 clamp(36px, 5vw, 56px)/1.08 var(--font); letter-spacing: -.025em; text-wrap: balance; }
.versao { margin-top: 16px; color: var(--tx2); font-size: 15px; line-height: 1.9; }
.nota-var { margin-top: 8px; max-width: 750px; color: var(--tx2); font-size: 14px; line-height: 1.95; }
@media (min-width: 1024px) { .cabeca { padding: 72px 0 48px; padding-left: calc(240px + 64px); } }

.colunas { padding-bottom: 96px; }
@media (min-width: 1024px) { .colunas { display: grid; grid-template-columns: 240px minmax(0, 750px); gap: 64px; align-items: start; } }

.indice { margin-bottom: 32px; }
.indice summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 16px; border: 1px solid var(--border); border-radius: var(--r12); background: var(--bg-surface); color: var(--tx); font-size: 15px; cursor: pointer; list-style: none; }
.indice summary::-webkit-details-marker { display: none; }
.indice summary .ci { color: var(--tx2); transition: transform 200ms var(--ease-out); }
.indice details[open] summary .ci { transform: rotate(180deg); }
.indice ol { list-style: none; margin-top: 8px; padding: 8px; border: 1px solid var(--border); border-radius: var(--r12); background: var(--bg-surface); max-height: 60vh; overflow: auto; }
.indice a { display: flex; gap: 8px; align-items: baseline; min-height: 40px; padding: 9px 12px; border-radius: 8px; color: var(--tx3); font-size: 14px; line-height: 1.4; text-decoration: none; transition: color var(--t-hover) var(--ease-out), background-color var(--t-hover) var(--ease-out); }
.indice a .num { min-width: 1.6em; color: var(--tx3); font-variant-numeric: tabular-nums; }
.indice a[aria-current="location"] { color: var(--tx); background: var(--bg-elev); }
.indice a[aria-current="location"] .num { color: var(--roxo200); }
@media (hover: hover) and (pointer: fine) { .indice a:hover { color: var(--tx); } }
@media (min-width: 1024px) {
  .indice { position: sticky; top: calc(var(--topo-h) + 24px); margin: 0; max-height: calc(100vh - var(--topo-h) - 48px); overflow: auto; overscroll-behavior: contain; }
  .indice summary { display: none; }
  .indice ol { margin: 0; padding: 0; border: 0; background: none; max-height: none; overflow: visible; }
}

.leitura { max-width: 750px; min-width: 0; }
.leitura p, .leitura li { font-size: 17px; line-height: 1.65; overflow-wrap: anywhere; }
.leitura p + p, .leitura p + ul, .leitura p + ol, .leitura ul + p, .leitura ol + p, .leitura .tabela + p, .leitura p + .tabela, .leitura .tabela + .tabela { margin-top: 16px; }
.leitura ul, .leitura ol { padding-left: 1.3em; }
.leitura li + li { margin-top: 8px; }
.leitura li::marker { color: var(--tx3); }
.leitura strong { color: var(--tx); font-weight: 600; }
.leitura a { color: var(--roxo100); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
@media (hover: hover) and (pointer: fine) { .leitura a:hover { color: var(--btn-hover); text-decoration-thickness: 2px; } }
.leitura code { font: 14px/1.4 var(--mono); color: var(--tx); background: var(--bg-elev); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere; }

.resumo { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r24); padding: 28px 32px; }
.resumo h2 { color: var(--tx); font: 500 20px/1.3 var(--font); margin-bottom: 12px; }
.resumo li { font-size: 16px; }

.sec { padding-top: 56px; }
.sec h2 { color: var(--tx); font: 500 26px/1.25 var(--font); letter-spacing: -.015em; margin-bottom: 16px; text-wrap: balance; }
.sec h2 .num { color: var(--roxo200); font-variant-numeric: tabular-nums; }

.glossario summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; min-height: 48px; }
.glossario summary::-webkit-details-marker { display: none; }
.glossario summary h2 { margin: 0; }
.glossario summary .ci { color: var(--tx2); transition: transform 200ms var(--ease-out); }
.glossario details[open] summary .ci { transform: rotate(180deg); }
.glossario details > ul { margin-top: 12px; }

.tabela { margin: 8px 0; overflow-x: auto; }
.tabela table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.tabela th { text-align: left; color: var(--tx2); font-weight: 500; font-size: 14px; padding: 10px 12px; border-bottom: 1px solid var(--border-strong); vertical-align: bottom; }
.tabela td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: top; overflow-wrap: anywhere; }
.tabela td:first-child { color: var(--tx); }
@media (max-width: 767px) {
  .tabela { overflow: visible; }
  .tabela table, .tabela thead, .tabela tbody, .tabela tr, .tabela td { display: block; }
  .tabela thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .tabela thead th { display: block; width: 1px; padding: 0; }
  .tabela tr { padding: 8px 16px; margin-bottom: 12px; border: 1px solid var(--border); border-radius: var(--r16); background: var(--bg-surface); }
  .tabela td { padding: 10px 0; border: 0; }
  .tabela td + td { border-top: 1px solid var(--border); }
  .tabela td::before { content: attr(data-label); display: block; color: var(--tx2); font-size: 13px; font-weight: 500; margin-bottom: 4px; }
}

mark.pend { background: var(--roxo-16); color: #ece2fe; border: 1px dashed var(--roxo200); border-radius: 6px; padding: 0 .3em; line-height: 1.3; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
mark.pend[data-tipo="advogado"] { border-color: var(--roxo100); }
mark.pend[data-tipo="interno"] { border-style: dotted; font-style: italic; }
.interno { font-size: 15px; }
html.previa .var { border-bottom: 1px dashed var(--roxo200); }

.rodape { background: var(--bg-surface); }
.rodape-in { width: min(1240px, 100% - 40px); margin-inline: auto; padding: 40px 0 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .topo, .faixa, .indice, .rodape, .skip { display: none !important; }
  html, body { background: #fff; color: #111; }
  .cabeca { padding-left: 0; }
  .colunas { display: block; }
  .cabeca h1, .sec h2, .resumo h2, .leitura strong { color: #111; }
  .resumo { background: #fff; border-color: #bbb; }
}
