/* Páginas legais (privacidade, termos): layout editorial de leitura, no estilo do post do Cluster. */
.legal-hero__shell { position: relative; overflow: hidden; padding-block: clamp(48px, 6vw, 88px) clamp(40px, 5vw, 64px) !important; }
.legal-hero .wrap { display: grid; gap: 20px; justify-items: start; }
.legal-hero__title { max-width: 14ch; font-size: clamp(40px, 6.4vw, 64px); }
.legal-hero__meta { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--c-muted); }

.legal-doc > .shell { padding-block: clamp(40px, 5vw, 72px) var(--space-section); }
.doc { display: grid; gap: 28px; align-items: start; }

/* Índice: acordeão no celular, coluna fixa no desktop */
.toc { border: 1px solid var(--c-line); border-radius: var(--r-md); background: rgb(19 19 21 / .5); }
.toc__summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; min-height: 48px; cursor: pointer; list-style: none; font-size: var(--fs-sm); font-weight: 500; }
.toc__summary::-webkit-details-marker { display: none; }
.toc__summary .i { width: 18px; height: 18px; transition: transform var(--t-base) var(--ease-out); }
.toc[open] .toc__summary .i { transform: rotate(180deg); }
.toc__summary:focus-visible { outline: 2px solid var(--c-red-soft); outline-offset: 2px; border-radius: var(--r-md); }
.toc__nav { padding: 4px 16px 16px; }
.toc__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: none; }
.toc__list a {
  display: block; padding: 8px 12px; margin-left: -12px; border-left: 1px solid var(--c-line);
  font-size: var(--fs-sm); line-height: 1.4; color: var(--c-muted);
  transition: color var(--t-fast) var(--ease-std), border-color var(--t-fast) var(--ease-std);
}
.toc__list a:hover { color: var(--c-fg); }
.toc__list a[aria-current="true"] { color: var(--c-fg); border-left: 2px solid var(--c-red); padding-left: 11px; }

/* Corpo: prosa de 680px */
.doc__body { max-width: 680px; min-width: 0; }
.doc__sec { padding-block: 32px; border-top: 1px solid var(--c-line); scroll-margin-top: calc(var(--header-h) + 16px); }
.doc__sec:first-child { border-top: 0; padding-top: 0; }
.doc__h2 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 400; line-height: 1.2; letter-spacing: var(--track-h3); margin-bottom: 18px; text-wrap: balance; }
.doc__body p, .doc__body li { font-size: 16.5px; line-height: 1.7; color: var(--c-fg-2); text-align: left; text-wrap: pretty; overflow-wrap: anywhere; hyphens: manual; }
.doc__body p + p, .doc__body p + ul, .doc__body ul + p { margin-top: 16px; }
.doc__body strong { color: var(--c-fg); font-weight: 600; }
.doc__body em { color: var(--c-fg); font-style: italic; }
.doc__body a { color: var(--c-red-soft); text-decoration: underline; text-decoration-color: rgb(255 107 114 / .4); text-underline-offset: 3px; transition: text-decoration-color var(--t-fast) var(--ease-std); }
.doc__body a:hover { text-decoration-color: currentColor; }
.doc__body ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.doc__body li { position: relative; padding-left: 22px; }
.doc__body li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--c-red); }
.doc__related { margin-top: 32px; }
.doc__related .card { display: grid; gap: 14px; padding: 24px; }
.doc__related .card__title { display: flex; align-items: center; gap: 10px; font-size: var(--fs-h3); line-height: 1.2; letter-spacing: var(--track-h3); }

@media (min-width: 960px) {
  .doc { grid-template-columns: 260px minmax(0, 680px); gap: 80px; }
  .doc__aside { position: sticky; top: calc(var(--header-h) + 24px); }
  .toc { border: 0; background: none; border-radius: 0; }
  .toc__summary { padding: 0 0 12px; min-height: 0; cursor: default; pointer-events: none; font-family: var(--font-mono); font-weight: 400; font-size: var(--fs-xs); color: var(--c-muted); }
  .toc__summary .i { display: none; }
  .toc__nav { padding: 0; }
  .toc__list { max-height: calc(100vh - var(--header-h) - 96px); overflow-y: auto; scrollbar-width: thin; }
}
