html.content-page-root,
body.content-page {
  width: 100%;
  height: auto !important;
  min-height: 100%;
  overflow: auto !important;
}

body.content-page {
  min-height: 100vh;
  background: var(--brand-warm-cream, #F8F6F0);
  color: var(--brand-deep-navy, #172A46);
  font-family: var(--global-font-family, Montserrat, sans-serif);
}

.content-page-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: clamp(16px, 4vw, 48px);
}

.content-page-card {
  width: min(100%, 780px);
  padding: clamp(24px, 5vw, 56px);
  border-radius: 24px;
  box-shadow: 0 12px 40px #172a4618;
}

.thank-you-card {
  background: linear-gradient(135deg, var(--brand-deep-navy) 0%, #29486F 100%) !important;
  color: #fff;
  text-align: center;
}

.content-page h1 {
  margin: 0 0 24px;
  color: inherit;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
}

.content-page h2 {
  margin: 28px 0 10px;
  color: inherit;
  font-size: clamp(1.2rem, 2.6vw, 1.5rem);
  font-weight: 700;
  line-height: 1.3;
}

.content-page p {
  margin: 0 0 16px;
  color: inherit;
  font-size: clamp(1rem, 2vw, 1.14rem);
  line-height: 1.65;
}

.thank-you-home-link {
  display: flex;
  width: min(100%, 380px);
  margin: 28px auto 0;
  color: #fff;
  text-decoration: none;
}

.legal-page .content-page-shell {
  align-items: start;
}

.legal-card {
  background: #fff;
  color: var(--brand-deep-navy, #172A46);
}

.legal-card h1 {
  margin-bottom: 24px;
}

.legal-back-link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--brand-deep-navy, #172A46);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 480px) {
  .content-page-shell {
    padding: 16px;
  }

  .content-page-card {
    border-radius: 18px;
    padding: 24px 20px;
  }
}
