/* Páginas legais (privacidade, termos, eliminar conta) — usam o site.css e acrescentam isto. */

/* overflow-x: hidden no html/body anula o position: sticky do índice; clip corta na mesma sem esse efeito */
html, body.legal-page { overflow-x: clip; }
.legal-page main { overflow: visible; }

/* ─── Topo ─── */
.lg-hero { position: relative; overflow: hidden; padding: 34px var(--pad) 70px; border-bottom: 1px solid var(--line); }
.lg-hero .aurora.a1 { top: -14vh; opacity: .55; }
.lg-top { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; }
.lg-top .logo { display: inline-flex; align-items: center; gap: 12px; font-size: 1.5em; letter-spacing: -.02em; }
.lg-top .logo img { width: 42px; height: 42px; border-radius: 12px; }
.lg-top-r { display: flex; align-items: center; gap: 10px; }
.lg-head { position: relative; z-index: 2; margin-top: 14vh; }
.lg-h1 { margin-top: 18px; font-size: min(8.4em, 8vw); }
.lg-meta { margin-top: 26px; }
.lg-tabs { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-top: 34px; padding: 5px; border-radius: 22px; background: var(--ink); }
.lg-tabs a { padding: .8em 1.35em; border-radius: 17px; color: var(--grey); font-size: .95em; transition: color .3s, background .3s; }
.lg-tabs a:hover { color: var(--dim); }
.lg-tabs a.on { background: var(--dim); color: var(--black); }

/* ─── Corpo: índice à esquerda, texto à direita ─── */
.lg-wrap { display: grid; grid-template-columns: minmax(15em, 19em) minmax(0, 46em); justify-content: space-between; gap: 60px; padding: 90px var(--pad) 120px; }
.lg-toc { position: sticky; top: 40px; align-self: start; display: flex; flex-direction: column; gap: 16px; }
.lg-toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.lg-toc li a { position: relative; display: flex; gap: 12px; padding: .55em 0 .55em 18px; color: var(--grey); font-size: .95em; line-height: 1.3; transition: color .3s; }
.lg-toc li a span { font-variant-numeric: tabular-nums; color: #3f4350; transition: color .3s; }
.lg-toc li a::before { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: var(--accent); border-radius: 2px; transform: scaleY(0); transition: transform .5s var(--ease); }
.lg-toc li a:hover { color: var(--dim); }
.lg-toc li a.on { color: #fff; }
.lg-toc li a.on span { color: var(--accent); }
.lg-toc li a.on::before { transform: scaleY(1); }
.lg-help { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 14px 16px; border-radius: 20px; }
.lg-help svg { width: 1.3em; height: 1.3em; color: #9db6ff; flex: none; }
.lg-help b { display: block; font-weight: 500; color: #fff; }
.lg-help small { display: block; color: var(--grey); font-size: .85em; }

.legal-body { font-size: 1.0625em; line-height: 1.7; color: var(--dim); }
.lg-sec { position: relative; padding: 0 0 54px; margin-bottom: 54px; border-bottom: 1px solid var(--line); scroll-margin-top: 40px; }
.lg-sec:last-of-type { border-bottom: 0; }
.lg-num { display: block; font-size: .9em; color: var(--accent); letter-spacing: .04em; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.legal-body h2 { margin: 0 0 22px; font-size: 2.4em; line-height: 1.08; font-weight: 400; letter-spacing: -.02em; color: #fff; }
.legal-body p { margin: 0 0 16px; color: var(--dim); }
.legal-body strong { color: #fff; font-weight: 500; }
.legal-body a:not(.btn):not(.ibtn) { color: #9db6ff; text-decoration: underline; text-decoration-color: rgba(157, 182, 255, .35); text-underline-offset: 3px; transition: text-decoration-color .3s; }
.legal-body a:not(.btn):not(.ibtn):hover { text-decoration-color: #9db6ff; }
.legal-body ul, .legal-body ol { margin: 0 0 16px; padding: 0; list-style: none; }
.legal-body ul li { position: relative; padding-left: 26px; margin: 10px 0; }
.legal-body ul li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(59, 107, 255, .7); }
.legal-body ol.steps { counter-reset: st; }
.legal-body ol.steps li { counter-increment: st; position: relative; padding-left: 46px; margin: 12px 0; min-height: 32px; }
.legal-body ol.steps li::before { content: counter(st); position: absolute; left: 0; top: -.1em; width: 32px; height: 32px; border-radius: 11px; display: grid; place-items: center;
  font-size: .9em; color: #9db6ff; background: rgba(91, 125, 255, .12); border: 1px solid rgba(124, 152, 255, .25); }
.lg-card { border-radius: 26px; padding: 26px 28px 10px; margin: 0 0 14px; }
.lg-card > p:first-child { margin-bottom: 14px; }
.lg-table { overflow-x: auto; margin: 0 0 18px; border-radius: 22px; border: 1px solid var(--line); background: rgba(23, 25, 29, .45); }
.lg-table table { width: 100%; border-collapse: collapse; font-size: .92em; line-height: 1.5; min-width: 34em; }
.lg-table th, .lg-table td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.lg-table tr:last-child td { border-bottom: 0; }
.lg-table th { color: var(--grey); font-weight: 500; font-size: .85em; letter-spacing: .03em; text-transform: uppercase; background: rgba(255, 255, 255, .02); }
.lg-table td:first-child { color: var(--dim); }

.lg-end { margin-top: 20px; padding: 34px; border-radius: 30px; background: radial-gradient(120% 140% at 100% 0%, rgba(59, 107, 255, .18), transparent 60%), rgba(23, 25, 29, .5); border: 1px solid var(--line); }
.lg-end .p1 { color: #fff; margin-bottom: 22px; }
.lg-end-row { display: flex; gap: 8px; align-items: center; }
/* o .btn usa uma letra 1.0625× maior: divide-se a altura para ficar igual à do botão da seta */
.lg-end-row .btn { height: calc(3.625em / 1.0625); color: var(--black); text-decoration: none; }

/* cortina: entra a tapar e sai ao abrir a página */
.lg-curtain { transform: translateY(0); }
.no-js .lg-curtain { display: none; }

@media (max-width: 1024px) {
  .lg-wrap { grid-template-columns: 1fr; gap: 0; padding-top: 50px; }
  .lg-toc { position: relative; top: 0; margin-bottom: 50px; }
  .lg-help { display: none; }
  .lg-h1 { font-size: 5.6em; }
}
@media (max-width: 680px) {
  .lg-hero { padding: 30px 24px 50px; }
  .lg-head { margin-top: 70px; }
  .lg-h1 { font-size: min(3em, calc((100vw - 48px) / 6.9)); }
  .lg-tabs { display: flex; }
  .lg-tabs a { flex: 1 1 auto; text-align: center; padding: .75em .9em; }
  .lg-wrap { padding: 40px 24px 90px; }
  .legal-body { font-size: 1em; }
  .legal-body h2 { font-size: 1.75em; }
  .lg-sec { padding-bottom: 38px; margin-bottom: 38px; }
  .lg-card { padding: 20px 20px 6px; border-radius: 22px; }
  .lg-end { padding: 24px; }
}

@media (max-width: 680px) {
  .lg-table { overflow: visible; border: 0; background: none; border-radius: 0; }
  .lg-table table, .lg-table tbody, .lg-table tr, .lg-table td { display: block; min-width: 0; width: 100%; }
  .lg-table tr:first-child { display: none; }
  .lg-table tr { margin-bottom: 10px; padding: 16px 18px; border-radius: 20px; border: 1px solid var(--line); background: rgba(23, 25, 29, .5); }
  .lg-table td { padding: 6px 0; border: 0; }
  .lg-table td[data-label]:not(:first-child)::before { content: attr(data-label); display: block; font-size: .78em; letter-spacing: .04em; text-transform: uppercase; color: var(--grey); margin-bottom: 2px; }
}

@media (max-width: 680px) { .lg-end-row .btn { height: 48px; } }
