/* Shared layout for legal pages (Privacy, Terms) and the 404 page. */

.legal-hero {
  position: relative;
  background: var(--sg-cape-navy);
  color: var(--sg-white);
  margin-top: calc(-1 * var(--sg-nav-height));
  padding: calc(var(--sg-nav-height) + 96px) 24px 72px;
  overflow: hidden;
}

.legal-hero__inner {
  max-width: 880px;
  margin: 0 auto;
  position: relative;
}

.legal-hero__eyebrow {
  margin: 0 0 16px;
}

.legal-hero__h1 {
  font-family: var(--sg-font-display);
  font-weight: var(--sg-w-black);
  font-size: clamp(36px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--sg-white);
  margin: 0;
}

.legal-body {
  background: var(--sg-white);
  padding: 64px 24px 120px;
}

.legal-body__inner {
  max-width: 720px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.75;
  color: var(--sg-ink);
}

.legal-body__inner p {
  margin: 0 0 1.4em;
}

.legal-body__inner h2 {
  font-family: var(--sg-font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.3;
  margin: 2.2em 0 0.8em;
  color: var(--sg-ink);
}

.legal-body__inner a {
  color: var(--sg-hero-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-body__updated {
  font-size: 14px;
  color: var(--sg-steel);
  font-style: italic;
  margin: 0 0 0;
}

.legal-body__rule {
  border: 0;
  border-top: 1px solid var(--sg-rule);
  margin: 32px 0 32px;
}

.legal-placeholder {
  border: 1px dashed var(--sg-rule);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  background: var(--sg-cream);
}

.legal-placeholder__title {
  font-family: var(--sg-font-display);
  font-weight: 700;
  font-size: 18px;
  margin: 0 0 8px;
  color: var(--sg-ink);
}

.legal-placeholder__body {
  font-size: 15px;
  color: var(--sg-steel);
  margin: 0;
  line-height: 1.6;
}

/* 404 specific */

.notfound {
  min-height: calc(100vh - var(--sg-nav-height));
  background: var(--sg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
}

.notfound__inner {
  text-align: center;
  max-width: 560px;
}

.notfound__code {
  font-family: var(--sg-font-display);
  font-weight: 800;
  font-size: clamp(64px, 10vw, 120px);
  line-height: 1;
  color: var(--sg-cape-navy);
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.notfound__h1 {
  font-family: var(--sg-font-display);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 32px);
  margin: 0 0 12px;
  color: var(--sg-ink);
}

.notfound__sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--sg-steel);
  margin: 0 0 32px;
}

.notfound__actions {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 640px) {
  .legal-hero {
    padding: calc(var(--sg-nav-height) + 56px) 24px 48px;
  }
  .legal-body {
    padding: 48px 24px 80px;
  }
}
