/* ── Legal / policy pages (privacy, terms) ───────────────────
   UX pass WA-2026-07-01: readable document layout with a clear
   typographic hierarchy, constrained line-length for readability,
   a scannable "at a glance" summary, and structured sections.
   Uses the shared design tokens from base.css. No inline styles
   (CSP style-src-elem 'self'). */

/* Drop the site-wide grid overlay on document pages for a calmer read. */
body.legal-doc::before { display: none; }

.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 0 8px;
}

/* -- Document header -------------------------------------- */
.legal-header {
  text-align: left;
  margin-bottom: 32px;
}
.legal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.25);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}
.legal-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.legal-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 12px;
}
.legal-lede {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 60ch;
}

/* -- At-a-glance summary ---------------------------------- */
.legal-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 40px;
}
.legal-summary-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  background: var(--surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.legal-summary-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(74,222,128,0.12);
  color: var(--success);
}
.legal-summary-icon svg {
  width: 18px;
  height: 18px;
}
.legal-summary-text {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  padding-top: 4px;
}

/* -- Document body ---------------------------------------- */
.legal-body {
  max-width: 68ch;
}
.legal-section {
  padding: 28px 0;
  border-top: 1px solid var(--border);
}
.legal-section:first-child {
  border-top: none;
  padding-top: 0;
}
.legal-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.legal-section p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.legal-section p:last-child {
  margin-bottom: 0;
}
.legal-section ul {
  margin: 4px 0 0;
  padding-left: 20px;
}
.legal-section li {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 6px;
}

/* -- Contact / closing block ------------------------------ */
.legal-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
  padding: 24px 28px;
  background: var(--surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.legal-contact-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.legal-contact-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* -- Responsive ------------------------------------------- */
@media (max-width: 600px) {
  .legal-header h1 { font-size: 1.9rem; }
  .legal-lede { font-size: 1rem; }
  .legal-summary { grid-template-columns: 1fr; }
  .legal-contact { flex-direction: column; align-items: flex-start; }
}
