/* Termos, Privacidade e 404 no padrão do produto: Liquid Glass, Manrope, tema claro, motion-tokens.
   Depende de /motion-tokens.css, /glass/liquid-glass.css e /piloto/piloto.css (tokens, fundo e botões). */
.lgl { padding: 0 12px max(32px, env(safe-area-inset-bottom)); }
.lgl-skip { position: fixed; top: -100px; left: 16px; z-index: 50; background: #fff; color: var(--ink); padding: 12px 16px; border-radius: 12px; }
.lgl-skip:focus { top: 12px; }
.lgl-top { position: sticky; top: max(8px, env(safe-area-inset-top)); z-index: 20; max-width: 820px; margin: 8px auto 0; border-radius: 999px; padding: 6px 8px 6px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lgl-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 18px; min-height: 44px; }
.lgl-nav { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--accent-soft); }
.lgl-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none;
  transition: color var(--eno-t-fast) var(--eno-ease-out), background-color var(--eno-t-fast) var(--eno-ease-out), transform var(--eno-t-press) var(--eno-ease-out); }
.lgl-nav a:active { transform: scale(var(--eno-press-scale)); }
.lgl-nav a[aria-current="page"] { color: var(--ink); background: rgb(255 255 255 / .94); box-shadow: 0 2px 10px rgb(28 34 64 / .12); }
.lgl-nav a:focus-visible, .lgl-brand:focus-visible, .lgl-card a:focus-visible, .lgl-foot a:focus-visible { outline: var(--eno-focus-width, 2px) solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.lgl-card { max-width: 820px; margin: 16px auto 0; border-radius: 30px; padding: 28px 20px 32px; line-height: 1.65; outline: 0; }
@media (min-width: 700px) { .lgl-card { padding: 44px 52px 48px; } }
.lgl-card h1 { margin: 0 0 6px; }
.lgl-card h1 + p { color: var(--muted); font-size: 14px; font-weight: 600; }
.lgl-card h2 { font-size: 20px; margin: 40px 0 10px; scroll-margin-top: 96px; letter-spacing: -.01em; }
.lgl-card h3 { font-size: 16px; margin: 24px 0 8px; scroll-margin-top: 96px; }
.lgl-card a[id] { display: block; scroll-margin-top: 96px; }
.lgl-card p { margin: 12px 0; }
.lgl-card ul, .lgl-card ol { margin: 12px 0; padding-left: 22px; }
.lgl-card li { margin: 6px 0; }
.lgl-card a:not(.pl-btn):not(.lgl-brand) { color: var(--accent); text-underline-offset: 3px; }
.lgl-card code { font: 500 .9em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--accent-soft); border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere; }
.lgl-card .legal-note { margin: 18px 0; padding: 14px 16px; border-radius: 18px; background: var(--accent-soft); border: 1px solid rgb(59 79 184 / .14); font-size: 15px; }
.lgl-card .legal-table { overflow-x: auto; margin: 14px -4px; border-radius: 18px; background: rgb(255 255 255 / .55); border: 1px solid var(--line); -webkit-overflow-scrolling: touch; }
.lgl-card table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 14px; }
.lgl-card th, .lgl-card td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.lgl-card th { font-size: 13px; color: var(--muted); font-weight: 700; }
.lgl-card tr:last-child td { border-bottom: 0; }
.lgl-foot { max-width: 820px; margin: 20px auto 0; padding: 0 8px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; color: var(--muted); font-size: 14px; }
.lgl-foot a:not(.pl-btn) { color: var(--muted); text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 44px; }
.lgl-foot .pl-btn { text-decoration: none; }
/* 404 */
.lgl-404 { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.lgl-404 .lgl-card { width: min(460px, 100%); margin: 0; padding: 32px 26px 26px; display: grid; gap: 10px; }
.lgl-404 h1 { font-size: clamp(28px, 7vw, 36px); margin: 12px 0 0; }
.lgl-404 p { color: var(--muted); margin: 0; }
.lgl-404 .lgl-actions { display: grid; gap: 8px; margin-top: 16px; }
.lgl-404 .pl-btn { text-decoration: none; }
/* Pílula deslizante do menu Termos/Privacidade (legal-nav.js) e rolagem suave das âncoras. */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.lgl-nav { position: relative; isolation: isolate; }
.lgl-nav-ind { position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; z-index: -1; border-radius: 999px; background: rgb(255 255 255 / .94); box-shadow: 0 2px 10px rgb(28 34 64 / .12); opacity: 0; pointer-events: none; will-change: transform, width; }
.lgl-nav-ind.is-ready { opacity: 1; }
.lgl-nav:has(.lgl-nav-ind.is-ready) a[aria-current="page"] { background: transparent; box-shadow: none; }
.lgl-body > * { will-change: auto; }
/* Mesma navegação entre páginas da home (ux-polish.css): as duas pontas aceitam a transição,
   então ela não é abortada ao entrar ou sair de Termos/Privacidade. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: lglPageOut 160ms var(--eno-ease-out) both; }
::view-transition-new(root) { animation: none; }
@keyframes lglPageOut { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root) { animation: none; } }
