/* legal.css — shared styles for privacy.html, terms.html and support.html.
   Loads after styles.css and reuses its tokens (--bg, --mint, --muted, …),
   so these pages stay visually in step with the marketing site. */

.legal-main {
  padding-top: 120px;
  padding-bottom: 96px;
}

.legal-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 32px;
  margin-bottom: 8px;
}

.legal-header h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.legal-meta {
  color: var(--muted-2);
  font-size: 0.9rem;
  margin: 0;
}

.legal-body {
  max-width: 68ch;
}

.legal-body h2 {
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  margin: 44px 0 12px;
  color: var(--text);
}

.legal-body p,
.legal-body li {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
  margin: 12px 0;
}

.legal-body strong { color: var(--text); font-weight: 600; }

.legal-body ul {
  padding-left: 1.15rem;
  margin: 12px 0;
}

.legal-body li { margin: 8px 0; }

.legal-body a {
  color: var(--mint);
  text-decoration: none;
  border-bottom: 1px solid rgba(45, 212, 191, 0.35);
}

.legal-body a:hover { border-bottom-color: var(--mint); }

/* Lede paragraph directly under the title */
.legal-lede {
  color: var(--text) !important;
  font-size: 1.12rem !important;
  line-height: 1.65 !important;
  margin: 28px 0 8px !important;
}

/* Callout used for the "not medical advice" notice and the support contact card */
.legal-callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--mint);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 28px 0;
}

.legal-callout p { margin: 6px 0; }
.legal-callout p:first-child { margin-top: 0; }
.legal-callout p:last-child { margin-bottom: 0; }

.legal-callout.warn { border-left-color: var(--amber); }

/* Support page contact grid */
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.support-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.support-card h3 {
  font-size: 1.02rem;
  margin: 0 0 8px;
  color: var(--text);
}

.support-card p {
  margin: 0;
  font-size: 0.96rem;
  color: var(--muted);
  line-height: 1.6;
}

.support-card a {
  color: var(--mint);
  text-decoration: none;
}

.support-card a:hover { text-decoration: underline; }

/* Back-to-site link above the title */
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  margin-bottom: 28px;
}

.legal-back:hover { color: var(--text); }

@media (max-width: 640px) {
  .legal-main { padding-top: 96px; padding-bottom: 64px; }
}
