.kcpc-legal {
  color: var(--color-slate);
  background: #f5f7fa;
}

.kcpc-legal__hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(11rem, 14vw, 14.5rem) var(--page-gutter) clamp(4.5rem, 7vw, 7rem);
  color: #fff;
  background:
    radial-gradient(circle at 78% 25%, rgba(112, 120, 182, 0.75), transparent 38%),
    radial-gradient(circle at 20% 110%, rgba(90, 46, 83, 0.7), transparent 42%),
    linear-gradient(110deg, #080a55 0%, #262155 52%, #35477d 100%);
}

.kcpc-legal__hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 4, 94, 0.2), rgba(3, 4, 94, 0));
  content: "";
}

.kcpc-legal__hero-inner,
.kcpc-legal__content,
.kcpc-legal__cta-content {
  width: min(100%, 70rem);
  margin-inline: auto;
}

.kcpc-legal__eyebrow {
  margin: 0;
  color: #a9def4;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.25rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.kcpc-legal__hero h1 {
  max-width: 16ch;
  margin: 0.75rem 0 0;
  color: #fff;
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.kcpc-legal__hero-copy {
  max-width: 40rem;
  margin: 1.25rem 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height: 1.7;
}

.kcpc-legal__body {
  padding: clamp(3rem, 6vw, 6.5rem) var(--page-gutter);
}

.kcpc-legal__content {
  padding: clamp(2rem, 5vw, 5rem);
  border: 1px solid #dce5ee;
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: 0 1.25rem 4rem rgba(3, 4, 94, 0.06);
}

.kcpc-legal__content > :first-child {
  margin-top: 0;
}

.kcpc-legal__content > :last-child {
  margin-bottom: 0;
}

.kcpc-legal__content h2,
.kcpc-legal__content h3,
.kcpc-legal__content h4,
.kcpc-legal__content h5 {
  color: var(--color-navy);
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.kcpc-legal__content h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.2;
}

.kcpc-legal__content h3 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1.25;
}

.kcpc-legal__content h4 {
  margin: 2.5rem 0 0.75rem;
  padding-top: 0.15rem;
  font-size: clamp(1.2rem, 1.5vw, 1.4rem);
  line-height: 1.35;
}

.kcpc-legal__content h5 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.0625rem;
  line-height: 1.45;
}

.kcpc-legal__content p,
.kcpc-legal__content li {
  color: #46576d;
  font-size: 1rem;
  line-height: 1.8;
}

.kcpc-legal__content p {
  margin: 0 0 1rem;
}

.kcpc-legal__content ul,
.kcpc-legal__content ol {
  margin: 0.5rem 0 1.25rem;
  padding-left: 1.5rem;
}

.kcpc-legal__content li + li {
  margin-top: 0.35rem;
}

.kcpc-legal__content a {
  color: var(--color-blue);
  font-weight: 600;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.kcpc-legal__content a:hover,
.kcpc-legal__content a:focus-visible {
  color: var(--color-navy);
}

.kcpc-legal__cta {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 26.875rem;
  overflow: hidden;
  padding: 4rem var(--page-gutter);
  color: #fff;
  background: #03045e url('../images/service-details/detail-cta-bg.png') center / cover no-repeat;
  place-items: center;
  text-align: center;
}

.kcpc-legal__cta::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: rgba(3, 4, 94, 0.62);
  backdrop-filter: blur(3.25rem);
  content: "";
}

.kcpc-legal__cta h2 {
  max-width: 42rem;
  margin: 0.6rem auto 0;
  color: #fff;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.kcpc-legal__cta-content > p:not(.kcpc-legal__eyebrow) {
  margin: 0.75rem 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.kcpc-legal__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  margin-top: 1.75rem;
  padding: 0.9rem 2.25rem;
  border-radius: 4rem;
  gap: 1.25rem;
  color: #fff;
  background: var(--color-blue);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 180ms ease, transform 180ms ease;
}

.kcpc-legal__button:hover,
.kcpc-legal__button:focus-visible {
  background: #0694d4;
  transform: translateY(-0.0625rem);
}

@media (max-width: 48em) {
  .kcpc-legal__hero {
    padding: 8.75rem 1.25rem 3.75rem;
  }

  .admin-bar .kcpc-legal__hero {
    padding-top: 11.625rem;
  }

  .kcpc-legal__body {
    padding: 2.5rem 1.25rem;
  }

  .kcpc-legal__content {
    padding: 1.75rem 1.25rem;
    border-radius: 1rem;
  }

  .kcpc-legal__content h4 {
    margin-top: 2rem;
  }

  .kcpc-legal__cta {
    min-height: 23rem;
    padding: 3rem 1.25rem;
  }

  .kcpc-legal__button {
    max-width: 100%;
  }
}
