/*
 * Thier — legal-page styles
 * 2026-05-08 — built on top of the new design system in
 * `main.css`. Replaces the old `web/styles.css` references
 * the legal pages used to load (which carried dark-mode
 * assumptions and inline rgba(255, …) hacks).
 *
 * Scope: privacy, terms, support pages. Provides the
 * `.legal-shell` wrapper, hero + section spacing, the
 * banner / callout / list / table primitives the legal
 * markup uses, and a clean light-mode read for the body.
 */

.legal-shell {
  padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 8vw, 120px);
  background: var(--bg);
  color: var(--ink);
}

.legal-shell .page-hero,
.legal-shell .page-frame,
.legal-shell .page-grid,
.legal-shell .page-card {
  margin-bottom: 28px;
}

.legal-shell .page-hero {
  max-width: 720px;
  margin-bottom: 40px;
}
.legal-shell .section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-700);
  font-weight: 600;
  margin: 0 0 12px;
}
.legal-shell .section-eyebrow::before {
  content: '';
  width: 22px; height: 1.5px;
  background: currentColor;
  border-radius: 2px;
}
.legal-shell .headline-section {
  font-size: clamp(2rem, 4.4vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0 0 16px;
}
.legal-shell .legal-meta {
  font-size: 0.94rem;
  color: var(--ink-3);
  margin: 0;
}

/* Card containing the legal copy — surface white sitting
   forward of the cream page bg, hairline border, soft xs
   shadow. Reads as a discrete document on the page. */
.legal-shell .legal-card,
.legal-shell .page-frame {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 56px);
  box-shadow: var(--shadow-xs);
}

.legal-shell .legal-copy {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 72ch;
}
.legal-shell .legal-copy h2,
.legal-shell .legal-copy .headline-card {
  font-size: 1.35rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--ink);
  margin: 36px 0 12px;
}
.legal-shell .legal-copy h3 {
  font-size: 1.1rem;
  line-height: 1.3;
  font-weight: 600;
  color: var(--ink);
  margin: 24px 0 8px;
}
.legal-shell .legal-copy p { margin: 0 0 14px; }
.legal-shell .legal-copy a {
  color: var(--teal-700);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(7, 86, 79, 0.32);
  text-underline-offset: 3px;
}
.legal-shell .legal-copy a:hover {
  color: var(--teal-800);
  text-decoration-color: var(--teal-700);
}
.legal-shell .legal-copy strong { color: var(--ink); }

.legal-shell .legal-section {
  margin: 0 0 28px;
}
.legal-shell .legal-section:first-child > h2,
.legal-shell .legal-section:first-child > .headline-card {
  margin-top: 0;
}
.legal-shell .legal-list {
  margin: 0 0 14px;
  padding-left: 22px;
}
.legal-shell .legal-list li { margin-bottom: 6px; }
.legal-shell .legal-list li::marker { color: var(--ink-4); }

.legal-shell .legal-banner {
  background: rgba(242, 169, 59, 0.10);
  border: 1px solid rgba(242, 169, 59, 0.32);
  border-radius: var(--r-md);
  padding: 14px 18px;
  margin: 0 0 28px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.legal-shell .legal-banner strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.legal-shell .legal-callout {
  background: var(--teal-50);
  border-left: 3px solid var(--teal-500);
  padding: 14px 18px;
  margin: 16px 0;
  border-radius: var(--r-sm);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink-2);
}

.legal-shell .legal-table-wrap {
  overflow-x: auto;
  margin: 14px 0 22px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
}
.legal-shell .legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  line-height: 1.5;
}
.legal-shell .legal-table th,
.legal-shell .legal-table td {
  border: 1px solid var(--line);
  padding: 12px 14px;
  vertical-align: top;
  text-align: left;
}
.legal-shell .legal-table th {
  background: var(--bg-2);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.legal-shell .legal-table td { color: var(--ink-2); }

/* Support page grid */
.legal-shell .page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.legal-shell .page-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-xs);
}
.legal-shell .page-card .headline-card {
  font-size: 1.05rem;
  line-height: 1.3;
  font-weight: 600;
  margin: 0 0 8px;
}
.legal-shell .page-card p {
  margin: 0;
  font-size: 0.96rem;
  color: var(--ink-3);
  line-height: 1.55;
}
.legal-shell .page-card a {
  color: var(--teal-700);
  font-weight: 500;
}

@media (max-width: 760px) {
  .legal-shell .page-grid { grid-template-columns: 1fr; }
}

.legal-shell .footer-link { color: var(--teal-700); }
.legal-shell .fade-in { opacity: 1 !important; }
