/* Legal pages: clean, readable, with a sticky contents list. */
.legal-hero { position: relative; padding: calc(var(--hdr) + 64px) 0 48px; overflow: hidden; }
.legal-hero .wrap { position: relative; z-index: 1; display: grid; gap: 16px; justify-items: start; }
.legal-hero h1 { font-size: clamp(38px, 5vw, 60px); }
.legal-hero .meta { display: flex; flex-wrap: wrap; gap: 10px; color: var(--ink-3); font-size: 14px; }
.legal-hero .meta span { padding: 7px 12px; border-radius: 999px; background: var(--bg-soft); }
.legal-hero .lead { max-width: 760px; }
.legal { display: grid; grid-template-columns: 250px 1fr; gap: 56px; align-items: start; padding-bottom: 40px; }
.toc { position: sticky; top: calc(var(--hdr) + 24px); max-height: calc(100vh - var(--hdr) - 48px); overflow: auto; padding-right: 6px; }
.toc h4 { margin: 0 0 12px; font: 700 12px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: t; }
.toc a { display: block; padding: 7px 10px; border-radius: 10px; font-size: 14px; color: var(--ink-2); line-height: 1.35; transition: background .2s, color .2s; }
.toc a:hover { background: var(--bg-soft); color: var(--ink); }
.toc a.on { background: var(--violet-soft); color: var(--violet); font-weight: 600; }
.doc { min-width: 0; max-width: 780px; }
.doc section { padding: 8px 0 28px; scroll-margin-top: calc(var(--hdr) + 20px); }
.doc h2 { font-size: 26px; line-height: 1.25; margin: 18px 0 14px; letter-spacing: -.02em; }
.doc h3 { font-size: 18px; margin: 22px 0 8px; }
.doc p, .doc li { color: var(--ink-2); font-size: 16.5px; line-height: 1.72; }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 22px; margin: 10px 0; display: grid; gap: 6px; }
.doc a { color: var(--violet); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(107, 77, 255, .35); }
.doc strong { color: var(--ink); font-weight: 600; }
.doc .caps { text-transform: uppercase; font-size: 14.5px; letter-spacing: .01em; }
.summary { background: linear-gradient(160deg, #f6f3ff, #effaff); border-radius: 22px; padding: 24px 26px; box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 18px; }
.summary h2 { margin-top: 0; font-size: 20px; }
.summary ul { margin-bottom: 0; }
.table-wrap { overflow-x: auto; margin: 14px 0; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.doc table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--ink-2); line-height: 1.55; }
.doc th { background: var(--bg-soft); color: var(--ink); font-weight: 600; font-size: 13.5px; }
.doc tr:last-child td { border-bottom: 0; }
.contact-card { display: grid; gap: 4px; padding: 20px 22px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); margin: 12px 0; }
.contact-card p { margin: 0 !important; }
.steps-list { counter-reset: s; list-style: none; padding: 0 !important; }
.steps-list li { counter-increment: s; display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.steps-list li::before { content: counter(s); flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--violet-soft); color: var(--violet); font-weight: 700; font-size: 14px; }
.legal-bunny { position: absolute; right: max(24px, calc((100vw - var(--maxw)) / 2 + 24px)); top: calc(var(--hdr) + 30px); width: 170px; height: 170px; z-index: 1; }
@media (max-width: 900px) {
  .legal { grid-template-columns: 1fr; gap: 8px; }
  .toc { position: static; max-height: none; background: var(--bg-soft); border-radius: 18px; padding: 16px; }
  .legal-bunny { display: none; }
}
@media print {
  .hdr, .toc, .ftr, .legal-bunny, .aura { display: none !important; }
  .legal { grid-template-columns: 1fr; }
  .legal-hero { padding-top: 0; }
}
