/* ============================================================
   LEGAL + 404 — Page-specific styles
   ============================================================ */

/* ── Legal hero ──────────────────────────────────────────── */
.legal-hero {
  padding-block: clamp(7rem, 13vw, 10rem) clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.legal-title {
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  margin: .5rem 0 1rem;
  color: var(--cream);
}

.legal-updated {
  font-size: .875rem;
  color: var(--text-faint);
  margin: 0;
}

/* ── Legal content ───────────────────────────────────────── */
.legal-content {
  padding-block: clamp(3rem, 6vw, 5rem) clamp(4rem, 8vw, 7rem);
  max-width: 72ch;
  margin-inline: auto;
}

.legal-intro {
  font-size: 1.0625rem;
  color: var(--text-soft);
  line-height: 1.75;
  margin: 0 0 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}

.legal-section {
  margin-bottom: 2.25rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--line);
}

.legal-section:last-of-type {
  border-bottom: none;
}

.legal-section h2 {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 700;
  color: var(--cream);
  margin: 0 0 .875rem;
  line-height: 1.3;
}

.legal-section p {
  font-size: .9375rem;
  color: var(--text-soft);
  line-height: 1.75;
  margin: 0 0 .75rem;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section a {
  color: var(--champagne);
  text-decoration: underline;
  text-underline-offset: .2em;
  transition: opacity .2s;
}

.legal-section a:hover { opacity: .75; }

.legal-back {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}

/* ── 404 page ────────────────────────────────────────────── */
.notfound-section {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: clamp(8rem, 14vw, 11rem) clamp(4rem, 8vw, 7rem);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.notfound-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(3rem, 7vw, 6rem);
  align-items: center;
  width: 100%;
}

.notfound-copy {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.notfound-code {
  font-size: clamp(5rem, 14vw, 10rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.06em;
  color: var(--champagne);
  opacity: .18;
  margin: 0;
  user-select: none;
}

.notfound-title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--cream);
  margin: -1.5rem 0 0;
}

.notfound-lead {
  font-size: clamp(.9375rem, 1.4vw, 1.0625rem);
  color: var(--text-soft);
  line-height: 1.7;
  margin: 0;
  max-width: 52ch;
}

.notfound-visual {
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 1;
  opacity: .55;
}

.notfound-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ══ RESPONSIVE 980px ═══════════════════════════════════════ */
@media (max-width: 980px) {
  .notfound-inner {
    grid-template-columns: 1fr;
  }

  .notfound-visual {
    order: -1;
    max-width: 380px;
    margin: 0 auto;
  }
}

/* ══ RESPONSIVE 640px ═══════════════════════════════════════ */
@media (max-width: 640px) {
  .legal-content {
    max-width: none;
  }

  .notfound-code {
    font-size: clamp(4rem, 22vw, 7rem);
  }
}
