/* Legal articles (/terms, /privacy): plain, readable long-form on the dark theme.
   Shares site.css tokens; this file is only the article typography and the small
   header/footer trims the legal pages need. */

.legal-main { padding-block: clamp(32px, 6vh, 64px) clamp(56px, 10vh, 110px); }

.legal-hero { max-width: 760px; margin: 0 auto clamp(28px, 4vw, 44px); }
.legal-hero .eyebrow { margin-bottom: 14px; }
.legal-hero h1 { font-size: clamp(36px, 5.6vw, 60px); line-height: 1.02; }
.legal-hero .lead { margin-top: 18px; }
.legal-meta { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 10px; font-size: 13px; color: var(--mist); }
.legal-meta span { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); }
.legal-meta b { color: var(--ash); font-weight: 600; }

.legal-nav { max-width: 760px; margin: 0 auto 36px; display: flex; gap: 10px; flex-wrap: wrap; }
.legal-nav a { font-size: 14px; font-weight: 500; color: var(--ash); padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-strong); transition: color .2s, background-color .2s, border-color .2s; }
.legal-nav a:hover { color: var(--bone); background: var(--card); }
.legal-nav a[aria-current="page"] { color: var(--night); background: var(--bone); border-color: var(--bone); }

/* The article body. Comfortable measure, generous rhythm. */
.article { max-width: 760px; margin: 0 auto; font-size: 17px; line-height: 1.68; color: var(--ash); }
.article > p:first-child { color: var(--bone); }
.article p { margin: 0 0 20px; }
.article a { color: var(--accent-soft); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; text-decoration-color: rgba(93, 204, 255, .4); transition: color .2s, text-decoration-color .2s; }
.article a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.article strong { color: var(--bone); font-weight: 600; }
.article em { font-style: italic; }

.article h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.12; letter-spacing: -0.03em; color: var(--bone); margin: 52px 0 18px; padding-top: 14px; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.article h2:first-of-type { margin-top: 36px; }
.article h3 { font-size: 19px; color: var(--bone); margin: 32px 0 12px; }

.article ul, .article ol { margin: 0 0 20px; padding-left: 0; list-style: none; display: grid; gap: 12px; }
.article li { position: relative; padding-left: 30px; }
.article ul > li::before { content: ''; position: absolute; left: 8px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.article ol { counter-reset: li; }
.article ol > li { counter-increment: li; }
.article ol > li::before { content: counter(li); position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--bone); border: 1px solid var(--line-strong); background: var(--night); }
.article li strong:first-child { color: var(--bone); }

/* Tables (the privacy policy uses several). Scroll sideways on narrow screens. */
.table-wrap { margin: 0 0 24px; overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--card); -webkit-overflow-scrolling: touch; }
.article table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; min-width: 520px; }
.article th, .article td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.article thead th { color: var(--bone); font-weight: 600; background: var(--raised); position: sticky; top: 0; }
.article tbody tr:last-child td { border-bottom: 0; }
.article td:first-child { color: var(--bone); font-weight: 500; }
.article table strong { color: var(--bone); }

.article hr { border: 0; border-top: 1px solid var(--line); margin: 44px 0; }

/* A quiet callout for the "contact us" blocks. */
.legal-contact { margin: 44px auto 0; max-width: 760px; border-radius: 24px; border: 1px solid var(--line); background: linear-gradient(135deg, var(--card), var(--sheet)); padding: clamp(24px, 3.4vw, 36px); }
.legal-contact h2 { border: 0; margin: 0 0 10px; padding: 0; font-size: 22px; }
.legal-contact p { margin: 0 0 6px; color: var(--ash); }
.legal-contact a { color: var(--accent-soft); }

@media (max-width: 600px) {
  .article { font-size: 16px; }
  .article h2 { margin-top: 40px; }
}
