/* ==========================================================================
   Legal / content pages — shared CSS.

   Used by /terms, /privacy, /disclaimer, /contact, and any future content
   page that wants the NSchart-style off-white hero with a long-form body
   below it (in the same off-white section). Pair with site.css (brand
   tokens, header bar, shared mobile-menu pattern via body.has-mobile-menu,
   shared footer-disclaimer styling).
   ========================================================================== */

/* --- Hero (off-white zone, hosts both the page heading and the body) --- */
.hero-zone {
  background: var(--off-white);
}

.hero {
  padding-top: 56px;
  padding-bottom: 72px;
  text-align: left;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--rose);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: "Faculty Glyphic", Georgia, serif;
  font-weight: 400;
  font-size: 54px;
  line-height: 1.1;
  color: var(--navy);
  letter-spacing: -0.005em;
}

.hero-lede {
  width: min(720px, 100%);
  margin: 22px 0 0;
  color: var(--black);
  font-size: 19px;
  line-height: 32px;
}

/* --- Long-form body, lives inside the hero ---------------- */
/* The body is a child of <section class="hero container"> so it inherits
   the centred container width. max-width: 720px + margin: 0 (not auto)
   left-aligns the column flush with the hero h1. */
.legal-body {
  max-width: 720px;
  margin: 56px 0 0;
  padding: 0 0 24px;
}

.legal-body > *:first-child {
  margin-top: 0;
}

.legal-body p {
  margin: 0 0 18px;
  color: var(--black);
  font-size: 17px;
  line-height: 28px;
}

.legal-body h2 {
  margin: 48px 0 16px;
  font-family: "Faculty Glyphic", Georgia, serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.25;
  color: var(--navy);
}

.legal-body h3 {
  margin: 32px 0 12px;
  color: var(--navy);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.legal-body ul {
  margin: 0 0 18px;
  padding-left: 22px;
  color: var(--black);
  font-size: 17px;
  line-height: 28px;
}

.legal-body li {
  margin-bottom: 10px;
}

.legal-body li:last-child {
  margin-bottom: 0;
}

.legal-body li strong {
  color: var(--navy);
  font-weight: 700;
}

.legal-body a {
  color: var(--rose);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 160ms ease;
}

.legal-body a:hover {
  color: var(--navy);
}

.legal-body .legal-copyright {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(31, 42, 68, 0.18);
  color: rgba(31, 42, 68, 0.7);
  font-size: 14px;
  font-style: italic;
  line-height: 24px;
}

.legal-contact-card {
  margin: 32px 0 0;
  padding: 26px 30px;
  border-radius: 18px;
  background: var(--white);
}

.legal-contact-card p {
  margin: 0;
  font-size: 16px;
  line-height: 26px;
}

.legal-contact-card p + p {
  margin-top: 6px;
}

/* --- Footer (matches the look on every other page) -------- */
.site-footer {
  padding: 45px 0 36px;
  background: var(--white);
}

.footer-top {
  display: grid;
  grid-template-columns: 177px 380px 1fr;
  gap: 112px;
  align-items: center;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--navy);
}

.footer-logo {
  width: 177px;
}

.watermark {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: start;
  margin: 0;
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  line-height: 24px;
}

.lock-icon {
  display: inline-flex;
  width: 26px;
  height: 37px;
  transform: translateY(1px);
}

.lock-icon svg {
  width: 26px;
  height: 37px;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 25px 72px;
  justify-content: end;
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
}

.footer-nav a:hover {
  color: var(--rose);
}

.footer-bottom {
  display: grid;
  grid-template-columns: 452px 1fr;
  gap: 11px;
  padding-top: 27px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 600;
}

.footer-bottom p {
  margin: 0;
  line-height: 14px;
}

/* --- Tablet ----------------------------------------------- */
@media (max-width: 1400px) {
  .footer-top,
  .footer-bottom {
    grid-template-columns: 1fr;
  }

  .footer-top {
    gap: 28px;
  }

  .footer-nav {
    justify-content: start;
  }
}

/* --- Mobile (matches the shared menu breakpoint) ---------- */
@media (max-width: 820px) {
  .hero {
    padding-top: 36px;
    padding-bottom: 48px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-lede {
    font-size: 16px;
    line-height: 26px;
  }

  .legal-body {
    margin-top: 40px;
    padding-bottom: 16px;
  }

  .legal-body p,
  .legal-body ul {
    font-size: 16px;
    line-height: 26px;
  }

  .legal-body h2 {
    margin-top: 36px;
    font-size: 24px;
  }

  .legal-contact-card {
    padding: 22px 24px;
  }

  .site-footer {
    padding: 32px 0 31px;
  }

  .footer-top {
    display: flex;
    flex-direction: column;
    gap: 31px;
    align-items: stretch;
    padding-bottom: 0;
    border-bottom: 0;
  }

  .footer-logo {
    order: 2;
    width: 147px;
  }

  .watermark {
    order: 1;
    min-height: 67px;
    padding: 12px 16px;
    border: 0.5px solid var(--navy);
    border-radius: 9.339px;
    grid-template-columns: 26px 1fr;
    gap: 15px;
    align-items: center;
    font-size: 12px;
    line-height: 22px;
  }

  .footer-nav {
    order: 3;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    font-size: 14px;
  }

  .footer-nav a {
    display: flex;
    justify-content: space-between;
    padding: 0;
    border-top: 0.75px solid var(--navy);
    line-height: 35px;
  }

  .footer-nav a::after {
    content: "→";
  }

  .footer-nav a:last-child {
    border-bottom: 0.75px solid var(--navy);
  }

  .footer-bottom {
    display: flex;
    flex-direction: column-reverse;
    gap: 22px;
    padding-top: 24px;
    font-size: 12px;
  }

  .footer-bottom p {
    line-height: 16px;
    text-align: left;
  }
}
