/* Shared visual hero for the Privacy Policy and Terms pages. */
.legal-hero {
  position: relative;
  display: flex;
  min-height: clamp(620px, calc(100svh - 76px), 760px);
  overflow: hidden;
  isolation: isolate;
  background: #071522;
}

.legal-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(5, 14, 29, 0.9) 0%, rgba(7, 19, 36, 0.68) 36%, rgba(7, 19, 36, 0.2) 64%, rgba(5, 14, 29, 0.08) 100%),
    linear-gradient(180deg, rgba(5, 14, 29, 0.08), rgba(5, 14, 29, 0.24));
}

.legal-hero::after {
  position: absolute;
  z-index: -2;
  inset: 0;
  content: "";
  background: #071522 url("../../images/Website Privacy Policy.png") center / cover no-repeat;
  transform: scale(1.035);
  transform-origin: center center;
  will-change: transform;
  animation: legal-hero-image-zoom 5s cubic-bezier(0.37, 0, 0.63, 1) both;
}

.legal-hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 28px;
  padding-bottom: 28px;
}

.legal-hero .breadcrumb {
  margin-bottom: 26px;
  font-size: 15px;
}

.legal-hero .kicker { font-size: 1.125rem; }

.legal-hero h1 {
  max-width: 980px;
  margin-bottom: 26px;
  font-size: clamp(2.5rem, 4.8vw, 4.375rem);
  line-height: 1.08;
}

.legal-hero .lead {
  max-width: 900px;
  font-size: 18px;
  line-height: 1.6;
}

.legal-hero .container > * {
  opacity: 0;
  animation: legal-hero-content-in 900ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.legal-hero .container > :nth-child(1) { animation-delay: 80ms; }
.legal-hero .container > :nth-child(2) { animation-delay: 160ms; }
.legal-hero .container > :nth-child(3) {
  animation-name: legal-hero-heading-in;
  animation-delay: 250ms;
}
.legal-hero .container > :nth-child(4) { animation-delay: 350ms; }

@keyframes legal-hero-image-zoom {
  from { transform: scale(1.035); }
  to { transform: scale(1.08); }
}

@keyframes legal-hero-content-in {
  from { opacity: 0; transform: translateX(-34px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes legal-hero-heading-in {
  from { opacity: 0; transform: translateX(34px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 640px) {
  .legal-hero { min-height: calc(100svh - 68px); }
  .legal-hero::after { background-position: 64% center; }
  .legal-hero .container { padding-top: 20px; padding-bottom: 20px; }
  .legal-hero .breadcrumb { margin-bottom: 22px; }
  .legal-hero h1 { margin-bottom: 20px; font-size: clamp(2rem, 10vw, 3rem); }
  .legal-hero .lead { font-size: clamp(0.95rem, 3.4vw, 1.125rem); }
}

@media (prefers-reduced-motion: reduce) {
  .legal-hero::after,
  .legal-hero .container > * { animation: none; }

  .legal-hero .container > * { opacity: 1; }
}
