/* Legal pages (privacy policy, terms of use): sober reading layout, no imagery. */
.lg-hero { text-align: center; background: var(--void); border-bottom: 1px solid var(--edge);
  padding-block: clamp(3.5rem, 9vh, 6rem) clamp(2.2rem, 5vh, 3.5rem); }
.lg-hero__in { max-width: 820px; }
.lg-crumb { display: flex; justify-content: center; gap: .55rem; font-size: .8rem; color: var(--dim); margin-bottom: 1.4rem; }
.lg-crumb a { text-decoration: none; color: var(--mist); }
.lg-crumb a:hover { color: var(--bone); text-decoration: underline; }
.lg-hero h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.lg-date { margin-top: .9rem; font-size: .85rem; font-weight: 600; letter-spacing: .02em; color: var(--mist); }
.lg-lead { margin: 1.1rem auto 0; max-width: 60ch; color: #cdd1d6; font-size: clamp(.98rem, 1.3vw, 1.08rem); text-wrap: balance; }

.lg-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem; padding-block: clamp(2rem, 5vw, 4rem) var(--rhythm); }
.lg-doc { min-width: 0; max-width: 72ch; }
.lg-sec { scroll-margin-top: 110px; padding-bottom: clamp(1.4rem, 3vw, 2rem); margin-bottom: clamp(1.4rem, 3vw, 2rem); border-bottom: 1px solid var(--edge); }
.lg-sec:last-child { border-bottom: 0; margin-bottom: 0; }
.lg-sec h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); margin-bottom: 1rem; }
.lg-sec h3 { font-size: 1.05rem; margin: 1.4rem 0 .4rem; letter-spacing: -.01em; }
.lg-sec p { color: #cfd3d8; line-height: 1.75; }
.lg-sec p + p, .lg-sec ul + p, .lg-sec p + ul { margin-top: .9rem; }
.lg-sec ul { margin: .9rem 0 0; padding-left: 1.3rem; color: #cfd3d8; line-height: 1.7; }
.lg-sec li + li { margin-top: .35rem; }
.lg-sec li::marker { color: var(--red-lit); }
.lg-sec a, .lg-doc a { color: var(--bone); text-decoration-color: var(--red-lit); text-underline-offset: 3px; }
.lg-sec a:hover { color: #fff; text-decoration-thickness: 2px; }
.lg-sec strong { color: var(--bone); font-weight: 600; }

/* table of contents: collapsible on mobile, sticky column on desktop */
.lg-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: lg; }
.lg-toc li { counter-increment: lg; }
.lg-toc a { display: flex; gap: .6rem; padding: .38rem .6rem; border-radius: 8px; font-size: .88rem; line-height: 1.4; color: var(--mist); text-decoration: none; }
.lg-toc a::before { content: counter(lg, decimal-leading-zero); color: var(--dim); font-variant-numeric: tabular-nums; }
.lg-toc a:hover { color: var(--bone); background: rgba(255,255,255,.05); }
.lg-toc a[aria-current="true"] { color: var(--bone); background: rgba(255,255,255,.07); box-shadow: inset 2px 0 0 var(--red-lit); }
.lg-toc__m { border: 1px solid var(--edge); border-radius: 12px; background: var(--pit); }
.lg-toc__m summary { cursor: pointer; padding: .8rem 1rem; font-weight: 600; font-size: .92rem; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.lg-toc__m summary::-webkit-details-marker { display: none; }
.lg-toc__m summary::after { content: ""; width: .5rem; height: .5rem; border-right: 2px solid var(--mist); border-bottom: 2px solid var(--mist); transform: rotate(45deg); transition: transform .25s ease; }
.lg-toc__m[open] summary::after { transform: rotate(-135deg); }
.lg-toc__m ol { padding: 0 .4rem .6rem; }
.lg-toc__d { display: none; }

@media (min-width: 1024px) {
  .lg-layout { grid-template-columns: 250px minmax(0, 72ch); justify-content: center; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
  .lg-toc { position: sticky; top: 104px; align-self: start; }
  .lg-toc__m { display: none; }
  .lg-toc__d { display: block; }
  .lg-toc__d .label { margin: 0 0 .6rem .6rem; }
}
@media (prefers-reduced-motion: reduce) { .lg-toc__m summary::after { transition: none; } }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (max-width: 640px) { .lg-hero { padding-top: 6.2rem; } }

/* botão "Gerenciar cookies" dentro do texto: aparência de link */
.lg-doc .lg-linkbtn { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: var(--bone); cursor: pointer; text-decoration: underline; text-decoration-color: var(--red-lit); text-underline-offset: 3px; }

.lg-404 { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin: 2rem 0 0; }
.lg-hero .label { margin-bottom: 1rem; }
.lg-404s { padding-block: clamp(2.5rem, 6vw, 4rem); text-align: center; }
.lg-404s h2 { font-size: clamp(1.2rem, 2.4vw, 1.6rem); }
.lg-404l { list-style: none; margin: 1.4rem 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.lg-404l a { display: inline-block; padding: .6rem 1.1rem; border-radius: 999px; border: 1px solid var(--edge-hi); font-size: .86rem; font-weight: 600; color: #fff; text-decoration: none; }
.lg-404l a:hover { background: rgba(255,255,255,.08); }
