.legal-page {
  background: #e7eff0;
  color: #102235;
}

.legal-page .site-header {
  color: #fff;
}

.legal-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 78% 43%, #214e70 0%, #153650 37%, #0b2339 75%, #081a2d 100%);
  color: #fff;
}

.legal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .13;
  background-image: linear-gradient(rgba(154, 210, 223, .4) 1px, transparent 1px), linear-gradient(90deg, rgba(154, 210, 223, .4) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, transparent, #000);
}

.legal-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 380px);
  align-items: center;
  gap: 40px;
  width: min(calc(100% - 48px), 1370px);
  min-height: 340px;
  margin: 0 auto;
  padding: 52px 0;
}

.legal-kicker,
.legal-sidebar > p {
  color: #9ad2df;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
}

.legal-kicker {
  margin: 0 0 28px;
}

.legal-kicker span {
  margin: 0 9px;
  color: #607f96;
}

.legal-hero h1 {
  max-width: none;
  margin: 0 0 22px;
  font-family: 'Lilita One', 'Trebuchet MS', sans-serif;
  font-size: clamp(54px, 6.5vw, 98px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.025em;
  white-space: normal;
}

.legal-date {
  width: fit-content;
  margin: 0;
  padding: 10px 15px;
  border: 1px solid rgba(154, 210, 223, .48);
  border-radius: 10px;
  background: rgba(154, 210, 223, .1);
  color: #c6dce6;
  font-size: 13px;
}

.legal-date strong {
  color: #fff;
}

.legal-hero-logo {
  width: 100%;
  max-width: 320px;
  height: auto;
  justify-self: end;
  filter: drop-shadow(0 18px 30px rgba(0, 5, 16, .3));
}

.legal-body {
  padding: 70px 24px 100px;
  background: #e7eff0;
}

.legal-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 920px);
  justify-content: center;
  align-items: start;
  gap: clamp(24px, 5vw, 72px);
  max-width: 1370px;
  margin: 0 auto;
}

.legal-sidebar {
  position: sticky;
  top: 26px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
}

.legal-sidebar > p {
  margin: 0 0 14px;
  color: #4b7e92;
}

.legal-sidebar > a {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  color: #3d586a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.legal-sidebar > a:hover,
.legal-sidebar > a:focus-visible {
  background: #d0e4e8;
  color: #102235;
}

.legal-sidebar > a[aria-current="page"] {
  background: #c7e2e8;
  color: #0d3449;
}

.legal-sidebar > .legal-home-link {
  margin-top: 12px;
  border-top: 1px solid #b6cbd3;
  border-radius: 0;
  padding-top: 22px;
  color: #427c91;
}

.legal-content {
  min-width: 0;
  padding: clamp(30px, 4.5vw, 64px);
  border: 1px solid #d1e0e4;
  border-radius: 20px;
  background: #fbfcfb;
  box-shadow: 0 24px 60px rgba(17, 48, 66, .08);
  color: #334b5a;
  font-size: 15px;
  line-height: 1.78;
  overflow-wrap: anywhere;
}

.legal-content > p:first-child {
  margin-top: 0;
  color: #243e50;
  font-size: 16px;
}

.legal-content p {
  margin: 0 0 16px;
}

.legal-content h2 {
  margin: 43px 0 14px;
  padding-top: 27px;
  border-top: 1px solid #dce6e9;
  color: #102235;
  font-family: 'Lilita One', 'Trebuchet MS', sans-serif;
  font-size: clamp(25px, 2.4vw, 32px);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -.01em;
}

.legal-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.legal-content .legal-list {
  margin: 8px 0 22px;
  padding-left: 24px;
}

.legal-content .legal-list li {
  padding-left: 4px;
  margin-bottom: 10px;
}

.legal-content .legal-list li::marker {
  color: #4288a0;
}

.legal-content .inline-link {
  color: #176e8d;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.legal-content .inline-link:hover {
  color: #0e425c;
}

.legal-page .site-footer {
  color: #fff;
}

.legal-page .footer-links a[aria-current="page"] {
  color: #9ad2df;
}

@media (max-width: 850px) {
  .legal-hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(190px, 270px);
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .legal-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }

  .legal-sidebar > p {
    width: 100%;
    margin-bottom: 4px;
  }

  .legal-sidebar > .legal-home-link {
    margin: 0;
    padding: 12px 14px;
    border: 0;
  }
}

@media (max-width: 600px) {
  .legal-hero-inner {
    display: block;
    width: min(calc(100% - 40px), 1370px);
    min-height: 260px;
    padding: 50px 0 54px;
  }

  .legal-hero-logo {
    display: none;
  }

  .legal-hero h1 {
    font-size: clamp(48px, 13vw, 68px);
  }

  .legal-body {
    padding: 34px 16px 68px;
  }

  .legal-content {
    padding: 26px 22px;
    font-size: 14px;
    border-radius: 16px;
  }

  .legal-content > p:first-child {
    font-size: 15px;
  }

  .legal-content h2 {
    margin-top: 34px;
    padding-top: 22px;
  }
}
