/* Public compliance pages: /opt-in, /privacy, /terms.
   Reuses tokens.css and base.css; adds only long-form prose and one form. */

.legal-main { padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 104px); }

.legal-head { margin-bottom: clamp(28px, 4vw, 44px); }
.legal-head h1 {
  font-family: var(--font-display);
  font-size: var(--step-h2);
  letter-spacing: var(--tracking-h2);
  margin: 0 0 10px;
}
.legal-head .lede { color: var(--ink-soft); font-size: var(--step-lede); margin: 0; max-width: 60ch; }
.legal-meta {
  margin-top: 14px; color: var(--ink-faint);
  font-family: var(--font-mono); font-size: var(--step-micro);
}

.prose { max-width: 72ch; }
.prose h2 {
  font-family: var(--font-display);
  font-size: var(--step-h3);
  letter-spacing: -0.02em;
  margin: clamp(30px, 4vw, 44px) 0 10px;
}
.prose h3 { font-size: var(--step-h4); margin: 26px 0 8px; }
.prose p, .prose li { color: var(--ink-soft); line-height: 1.65; }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 16px; padding-left: 1.15em; }
.prose li { margin-bottom: 7px; }
.prose strong { color: var(--ink); }
.prose a { color: var(--accent-strong); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 34px 0; }

/* ---- The opt-in form ---- */

.optin-grid { display: grid; gap: clamp(28px, 4vw, 48px); align-items: start; }
@media (min-width: 900px) { .optin-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); } }

.optin-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: clamp(22px, 3.5vw, 32px);
  min-width: 0;
}
.optin-card h2 { font-family: var(--font-display); font-size: var(--step-h3); margin: 0 0 6px; }
.optin-card .sub { color: var(--ink-soft); margin: 0 0 22px; font-size: var(--step-sm); }

.f-row { margin-bottom: 16px; }
.f-row label { display: block; font-weight: 600; font-size: var(--step-sm); margin-bottom: 6px; }
.f-row .opt { color: var(--ink-faint); font-weight: 400; }
.f-row input[type="text"],
.f-row input[type="tel"],
.f-row input[type="email"] {
  width: 100%; box-sizing: border-box;
  padding: 11px 13px;
  font: inherit; font-size: var(--step-body);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}
.f-row input:focus-visible { outline: none; box-shadow: var(--focus-ring); border-color: var(--accent); }
.f-help { color: var(--ink-faint); font-size: var(--step-micro); margin: 6px 0 0; }

/* The consent block. Deliberately prominent: the disclosure is the point of
   the page, not fine print to be scrolled past. */
.consent-block {
  margin: 22px 0 18px;
  padding: 18px;
  background: var(--paper-sunk);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}
.consent-row { display: flex; gap: 12px; align-items: flex-start; }
.consent-row input[type="checkbox"] {
  flex: none; width: 22px; height: 22px; margin: 2px 0 0;
  accent-color: var(--accent); cursor: pointer;
}
.consent-row input[type="checkbox"]:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.consent-text { font-size: var(--step-sm); line-height: 1.6; color: var(--ink); cursor: pointer; }
.consent-links { margin: 14px 0 0; font-size: var(--step-sm); }
.consent-links a { color: var(--accent-strong); font-weight: 600; }
.consent-links .dot { color: var(--ink-faint); margin: 0 8px; }

.optin-actions { margin-top: 20px; }
.optin-actions .btn { width: 100%; justify-content: center; }

.disclosure-list { list-style: none; padding: 0; margin: 0; }
.disclosure-list li {
  padding: 13px 0; border-bottom: 1px solid var(--line);
  color: var(--ink-soft); line-height: 1.55;
}
.disclosure-list li:last-child { border-bottom: 0; }
.disclosure-list strong { display: block; color: var(--ink); margin-bottom: 3px; }

.legal-note {
  margin-top: 30px; padding: 16px 18px;
  border-left: 3px solid var(--accent);
  background: var(--accent-tint);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink); font-size: var(--step-sm); line-height: 1.6;
}

.confirm-panel {
  padding: clamp(26px, 4vw, 38px);
  background: var(--positive-tint);
  border: 1px solid var(--positive);
  border-radius: var(--radius-lg);
  max-width: 60ch;
}
.confirm-panel h2 { font-family: var(--font-display); font-size: var(--step-h3); margin: 0 0 8px; color: var(--positive); }
.confirm-panel p { color: var(--ink-soft); margin: 0 0 10px; line-height: 1.6; }

.form-error {
  margin: 0 0 18px; padding: 12px 14px;
  background: #FBE9E6; border: 1px solid #F0CFC8; color: #6E2417;
  border-radius: var(--radius); font-size: var(--step-sm);
}

/* ---- /contact ---- */

.contact-methods {
  display: grid;
  gap: 14px;
  margin: 0 0 clamp(30px, 4vw, 44px);
  max-width: 720px;
}
@media (min-width: 760px) { .contact-methods { grid-template-columns: repeat(3, 1fr); max-width: none; } }

/* A whole card is the tap target, comfortably past the 44px minimum on a
   phone, so nobody has to hit a line of text with a thumb. */
.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-height: 92px;
  padding: 20px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.contact-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}
.contact-card:focus-visible { outline: none; box-shadow: var(--focus-ring); }

.contact-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: var(--radius);
  background: var(--accent-tint);
  color: var(--accent-strong);
}
.contact-icon svg { width: 21px; height: 21px; }

.contact-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.contact-kind {
  font-family: var(--font-mono);
  font-size: var(--step-micro);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--ink-faint);
}
.contact-value {
  font-family: var(--font-display);
  font-size: var(--step-h4);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.contact-note { font-size: var(--step-micro); color: var(--ink-soft); }

.contact-foot { max-width: 66ch; }
@media (prefers-reduced-motion: reduce) {
  .contact-card, .contact-card:hover { transition: none; transform: none; }
}
