/* ============================================================
   LEGAL — typography for long-form legal documents
   (Privacy policy, public offer, terms of use). Reuses the
   landing's --paper palette and dot-grid background, but
   replaces the wide max-width with a readable column.
   ============================================================ */

.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 36px 96px;
  position: relative;     /* stack above .lp-dotgrid */
  z-index: 1;
}

/* === Header ============================================== */
.legal-head {
  margin-bottom: 56px;
  padding-bottom: 32px;
  border-bottom: 1px dashed var(--paper-edge);
}
.legal-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 5px 11px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  border-radius: 99px;
  margin-bottom: 18px;
}
.legal-h1 {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--paper-fg);
  margin: 0 0 16px;
}
.legal-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--paper-muted);
  line-height: 1.7;
  margin: 0;
}

/* === Sections ============================================ */
.legal-section {
  margin-bottom: 40px;
}
.legal-section h2 {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--paper-fg);
  margin: 0 0 16px;
  /* Numbered lead-in via the inherent "1. ..." in the heading text;
     kept in the markup itself so screen-readers and search engines
     parse the structure naturally. */
}
.legal-section p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--paper-fg-2);
  margin: 0 0 14px;
}
.legal-section p strong { color: var(--paper-fg); }
.legal-section ul {
  font-size: 15px;
  line-height: 1.65;
  color: var(--paper-fg-2);
  margin: 0 0 14px;
  padding-left: 22px;
}
.legal-section ul li { margin-bottom: 8px; }
.legal-section ul li::marker { color: var(--accent); }
.legal-section a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-section a:hover { color: var(--accent-hover); }

/* Definitions block — used in section 2 */
.legal-defs {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 2fr;
  gap: 12px 24px;
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}
.legal-defs dt {
  font-weight: 700;
  color: var(--paper-fg);
  font-family: 'Manrope', sans-serif;
}
.legal-defs dd {
  margin: 0;
  color: var(--paper-fg-2);
}

/* Contact block — section 14 */
.legal-contact {
  background: var(--paper-2);
  border: 1px solid var(--paper-edge);
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--paper-fg);
}
.legal-contact a {
  color: var(--accent);
  font-weight: 600;
}

/* TODO markers — visible reminders to swap placeholders before launch.
   Yellow background, monospace, slightly muted so they don't drown the
   real text but obviously scream "fix me". Hidden from print. */
.legal-todo {
  display: inline-block;
  background: var(--warning-soft, rgba(244, 178, 102, 0.18));
  color: var(--warning, #b86e00);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px dashed var(--warning, #b86e00);
  margin-left: 6px;
}

/* === Footer ============================================== */
.legal-foot {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px dashed var(--paper-edge);
  font-size: 13px;
  color: var(--paper-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.legal-foot a {
  color: var(--paper-fg-2);
  text-decoration: none;
}
.legal-foot a:hover { color: var(--accent); }

/* === Responsive ========================================== */
@media (max-width: 720px) {
  .legal-page { padding: 40px 22px 80px; }
  .legal-head { margin-bottom: 36px; }
  .legal-section { margin-bottom: 32px; }
  .legal-defs { grid-template-columns: 1fr; gap: 4px 0; }
  .legal-defs dd { margin-bottom: 12px; }
  .legal-foot { flex-direction: column; }
}

/* === Print-friendly ====================================== */
@media print {
  .lp-nav, .lp-dotgrid, .legal-todo { display: none !important; }
  .legal-page { padding: 0; max-width: none; }
  .legal-section h2 { color: #000; }
  .legal-section p, .legal-section ul, .legal-section li { color: #000; }
}
