/* Páginas legais da VM LEX: mesmo design system Aurum Noir do site (tema escuro único). */
:root {
  color-scheme: dark;
  --navy-950: #0A1630; --navy-900: #0F1F3D; --navy-800: #172B52; --navy-700: #243A66; --navy-400: #4A6AAE;
  --gold-500: #C9A24A; --gold-600: #B08A35; --champagne-300: #E6C988;
  --text-primary: #FFFFFF; --text-secondary: #B4BDCF; --text-muted: #8390A8; --on-primary: #0A1630;
  --glass-fill: rgba(255,255,255,.07); --glass-stroke: rgba(255,255,255,.14);
  --font-display: "Manrope", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-brand: "Sora", "Manrope", system-ui, sans-serif;
  --radius-sm: 6px; --radius-md: 12px; --radius-lg: 16px; --radius-full: 9999px;
  --gutter: max(clamp(16px, 5vw, 64px), env(safe-area-inset-left, 0px));
  --gutter-r: max(clamp(16px, 5vw, 64px), env(safe-area-inset-right, 0px));
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--navy-950); color: var(--text-secondary); font: 400 16px/1.7 var(--font-body); -webkit-font-smoothing: antialiased; }
:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
a { color: var(--champagne-300); text-underline-offset: 3px; }
a:hover { color: var(--text-primary); }
:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); color: var(--text-primary); font-weight: 400; margin: 0; text-wrap: balance; }
p, ul, ol { margin: 0; }
.brand-name { font-family: var(--font-brand); font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.wrap { width: 100%; max-width: calc(1100px + 128px); margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }

/* Topo */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(10,22,48,.9); border-bottom: 1px solid var(--navy-700); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--navy-950); }
.top__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.top__logo { display: inline-flex; }
.top__logo svg { height: 28px; width: auto; display: block; }
.back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--text-primary); text-decoration: none; padding: 10px 14px; border-radius: var(--radius-sm); border: 1px solid var(--navy-400); }
.back:hover { border-color: var(--gold-500); color: var(--text-primary); }
.back svg { width: 16px; height: 16px; }

/* Cabeçalho do documento */
.doc-head { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(56px, 9vw, 104px) clamp(40px, 6vw, 64px); border-bottom: 1px solid var(--navy-700); }
.doc-head::before { content: ""; position: absolute; inset: -40% -10% auto; height: 140%; z-index: -1; background: radial-gradient(ellipse 50% 55% at 30% 0%, rgba(201,162,74,.24), transparent 72%); pointer-events: none; }
.eyebrow { font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-500); display: block; margin-bottom: 16px; }
.doc-head h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.08; letter-spacing: -0.02em; max-width: 20ch; }
.doc-head .lead { margin-top: 20px; font-size: 18px; max-width: 60ch; }
.updated { margin-top: 20px; font-size: 14px; color: var(--text-muted); }

/* Corpo */
.doc { display: grid; gap: 40px; padding-block: clamp(48px, 7vw, 80px); }
.toc { min-width: 0; }
.toc__title { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px; }
.toc ol { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 2px; counter-reset: toc; }
.toc a { display: flex; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); font-size: 14px; line-height: 1.4; color: var(--text-secondary); text-decoration: none; }
.toc a::before { counter-increment: toc; content: counter(toc, decimal-leading-zero); color: var(--gold-500); font-variant-numeric: tabular-nums; flex: none; }
.toc a:hover { background: var(--navy-800); color: var(--text-primary); }
.content { min-width: 0; display: flex; flex-direction: column; gap: 48px; max-width: 72ch; }
.content section { display: flex; flex-direction: column; gap: 14px; }
.content h2 { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.25; letter-spacing: -0.01em; }
.content h3 { font-size: 18px; font-weight: 500; margin-top: 6px; }
.content ul { padding-left: 1.2em; display: flex; flex-direction: column; gap: 8px; }
.content li::marker { color: var(--gold-500); }
.content strong { color: var(--text-primary); font-weight: 500; }
.note { padding: 20px 22px; border-radius: var(--radius-md); background: var(--navy-800); border: 1px solid rgba(201,162,74,.35); color: var(--text-primary); }
.note strong { color: var(--champagne-300); }
.table-wrap { overflow-x: auto; border: 1px solid var(--navy-700); border-radius: var(--radius-md); }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
th, td { text-align: left; padding: 14px 16px; vertical-align: top; border-bottom: 1px solid var(--navy-700); }
th { font-weight: 500; color: var(--text-primary); background: var(--navy-900); }
tr:last-child td { border-bottom: 0; }
@media (min-width: 960px) {
  .doc { grid-template-columns: 260px minmax(0, 1fr); gap: 72px; align-items: start; }
  .toc { position: sticky; top: 104px; }
}

/* Preferências de cookies */
.prefs { display: flex; flex-direction: column; gap: 12px; }
.pref { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 22px; border-radius: var(--radius-md); background: var(--navy-900); border: 1px solid var(--navy-700); }
.pref__text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pref__text strong { font-size: 17px; }
.pref__text span { font-size: 15px; }
.switch { position: relative; flex: none; width: 52px; height: 30px; margin-top: 2px; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: var(--radius-full); background: var(--navy-700); border: 1px solid var(--navy-400); transition: background-color .2s, border-color .2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--text-primary); transition: transform .2s cubic-bezier(.2,0,0,1); }
.switch input:checked + span { background: var(--gold-500); border-color: var(--gold-500); }
.switch input:checked + span::after { transform: translateX(22px); background: var(--on-primary); }
.switch input:disabled { cursor: not-allowed; }
.switch input:disabled + span { opacity: .7; }
.switch input:focus-visible + span { outline: 2px solid var(--gold-500); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .switch span, .switch span::after { transition: none; } }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: var(--radius-sm); font: 500 15px/1 var(--font-body); cursor: pointer; border: 1px solid transparent; text-decoration: none; }
.btn--primary { background: var(--gold-500); color: var(--on-primary); }
.btn--primary:hover { background: var(--gold-600); color: var(--on-primary); }
.btn--ghost { background: transparent; color: var(--text-primary); border-color: var(--navy-400); }
.btn--ghost:hover { border-color: var(--gold-500); color: var(--text-primary); }
.status { font-size: 14px; color: var(--champagne-300); min-height: 1.5em; }

/* Rodapé */
.foot { border-top: 1px solid var(--navy-700); padding-block: 32px calc(32px + env(safe-area-inset-bottom, 0px)); font-size: 14px; color: var(--text-muted); }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; }
.foot a { color: var(--text-secondary); text-decoration: none; }
.foot a:hover, .foot a[aria-current="page"] { color: var(--text-primary); }
.foot a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--gold-500); }
