/* ---------- páginas jurídicas (policy.html · terms.html): leitura longa, clara, no padrão do site ---------- */
body.legal-page { background: #fff; color: #1d222a; }
.legal-page .top { position: sticky; }
.lg { padding-top: 56px; padding-bottom: 96px; }
.lg-head { max-width: 760px; padding-bottom: 32px; border-bottom: 1px solid #e2e8f0; }
.lg-head h1 { font-size: clamp(32px, 4vw, 48px); line-height: 1.1; font-weight: 900; letter-spacing: -.02em; color: var(--ink); }
.lg-updated { margin-top: 10px; font-size: 14px; font-weight: 600; color: #64748b; }
.lg-intro { margin-top: 20px; font-size: 17px; line-height: 1.7; color: #334155; }
.lg-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; margin-top: 40px; }
.lg-toc { position: sticky; top: 96px; align-self: start; display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - 120px); overflow-y: auto; }
.lg-toc p { margin-bottom: 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #94a3b8; }
.lg-toc a { padding: 6px 10px; border-radius: 4px; font-size: 13.5px; line-height: 1.4; color: #475569; transition: background .2s, color .2s; }
.lg-toc a:hover { background: #f1f5f9; color: #0f172a; }
.lg-body { max-width: 760px; }
.lg-body section { padding-top: 8px; margin-bottom: 36px; scroll-margin-top: 96px; }
.lg-body h2 { font-size: 21px; line-height: 1.3; font-weight: 800; color: var(--ink); margin-bottom: 12px; }
.lg-body p, .lg-body li { font-size: 16px; line-height: 1.75; color: #334155; }
.lg-body p + p, .lg-body p + ul, .lg-body ul + p, .lg-body .lg-table + p, .lg-body p + .lg-table { margin-top: 12px; }
.lg-body ul { padding-left: 22px; display: grid; gap: 6px; }
.lg-body a { color: var(--brand); font-weight: 600; }
.lg-table { overflow-x: auto; border: 1px solid #e2e8f0; border-radius: 4px; }
.lg-table table { width: 100%; border-collapse: collapse; }
.lg-table th { text-align: left; padding: 10px 14px; background: #f8fafc; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #64748b; border-bottom: 1px solid #e2e8f0; }
.lg-table td { padding: 12px 14px; font-size: 15px; line-height: 1.6; color: #334155; vertical-align: top; border-top: 1px solid #f1f5f9; }
.lg-table td:first-child { width: 56%; }
.lg-prevails { margin-top: 32px; padding: 12px 14px; border-radius: 4px; background: #f8fafc; font-size: 14px !important; color: #64748b !important; }
.lg-other { margin-top: 24px; padding-top: 24px; border-top: 1px solid #e2e8f0; }
@media (max-width: 900px) {
  .lg { padding-top: 32px; padding-bottom: 64px; }
  .lg-grid { grid-template-columns: 1fr; gap: 24px; }
  .lg-toc { position: static; max-height: none; padding-bottom: 16px; border-bottom: 1px solid #e2e8f0; }
  .lg-table td:first-child { width: auto; }
}
/* o cabeçalho usa a largura toda do conteúdo; a barra fixa diz em que documento e em que seção você está */
.lg-head { max-width: none; }
.lg-head .lg-intro { max-width: 980px; }
.lg-bar { position: fixed; left: 0; right: 0; top: 72px; z-index: 40; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid #e2e8f0; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.lg-bar.is-on { opacity: 1; transform: none; pointer-events: auto; }
.lg-bar-in { display: flex; align-items: center; gap: 12px; height: 48px; }
.lg-bar b { font-size: 15px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.lg-bar span { font-size: 14px; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-bar span:not(:empty)::before { content: "·"; margin-right: 12px; color: #cbd5e1; }
.lg-toc { top: 140px; max-height: calc(100vh - 160px); }
.lg-toc a.is-on { background: var(--brand-l); color: var(--brand); font-weight: 700; }
.lg-body section { scroll-margin-top: 140px; }
.legal-page .top { position: fixed; }
.lg { padding-top: 128px; }
@media (max-width: 900px) { .top-row { height: 62px; } .lg-bar { top: 62px; } .lg { padding-top: 96px; } }
