/* Páginas legais (pt, en, es), geradas por landing/legal.mjs. Usa os tokens de styles.css. */
.legal-nav { display: flex; align-items: center; gap: 20px; }
.legal-langs { display: flex; gap: 2px; background: var(--surface2); border-radius: 18px; padding: 3px; }
.legal-langs a { height: 32px; min-width: 36px; padding: 0 10px; border-radius: 15px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; color: var(--ink2); }
.legal-langs a[aria-current=page] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.back { font-size: 14px; font-weight: 600; color: var(--ink2); white-space: nowrap; }
@media (hover: hover) { .back:hover, .legal-langs a:hover { color: var(--ink); } }
@media (max-width: 600px) { .back { display: none; } .legal-nav { gap: 0; } }

.legal-hero { padding-block: 56px 32px; }
.legal-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-bottom: 18px; margin-bottom: 36px; border-bottom: 1px solid var(--line2); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink2); }
.legal-hero h1 { font-size: clamp(44px, 7vw, 84px); line-height: .98; letter-spacing: -.015em; max-width: 16ch; }
.legal-summary { margin-top: 24px; max-width: 62ch; font-size: 18px; line-height: 1.6; color: var(--ink2); text-wrap: pretty; }
.draft-note { margin-top: 24px; max-width: 62ch; padding: 14px 18px; border-radius: 16px; background: var(--airS); color: var(--ink); font-size: 14px; line-height: 1.5; }
mark.todo { background: var(--airS); color: var(--air); border-radius: 6px; padding: 0 5px; font-weight: 600; }

.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; padding-block: 24px 80px; }
.toc { position: sticky; top: 90px; align-self: start; }
.toc ul, .toc-mobile ul { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.toc a, .toc-mobile a { display: block; padding: 6px 0; font-size: 14px; line-height: 1.4; color: var(--ink2); }
@media (hover: hover) { .toc a:hover, .toc-mobile a:hover { color: var(--ink); } }
.toc-mobile { display: none; border: 1px solid var(--line2); border-radius: 16px; padding: 4px 16px; }
.toc-mobile summary { cursor: pointer; padding: 12px 0; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink2); }
.toc-mobile ul { margin: 0 0 12px; }

.legal-body { min-width: 0; }
.legal-section { scroll-margin-top: 90px; margin-bottom: 56px; }
.legal-section h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3vw, 38px); line-height: 1.1; letter-spacing: -.01em; margin-bottom: 20px; text-wrap: balance; }
.legal-body p, .legal-body li { max-width: 68ch; font-size: 16px; line-height: 1.65; color: var(--ink2); }
.legal-body p { margin-bottom: 14px; text-wrap: pretty; }
.legal-body ul { margin: 14px 0 18px 20px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.legal-body li::marker { color: var(--water); }
.legal-body a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 3px; overflow-wrap: anywhere; }
@media (hover: hover) { .legal-body a:hover { text-decoration-color: var(--ink); } }
.sub { scroll-margin-top: 90px; margin-top: 28px; padding-left: 22px; border-left: 2px solid var(--line2); }
.sub h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.15; margin-bottom: 12px; }
.sub p, .sub li { font-size: 15px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; margin: 20px 0; max-width: 68ch; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.card h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.1; }
.card p { margin: 0; font-size: 14px; line-height: 1.55; }
.card a { font-size: 13px; }
.card-label { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink3); }
.card-value { font-size: 16px; font-weight: 600; }

.table-wrap { margin: 20px 0; max-width: 68ch; overflow-x: auto; border: 1px solid var(--line); border-radius: 20px; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.55; }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.table-wrap thead th { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink3); }
.table-wrap tbody th { font-weight: 500; color: var(--ink); width: 48%; }
.table-wrap td { color: var(--ink2); }
.table-wrap tr:last-child th, .table-wrap tr:last-child td { border-bottom: 0; }

.doc-links { display: flex; flex-wrap: wrap; gap: 18px; }
.optout { margin: 14px 0 18px; }
.optout-btn { min-height: 44px; padding: 10px 20px; border-radius: 24px; border: 1px solid var(--line2); background: transparent; font-size: 14px; font-weight: 600; line-height: 1.3; text-align: center; }
.optout-btn:not(:disabled) { background: var(--btn); border-color: var(--btn); color: var(--btnInk); }
.optout-btn:disabled { cursor: default; color: var(--ink2); }

.legal-foot p { max-width: 72ch; }
.legal-foot { align-items: flex-start; }

@media (max-width: 900px) {
  .legal-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .toc { display: none; }
  .toc-mobile { display: block; }
}
@media (max-width: 600px) {
  .legal-hero { padding-block: 32px 24px; }
  .legal-meta { margin-bottom: 24px; font-size: 11px; }
  .legal-summary { font-size: 16px; }
  .legal-section { margin-bottom: 44px; }
  .sub { padding-left: 16px; }
  .table-wrap th, .table-wrap td { padding: 12px 14px; }
  .table-wrap tbody th { width: 44%; }
  .site-footer .wrap.legal-foot { align-items: flex-start; text-align: left; }
}
