/* legal.css — styles for /privacy, /terms, /contact
   Inherits color tokens from landing.css (--lp-bg, --lp-surface, --lp-text, --lp-accent, etc.)
   Add as /legal.css?v=d20260521a
*/

.legal-page {
  background: var(--lp-bg);
  color: var(--lp-text);
}

.legal-shell {
  padding: 64px 20px 96px;
  min-height: calc(100vh - 200px);
}

.legal-container {
  max-width: 860px;
  margin: 0 auto;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.65;
  font-size: 16px;
}

/* HERO */
.legal-hero {
  border-bottom: 1px solid var(--lp-border);
  padding-bottom: 28px;
  margin-bottom: 40px;
}
.legal-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lp-accent);
  margin: 0 0 12px;
}
.legal-title {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1.1;
  margin: 0 0 12px;
  color: #ffffff;
}
.legal-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  color: var(--lp-text-muted);
  margin: 0 0 20px;
}
.legal-lede {
  font-size: 17px;
  color: var(--lp-text-muted);
  margin: 0;
  max-width: 70ch;
}

/* TOC */
.legal-toc {
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 48px;
}
.legal-toc h2 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lp-text-muted);
  margin: 0 0 14px;
}
.legal-toc ol {
  list-style: decimal;
  padding-left: 22px;
  margin: 0;
  columns: 2;
  column-gap: 32px;
}
.legal-toc li {
  margin: 4px 0;
  break-inside: avoid;
}
.legal-toc a {
  color: var(--lp-text);
  text-decoration: none;
  font-size: 14px;
}
.legal-toc a:hover {
  color: var(--lp-accent);
  text-decoration: underline;
}

/* SECTIONS */
.legal-section {
  margin: 0 0 44px;
  scroll-margin-top: 120px;
}
.legal-section h2 {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 22px;
  margin: 0 0 16px;
  color: #ffffff;
}
.legal-section h3 {
  font-weight: 600;
  font-size: 16px;
  margin: 24px 0 8px;
  color: var(--lp-text);
}
.legal-section p,
.legal-section li {
  color: var(--lp-text-muted);
}
.legal-section p {
  margin: 0 0 14px;
}
.legal-section ul {
  padding-left: 22px;
  margin: 0 0 16px;
}
.legal-section li {
  margin: 6px 0;
}
.legal-section a {
  color: var(--lp-accent);
  text-decoration: none;
}
.legal-section a:hover {
  text-decoration: underline;
}
.legal-section code {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--lp-border);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--lp-text);
}

/* CALLOUT */
.legal-callout {
  background: rgba(79, 152, 163, 0.08);
  border-left: 3px solid var(--lp-accent);
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  margin: 16px 0 20px;
  color: var(--lp-text) !important;
}

/* High-emphasis warning callout (used for the top-level capital-at-risk
   warning at the start of §8 Financial information disclaimers). */
.legal-callout-warn {
  background: rgba(232, 156, 60, 0.10);
  border-left: 3px solid #e89c3c;
}
.legal-callout-warn strong { color: #f3c27a; }

/* Numbered subsection headings inside legal sections. */
.legal-section h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--lp-text);
  margin: 22px 0 8px;
  letter-spacing: 0.1px;
}

/* TABLE */
.legal-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--lp-border);
  border-radius: 10px;
  margin: 16px 0 22px;
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.legal-table th,
.legal-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--lp-border);
  vertical-align: top;
}
.legal-table th {
  background: var(--lp-surface);
  color: var(--lp-text);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.legal-table tr:last-child td { border-bottom: none; }
.legal-table td { color: var(--lp-text-muted); }

/* CONTACT */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 0 0 48px;
}
.contact-card {
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: 12px;
  padding: 22px 22px 18px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.contact-card:hover {
  border-color: var(--lp-accent);
  transform: translateY(-2px);
}
.contact-card h2 {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 17px;
  margin: 0 0 8px;
  color: #ffffff;
}
.contact-card p {
  font-size: 14px;
  color: var(--lp-text-muted);
  margin: 0 0 12px;
}
.contact-action { margin: 14px 0 6px !important; }
.contact-link {
  color: var(--lp-accent);
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  word-break: break-all;
}
.contact-link:hover { text-decoration: underline; }
.contact-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px !important;
  color: var(--lp-text-muted) !important;
  margin: 6px 0 0 !important;
}

.contact-form-section {
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: 14px;
  padding: 28px 28px 24px;
  margin: 0 0 40px;
}
.contact-form-section h2 {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #ffffff;
  margin: 0 0 6px;
}
.contact-form-intro {
  color: var(--lp-text-muted);
  font-size: 14px;
  margin: 0 0 22px;
}
.contact-form { display: grid; gap: 16px; }
.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 560px) {
  .contact-form-row { grid-template-columns: 1fr; }
  .legal-toc ol { columns: 1; }
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--lp-text-muted);
  font-weight: 500;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  background: var(--lp-bg);
  border: 1px solid var(--lp-border);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--lp-text);
  font-family: inherit;
  font-size: 14.5px;
  transition: border-color 0.15s ease;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--lp-accent);
}
.contact-form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.contact-submit {
  background: var(--lp-cta);
  color: #0d1114;
  border: none;
  border-radius: 8px;
  padding: 11px 22px;
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.contact-submit:hover { background: var(--lp-cta-hover); }
.contact-form-note {
  font-size: 12px;
  color: var(--lp-text-muted);
  margin: 0;
  flex: 1 1 240px;
}
.contact-form-note a { color: var(--lp-accent); }

.contact-meta-block {
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: 12px;
  padding: 22px 26px;
}
.contact-meta-block h2 {
  font-size: 17px;
  margin: 0 0 10px;
  color: #ffffff;
}
.contact-meta-block p {
  font-size: 14px;
  color: var(--lp-text-muted);
}
.contact-meta-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--lp-text-muted);
}
.contact-meta-list li { margin: 6px 0; }
.contact-meta-list a { color: var(--lp-accent); text-decoration: none; }
.contact-meta-list a:hover { text-decoration: underline; }
