/* ================================================================
   Matia Labs - long-form legal pages (Terms, Privacy)
   Layers on top of style.css, reusing its design tokens (--paper,
   --ink, --vermilion, --serif, --sans, --mono, --max, etc.) so the
   legal pages read as part of the redesigned matialabs.com site.
   ================================================================ */

/* ---------- legal page header band ---------- */
.legal-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.5rem 1.5rem 2.6rem;
  border-bottom: 1px solid var(--line);
}
.legal-eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--vermilion);
}
.legal-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 1.1rem 0 1.1rem;
}
.legal-lede {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 62ch;
}
.legal-updated {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-top: 1.5rem;
}

/* ---------- prose body ---------- */
/* Share the hero's full container so the prose left-aligns with the page
   header and the "Terms & Conditions" title; cap the reading measure on the
   child blocks instead of centering a narrow column (which floated the body
   off to the right, misaligned with the left-aligned hero). */
.legal {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.5rem 4.5rem;
}
.legal > * { max-width: 74ch; }
.legal > p:first-child { margin-top: 0; }
.legal h2 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 1.45rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 0.9rem;
  padding-top: 1.9rem;
  margin-top: 2.4rem;
  border-top: 1px solid var(--line-soft);
}
.legal h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.12rem;
  margin: 1.8rem 0 0.5rem;
}
.legal p { margin-bottom: 1.2rem; }
.legal ul, .legal ol { margin: 0 0 1.4rem 1.4rem; }
.legal li { margin-bottom: 0.5rem; }
.legal a {
  color: var(--vermilion);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.legal a:hover { text-decoration-thickness: 2px; }
.legal strong { font-weight: 700; }

/* meta block (effective date / company / address) */
.legal .meta-info {
  background: var(--paper-deep);
  border-left: 3px solid var(--vermilion);
  border-radius: 2px;
  padding: 1.2rem 1.4rem;
  margin: 0 0 2.2rem;
  font-size: 1rem;
}
.legal .meta-info p { margin: 0.25rem 0; }

/* inline callouts (highlights, warnings, contact) */
.legal .callout {
  border-left: 3px solid var(--vermilion);
  background: var(--paper-deep);
  padding: 1rem 1.25rem;
  border-radius: 2px;
  margin: 1.6rem 0;
}
.legal .callout p { margin: 0; }
.legal .callout p + p { margin-top: 0.5rem; }

/* closing contact card */
.legal-contact {
  max-width: var(--max);
  margin: 1rem auto 0;
  padding: 0 1.5rem 5rem;
}
.legal-contact-inner {
  max-width: 74ch;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  padding: 2.4rem 2rem;
}
.legal-contact h2 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 1.3rem;
  border: 0;
  padding: 0;
  margin: 0 0 0.5rem;
}
.legal-contact p { color: var(--ink-soft); margin-bottom: 1.4rem; }

@media (max-width: 560px) {
  .legal-hero { padding-top: 3rem; }
  .legal h2 { font-size: 1.25rem; }
}
