/* ==========================================================================
   Legal pages (privacy, terms): readable, scannable, generous spacing.
   ========================================================================== */
.legal { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(88px, 11vw, 144px); }

.legal-head h1 { font-size: clamp(38px, 5.4vw, 60px); }
.legal-date { margin-top: 14px; font-size: 15px; color: var(--muted); }
.legal-intro { margin-top: 28px; font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 56ch; }

/* ---------- Short version ---------- */
ul.keys {
  margin-top: 40px; padding: 26px 28px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  display: grid; gap: 14px; list-style: none;
}
.keys li { display: flex; align-items: flex-start; gap: 14px; font-size: 17px; line-height: 1.45; color: var(--ink); font-weight: 500; }
.keys svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--olive); }

/* ---------- Table of contents ---------- */
.toc { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line-2); }
.toc-title { margin-bottom: 14px; font-size: 14px; font-weight: 600; color: var(--muted); }
.toc ol { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 40px; counter-reset: toc; }
.toc li { break-inside: avoid; counter-increment: toc; }
.toc a {
  display: flex; align-items: baseline; gap: 12px; padding: 7px 0;
  font-size: 16px; line-height: 1.35; color: var(--ink-2); text-decoration: none;
  transition: color 0.2s;
}
.toc a::before { content: counter(toc, decimal-leading-zero); font-size: 13px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 1.6em; }
.toc a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }

/* ---------- Sections ---------- */
.legal-body { margin-top: clamp(48px, 6vw, 72px); }
.legal-body section { padding-top: clamp(36px, 5vw, 56px); scroll-margin-top: calc(var(--nav-h) + 12px); }
.legal-body section + section { margin-top: clamp(8px, 2vw, 16px); border-top: 1px solid var(--line); }
.legal-body h2 { font-size: clamp(26px, 3.2vw, 32px); line-height: 1.15; letter-spacing: -0.03em; font-weight: 700; margin-bottom: 18px; }
.legal-body h3 { font-size: 19px; line-height: 1.3; letter-spacing: -0.012em; font-weight: 650; margin: 30px 0 10px; }
.legal-body p, .legal-body li { font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.legal-body p + p { margin-top: 16px; }
.legal-body p + ul, .legal-body ul + p, .legal-body p + ol, .legal-body ol + p { margin-top: 16px; }
.legal-body ul, .legal-body ol { padding: 0; list-style: none; display: grid; gap: 10px; }
.legal-body ul li { position: relative; padding-left: 24px; }
.legal-body ul li::before { content: ""; position: absolute; left: 4px; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: var(--olive-2); }
.legal-body ol { counter-reset: item; }
.legal-body ol li { position: relative; padding-left: 32px; counter-increment: item; }
.legal-body ol li::before { content: counter(item); position: absolute; left: 0; top: 0.1em; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); color: var(--ink-2); font-size: 12.5px; font-weight: 650; line-height: 1; }
.legal-body strong { color: var(--ink); font-weight: 650; }
.legal-body a { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; transition: text-decoration-color 0.2s; }
.legal-body a:hover { text-decoration-color: var(--ink); }

.legal-contact { margin-top: clamp(48px, 6vw, 72px); padding: 28px; background: var(--paper-2); border-radius: var(--radius); }
.legal-contact p { font-size: 17px; color: var(--ink-2); }

@media (max-width: 640px) {
  .toc ol { columns: 1; }
  .keys { padding: 22px 20px; }
  .legal-body p, .legal-body li { font-size: 16.5px; }
}
