/* ==========================================================================
   Shared stylesheet for the three static content pages — privacy.html,
   terms.html, contact.html. Loaded alongside home.css (same pattern as
   beta.css), which supplies every token/font/header/footer/.btn class this
   file relies on — no new colors introduced beyond home.css's own tokens.
   ========================================================================== */

/* ── Page header, simplified ── */
/* These pages aren't part of the scrolling marketing page home.html's nav
   anchors (#pricing etc.) point into, so the header here only ever needs
   a way back to the homepage — no full .site-nav. */
.legal-page-header { border-bottom: 1px solid var(--border); }

/* ── Hero strip: title + last-updated date ── */
.legal-hero {
  padding: 56px 32px 40px;
  max-width: 800px;
  margin: 0 auto;
  box-sizing: border-box;
}
.legal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--brand);
  border: 1px solid var(--placeholder-border);
  background: var(--placeholder-bg);
  border-radius: 20px;
  padding: 6px 14px;
  margin-bottom: 18px;
}
.legal-hero h1 {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.15;
  margin: 0 0 10px;
  text-wrap: balance;
}
.legal-updated { font-size: 13px; color: var(--dim); margin: 0; }

/* ── Table of contents ── */
.legal-toc {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 32px 8px;
  box-sizing: border-box;
}
.legal-toc-inner {
  border: 1px solid var(--border);
  background: var(--bg-raised);
  border-radius: 12px;
  padding: 20px 24px;
}
.legal-toc-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}
.legal-toc ol {
  margin: 0;
  padding: 0 0 0 20px;
  columns: 2;
  column-gap: 32px;
}
.legal-toc li { break-inside: avoid; margin-bottom: 8px; }
.legal-toc a { font-size: 14px; color: var(--text); }
.legal-toc a:hover { color: var(--brand); }

/* ── Body copy ── */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 8px 32px 80px;
  box-sizing: border-box;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}
/* scroll-margin-top has to live on the anchor target itself — that's the
   <section id="..."> the browser actually scrolls to when you click a TOC
   link or land on a #hash URL, not the <h2> inside it. Having it only on
   h2 was the bug: the section (with its own 44px margin-top above) landed
   flush against the sticky header, hidden underneath it. */
.legal-content section { margin-top: 44px; scroll-margin-top: 96px; }
.legal-content h2 {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
  margin: 0 0 14px;
}
.legal-content h3 {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  margin: 22px 0 8px;
}
.legal-content p { margin: 0 0 14px; }
.legal-content ul, .legal-content ol { margin: 0 0 14px; padding-left: 22px; }
.legal-content li { margin-bottom: 6px; }
.legal-content strong { color: var(--text); font-weight: 600; }
.legal-content a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.legal-content a:hover { color: var(--brand-hover); }

.legal-callout {
  border: 1px solid var(--placeholder-border);
  background: var(--placeholder-bg);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--text);
}
.legal-callout strong { color: var(--brand); }

.legal-table-wrap { overflow-x: auto; margin: 0 0 14px; }
.legal-content table { width: 100%; border-collapse: collapse; font-size: 14px; }
.legal-content th, .legal-content td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.legal-content th { color: var(--text); font-weight: 600; white-space: nowrap; }

@media (max-width: 700px) {
  .legal-hero { padding: 40px 20px 28px; }
  .legal-hero h1 { font-size: 28px; }
  .legal-toc { padding: 0 20px 8px; }
  .legal-toc ol { columns: 1; }
  .legal-content { padding: 8px 20px 60px; }
}

/* ── Contact page ── */
.contact-hero {
  max-width: 640px;
  margin: 0 auto;
  padding: 72px 32px 96px;
  box-sizing: border-box;
  text-align: center;
}
.contact-hero h1 {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 34px;
  margin: 18px 0 12px;
}
.contact-hero > p {
  color: var(--muted);
  font-size: 16px;
  max-width: 46ch;
  margin: 0 auto 40px;
}
.contact-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}
.contact-card {
  flex: 1 1 240px;
  max-width: 280px;
  border: 1px solid var(--border);
  background: var(--bg-raised);
  border-radius: 14px;
  padding: 28px 22px;
  text-align: left;
}
.contact-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--placeholder-bg);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.contact-card-icon svg { width: 18px; height: 18px; }
.contact-card h3 {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  margin: 0 0 6px;
}
.contact-card p {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 16px;
}
.contact-card .btn { width: 100%; }

/* Discord's brand blurple, same one deliberate departure from home.css's
   own palette used elsewhere on the site for this exact button. */
.contact-discord-btn { background: #5865F2; color: #fff; border-color: #5865F2; }
.contact-discord-btn:hover { background: #4752C4; border-color: #4752C4; }
.contact-discord-btn svg { width: 16px; height: 16px; }

@media (max-width: 700px) {
  .contact-hero { padding: 48px 20px 64px; }
  .contact-hero h1 { font-size: 26px; }
}
