/* Paginas legais: Politica de Privacidade e Termos de Uso.
   Usa os mesmos tokens do site (navy, coral, cinzas azulados) e a coluna de
   leitura estreita, porque texto longo pede linhas de no maximo ~70 caracteres. */
:root {
  --navy-950: #000d17;
  --navy-900: #001525;
  --navy-700: #002137;
  --coral: #ff5b00;
  --gray-400: #4a7391;   /* 5,1:1 sobre branco; o #5f85a0 do site dava 3,9:1 em texto pequeno */
  --gray-600: #2d5368;
  --gray-100: #bfd0e0;
  --off-white: #eef5fa;
  --line: #d9e8f2;
  --purple-mid: #7aa5c2;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pad: clamp(20px, 5vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: #fff; color: var(--gray-600);
  line-height: 1.75; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 3px; }

.lg-wrap { max-width: 820px; margin: 0 auto; padding: 0 var(--pad); }

/* ── Topo ── */
.lg-top { border-bottom: 1px solid var(--line); }
.lg-top__in { display: flex; align-items: center; justify-content: space-between; padding-top: 22px; padding-bottom: 22px; }
.lg-logo { display: flex; align-items: center; color: var(--navy-700); }
.lg-logo svg { height: 22px; width: auto; display: block; }
.lg-back { font-size: 13px; font-weight: 600; color: var(--gray-400); transition: color .25s ease; }
.lg-back:hover { color: var(--navy-700); }

/* ── Cabeçalho do documento ── */
.lg-main { padding-top: clamp(44px, 7vw, 88px); padding-bottom: clamp(56px, 8vw, 104px); }
.lg-eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gray-400); margin-bottom: 22px;
}
.lg-eyebrow::before { content: ''; width: 24px; height: 1.5px; background: var(--coral); flex-shrink: 0; }
.lg-main h1 {
  font-size: clamp(34px, 5.4vw, 56px); font-weight: 800; line-height: 1.04;
  letter-spacing: -0.035em; color: var(--navy-700); text-wrap: balance;
}
.lg-meta { margin-top: 18px; font-size: 13px; font-weight: 600; color: var(--gray-400); }
.lg-lead { margin-top: 26px; font-size: clamp(16px, 1.6vw, 18px); line-height: 1.75; color: var(--gray-600); max-width: 64ch; }

/* ── Índice ── */
.lg-toc {
  margin-top: clamp(32px, 5vw, 48px);
  padding: 22px 26px; background: var(--off-white); border-radius: 14px;
}
.lg-toc p { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gray-400); margin-bottom: 12px; }
.lg-toc ol { list-style: none; counter-reset: toc; columns: 2; column-gap: 32px; }
.lg-toc li { counter-increment: toc; break-inside: avoid; margin-bottom: 7px; font-size: 14px; line-height: 1.45; }
.lg-toc li::before { content: counter(toc) '.'; font-weight: 700; color: var(--coral); margin-right: 8px; font-variant-numeric: tabular-nums; }
.lg-toc a { color: var(--gray-600); transition: color .2s ease; }
.lg-toc a:hover { color: var(--navy-700); text-decoration: underline; text-underline-offset: 3px; }

/* ── Corpo ── */
.lg-body { margin-top: clamp(36px, 6vw, 60px); }
.lg-body section { padding-top: clamp(28px, 4vw, 40px); scroll-margin-top: 24px; }
.lg-body section + section { margin-top: clamp(10px, 2vw, 18px); border-top: 1px solid var(--line); }
.lg-body h2 {
  font-size: clamp(20px, 2.4vw, 25px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.25;
  color: var(--navy-700); margin-bottom: 14px;
}
.lg-body h2 .n { color: var(--coral); margin-right: 8px; font-variant-numeric: tabular-nums; }
.lg-body h3 { font-size: 15px; font-weight: 700; color: var(--navy-700); margin: 22px 0 8px; }
.lg-body p { margin-bottom: 14px; max-width: 68ch; }
.lg-body ul { margin: 0 0 16px; padding-left: 0; list-style: none; max-width: 68ch; }
.lg-body li { position: relative; padding-left: 22px; margin-bottom: 8px; }
.lg-body li::before { content: ''; position: absolute; left: 4px; top: .75em; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }
.lg-body strong { color: var(--navy-700); font-weight: 700; }
.lg-body a.lg-link { color: var(--navy-700); font-weight: 600; text-decoration: underline; text-decoration-color: var(--coral); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.lg-body a.lg-link:hover { color: var(--coral); }

/* Destaque para o que o leitor mais precisa saber */
.lg-note {
  margin: 6px 0 18px; padding: 18px 22px; border-radius: 12px;
  background: #fff7f1; border-left: 3px solid var(--coral); max-width: 68ch;
}
.lg-note p { margin: 0; }
.lg-note p + p { margin-top: 10px; }

/* Tabela de finalidades: rola por dentro no celular */
.lg-tablewrap { overflow-x: auto; margin: 6px 0 18px; border: 1px solid var(--line); border-radius: 12px; }
.lg-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.55; min-width: 520px; }
.lg-table th { text-align: left; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--gray-400); background: var(--off-white); padding: 12px 16px; }
.lg-table td { padding: 13px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.lg-table td:first-child { color: var(--navy-700); font-weight: 600; width: 52%; }

/* ── Rodapé ── */
.lg-foot { background: var(--navy-900); color: var(--purple-mid); }
.lg-foot__in { max-width: 1000px; margin: 0 auto; padding: 44px var(--pad) 30px; }
.lg-foot__top { display: flex; flex-wrap: wrap; gap: 28px 56px; justify-content: space-between; align-items: flex-start; }
.lg-foot .lg-logo { color: #fff; margin-bottom: 14px; }
.lg-foot address { font-style: normal; font-size: 13.5px; line-height: 1.7; max-width: 300px; }
.lg-foot address span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 4px; }
.lg-foot__links { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.lg-foot__links a { transition: color .25s ease; }
.lg-foot__links a:hover, .lg-foot__links a[aria-current="page"] { color: #fff; }
.lg-foot__bottom { margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; color: rgba(255,255,255,.55); }

@media (max-width: 640px) {
  .lg-toc { padding: 18px 20px; }
  .lg-toc ol { columns: 1; }
  .lg-foot__top { flex-direction: column; }
  .lg-back { font-size: 12.5px; }
}

@media print {
  .lg-top, .lg-toc, .lg-foot { display: none; }
  body { color: #000; }
}
