/* ═══════════════════════════════════════════════════════════
   LEGAL.CSS — ONA INC privacy & terms pages
   ═══════════════════════════════════════════════════════════ */

.legal { background: #fff; padding: 72px 0 96px; }
.legal-wrap { max-width: 840px; margin: 0 auto; padding-inline: 24px; position: relative; z-index: 1; }

.legal-updated {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 28px;
  background: var(--mist); color: var(--teal); font-family: var(--font-head);
  font-size: 13px; font-weight: 700; padding: 7px 15px; border-radius: var(--r-pill);
}
.legal-updated svg { width: 15px; height: 15px; }

.legal-intro { font-size: 16.5px; color: var(--text-mid); line-height: 1.8; margin-bottom: 18px; }
.legal-intro strong { color: var(--ink); }

/* Table of contents */
.toc {
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 28px 30px; margin: 34px 0 44px;
}
.toc h2 { font-size: 15px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 16px; }
.toc ol { list-style: none; counter-reset: toc; display: grid; grid-template-columns: 1fr 1fr; gap: 9px 28px; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 10px; font-size: 14.5px; color: var(--text); line-height: 1.5; transition: color 0.2s; }
.toc a::before { content: counter(toc) "."; font-family: var(--font-head); font-weight: 700; color: var(--teal); flex-shrink: 0; }
.toc a:hover { color: var(--teal); }

/* Section blocks */
.legal-sec { padding-top: 34px; margin-top: 34px; border-top: 1px solid var(--border); scroll-margin-top: 100px; }
.legal-sec:first-of-type { border-top: none; }
.legal-sec h2 {
  font-size: clamp(21px, 2.4vw, 27px); letter-spacing: -0.02em; margin-bottom: 14px;
  display: flex; gap: 12px; align-items: baseline;
}
.legal-sec h2 .num { font-size: 15px; font-weight: 800; color: var(--teal); flex-shrink: 0; }
.legal-sec h3 { font-size: 17px; margin: 22px 0 10px; color: var(--ink); }
.legal-sec p { font-size: 15.5px; color: var(--text-mid); line-height: 1.8; margin-bottom: 14px; }
.legal-sec a { color: var(--teal); font-weight: 500; word-break: break-word; }
.legal-sec a:hover { text-decoration: underline; }
.legal-short { display: inline-block; background: var(--grad-soft); border-left: 3px solid var(--cyan); border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 10px 16px; font-size: 14.5px; color: var(--teal); margin-bottom: 14px; }
.legal-short strong { color: var(--teal); }

.legal-list { margin: 4px 0 16px; display: flex; flex-direction: column; gap: 9px; }
.legal-list li { position: relative; padding-left: 22px; font-size: 15px; color: var(--text-mid); line-height: 1.7; }
.legal-list li::before { content: ''; position: absolute; left: 4px; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--grad-btn); }
.legal-list li strong { color: var(--ink); }

.legal-contact { background: var(--paper); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 26px 28px; margin-top: 20px; }
.legal-contact p { margin-bottom: 6px; }
.legal-contact a { font-weight: 600; }

@media (max-width: 620px) {
  .toc ol { grid-template-columns: 1fr; }
}
