/* Páginas legais (/termos e /privacidade) no estilo das páginas legais da Huly, em fundo claro:
   título grande, data em cinza, texto em coluna e índice "Neste documento" fixo à direita
   (destaca a seção que está sendo lida). Geist 400/500. */
@font-face { font-family: 'Geist'; src: url('../fonts/Geist-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('../fonts/Geist-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }

:root { --bg: #ffffff; --ink: #0b0c0f; --text: #4b4d53; --muted: #8a8c93; --line: #e8e8ea; --soft: #f5f5f6; --accent: #b8892a; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif; font-weight: 400; color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(11, 12, 15, 0.28); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }

/* topo pequeno */
.lg-top { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, 0.88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.lg-top__in { max-width: 1216px; margin: 0 auto; height: 60px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lg-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; letter-spacing: -0.01em; }
.lg-brand img { width: 14px; height: 20px; }
.lg-docs { display: flex; gap: 4px; }
.lg-docs a { padding: 6px 12px; border-radius: 999px; color: var(--text); text-decoration: none; font-size: 14px; }
.lg-docs a:hover { color: var(--ink); background: var(--soft); }
.lg-docs a[aria-current="page"] { color: var(--ink); background: var(--soft); }
.lg-back { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.lg-back:hover { background: var(--soft); }
.lg-back svg { width: 14px; height: 14px; }

/* cabeçalho do documento */
.lg-page { max-width: 1216px; margin: 0 auto; padding: 72px 16px 88px; }
.lg-head { max-width: 1040px; margin: 0 auto; }
.lg-head h1 { font-size: clamp(30px, 4vw, 40px); line-height: 1.15; letter-spacing: -0.04em; font-weight: 500; color: var(--ink); }
.lg-meta { margin-top: 10px; font-size: 15px; color: var(--muted); }

/* texto + índice */
.lg-grid { max-width: 1040px; margin: 48px auto 0; display: grid; grid-template-columns: minmax(0, 1fr) 248px; gap: 72px; align-items: start; }
.lg-doc { min-width: 0; max-width: 700px; }
.lg-intro { font-size: 18px; line-height: 1.6; color: var(--ink); }
.lg-doc h2 { margin-top: 48px; font-size: 24px; line-height: 1.3; letter-spacing: -0.02em; font-weight: 500; color: var(--ink); scroll-margin-top: 84px; }
.lg-doc h3 { margin-top: 24px; font-size: 17px; font-weight: 500; color: var(--ink); }
.lg-doc p { margin-top: 14px; font-size: 16.5px; line-height: 1.65; }
.lg-doc ul { margin-top: 14px; padding-left: 22px; }
.lg-doc li { margin-top: 8px; font-size: 16.5px; line-height: 1.6; padding-left: 2px; }
.lg-doc li::marker { color: var(--muted); }
.lg-doc strong { font-weight: 500; color: var(--ink); }
.lg-wrap { width: 100%; overflow-x: auto; margin-top: 16px; border: 1px solid var(--line); border-radius: 12px; }
.lg-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.lg-table th, .lg-table td { padding: 12px 14px; text-align: left; vertical-align: top; line-height: 1.55; border-bottom: 1px solid var(--line); }
.lg-table tr:last-child td { border-bottom: 0; }
.lg-table th { background: var(--soft); font-weight: 500; color: var(--ink); }
.lg-table td:first-child { width: 32%; color: var(--ink); }

/* índice fixo à direita */
.lg-toc { position: sticky; top: 92px; max-height: calc(100vh - 120px); overflow-y: auto; }
.lg-toc__t { font-size: 14px; color: var(--muted); }
.lg-toc ol { list-style: none; margin-top: 14px; display: grid; gap: 2px; }
.lg-toc a { display: block; padding: 6px 0 6px 12px; border-left: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 14px; line-height: 1.4; transition: color 160ms ease, border-color 160ms ease; }
.lg-toc a:hover { color: var(--ink); }
.lg-toc a.is-ativo { color: var(--accent); border-left-color: var(--accent); }

/* rodapé */
.lg-foot { border-top: 1px solid var(--line); background: var(--soft); }
.lg-foot__in { max-width: 1216px; margin: 0 auto; padding: 24px 16px 30px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; font-size: 13.5px; color: var(--muted); }
.lg-foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.lg-foot a { color: var(--muted); }

@media (max-width: 960px) {
  .lg-grid { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 32px; }
  .lg-toc { display: none; }
  .lg-doc { max-width: none; }
}
@media (max-width: 600px) {
  .lg-docs { display: none; }
  .lg-page { padding-top: 40px; }
  .lg-intro { font-size: 16.5px; }
  .lg-doc h2 { margin-top: 38px; font-size: 20px; }
  .lg-doc p, .lg-doc li { font-size: 15.5px; }
  .lg-table { font-size: 14px; }
  .lg-table th, .lg-table td { padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
