/* ============ ROOFHYVE · LEGAL DOCUMENTS ============
   Long-form legal pages. Relies on the design tokens defined in theme.css
   (--gold, --white, --muted, --line, --bg, --bg-2). Layout mirrors the
   original static legal pages but uses the shared site header / footer. */

.legal-hero {
  padding: 64px 0 28px;
  border-bottom: 1px solid var(--line);
}

/* Use the global site container width so legal pages match the rest of the
   site. Scoped to legal hero only. */
.legal-hero .wrap {
  max-width: var(--maxw);
}

.legal-hero .eyebrow {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1.5px solid var(--gold);
  padding: 5px 13px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.legal-hero h1 {
  font-family: 'Archivo Black', system-ui, sans-serif;
  font-size: clamp(30px, 5vw, 46px);
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: -.02em;
  line-height: 1;
}

.legal-hero .legal-intro {
  margin-top: 18px;
  max-width: 720px;
  font-size: 16px;
  color: var(--muted);
}

/* Constrain the document column for readability. */
.doc {
  padding: 42px 0 90px;
}

.doc .wrap {
  max-width: var(--maxw);
}

.doc h2 {
  font-family: 'Archivo Black', system-ui, sans-serif;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: -.01em;
  font-size: 24px;
  margin: 42px 0 14px;
}

.doc h3 {
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 800;
  color: var(--white);
  font-size: 19px;
  margin: 32px 0 10px;
}

.doc h4 {
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 800;
  color: var(--white);
  font-size: 16px;
  margin: 24px 0 8px;
}

.doc p {
  margin: 0 0 14px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--muted);
}

.doc ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

.doc li {
  margin: 0 0 8px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--muted);
}

.doc a {
  color: var(--gold);
  text-decoration: none;
}

.doc a:hover {
  color: var(--gold-bright);
}

.doc > .wrap > h2:first-child,
.doc > .wrap > h3:first-child {
  margin-top: 0;
}

/* Cross-link nav to the other legal documents. */
.legal-related {
  margin-top: 64px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.legal-related h2 {
  font-family: 'Archivo Black', system-ui, sans-serif;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: -.01em;
  font-size: 18px;
  margin: 0 0 16px;
}

.legal-related ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 28px;
}

.legal-related li {
  margin: 0;
}

.legal-related a {
  color: var(--muted);
  font-weight: 600;
  font-size: 14.5px;
}

.legal-related a:hover {
  color: var(--gold);
}

@media (max-width: 640px) {
  .legal-related ul {
    grid-template-columns: 1fr;
  }
}
