/* ═══════════ CAIO — legal pages (Privacy / Terms) — extends workers.css ═══════════ */

.lhero {
  background:
    radial-gradient(1000px 520px at 92% -10%, rgba(0,182,155,0.10), transparent 60%),
    radial-gradient(820px 460px at -5% 8%, rgba(59,130,246,0.06), transparent 55%),
    #fff;
  padding: 76px 0 44px;
  border-bottom: 1px solid var(--border-lt);
}
.lhero-title { font-size: 50px; font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; color: var(--dark); margin-top: 16px; }
.lhero-title .dot { color: var(--accent); }
.lhero-meta { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 22px; }
.lhero-meta-item { font-size: 13px; color: var(--text-sec); }
.lhero-meta-item strong { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; white-space: nowrap; }

/* ── layout: sticky TOC + prose ── */
.legal-wrap { padding: 56px 0 96px; }
.legal-grid { display: grid; grid-template-columns: 232px 1fr; gap: 64px; align-items: start; }

.legal-toc { position: sticky; top: 92px; }
.legal-toc-h { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.legal-toc ol { list-style: none; counter-reset: toc; display: flex; flex-direction: column; gap: 2px; }
.legal-toc a {
  counter-increment: toc;
  display: flex; gap: 10px; align-items: baseline;
  padding: 7px 12px; border-radius: 8px;
  font-size: 13.5px; font-weight: 500; line-height: 1.35; color: var(--text-sec);
  text-decoration: none; transition: background .18s, color .18s;
}
.legal-toc a::before { content: counter(toc, decimal-leading-zero); font-size: 11px; font-weight: 700; color: var(--light); font-variant-numeric: tabular-nums; }
.legal-toc a:hover { background: var(--surface-alt); color: var(--text); }

/* ── prose ── */
.prose { max-width: 720px; }
.prose-lead { font-size: 17px; line-height: 1.65; color: var(--text-sec); text-wrap: pretty; margin-bottom: 8px; }
.prose section { padding-top: 44px; scroll-margin-top: 88px; }
.prose section:first-of-type { padding-top: 36px; }
.prose h2 {
  display: flex; align-items: baseline; gap: 14px;
  font-size: 23px; font-weight: 800; letter-spacing: -0.02em; color: var(--dark); margin-bottom: 16px;
}
.prose h2 .num { font-size: 13px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.prose h3 { font-size: 15.5px; font-weight: 700; color: var(--text); margin: 26px 0 8px; }
.prose p { font-size: 15px; line-height: 1.72; color: var(--text-sec); margin-bottom: 14px; text-wrap: pretty; }
.prose ul { list-style: none; display: flex; flex-direction: column; gap: 9px; margin: 4px 0 16px; }
.prose ul li { position: relative; padding-left: 22px; font-size: 15px; line-height: 1.65; color: var(--text-sec); text-wrap: pretty; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); }
.prose a { color: var(--accent-dark); text-decoration: none; border-bottom: 1px solid rgba(0,155,132,0.3); }
.prose a:hover { border-bottom-color: var(--accent-dark); }
.prose strong { color: var(--text); font-weight: 700; }

/* callout */
.legal-note {
  margin: 18px 0 6px; padding: 16px 20px;
  background: var(--surface-alt); border: 1px solid var(--border-lt); border-left: 3px solid var(--accent);
  border-radius: 10px;
}
.legal-note p { margin: 0; font-size: 13.5px; color: var(--text-sec); }

/* divider + contact card at end */
.legal-contact {
  margin-top: 52px; padding: 28px 30px;
  background: var(--dark);
  border-radius: 16px;
}
.legal-contact h3 { color: #fff; font-size: 18px; font-weight: 700; margin: 0 0 6px; }
.legal-contact p { font-size: 14px; color: rgba(255,255,255,0.62); margin: 0; }
.legal-contact a { color: var(--accent); border: none; font-weight: 600; }

@media (max-width: 880px) {
  .legal-grid { grid-template-columns: 1fr; gap: 8px; }
  .legal-toc { display: none; }
  .lhero-title { font-size: 38px; }
}
