/* Privacy policy and terms pages */
.legal-page main > .mmc-page-hero {
  min-height: 330px;
  padding-block: clamp(54px, 7vw, 86px);
}

.legal-page main > .mmc-page-hero > .container {
  padding-block: clamp(58px, 7vw, 82px) 44px;
}

.legal-page main > .mmc-page-hero h1 {
  max-width: 760px;
  font-size: clamp(2.8rem, 6vw, 4.9rem);
}

.legal-section {
  padding-block: clamp(48px, 7vw, 84px);
}

.legal-jump-nav {
  width: min(100% - 40px, 850px);
  margin: 0 auto 30px;
  padding: 22px 24px;
  border: 1px solid #d8e5dd;
  border-left: 4px solid #00a14b;
  border-radius: 14px;
  background: #f4fbf7;
}

.legal-jump-nav strong {
  display: block;
  margin-bottom: 12px;
  color: #111;
  font-size: .78rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.legal-jump-nav div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.legal-jump-nav a {
  color: #08753c;
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.45;
  text-underline-offset: 3px;
}

.legal-page .mmc-legal {
  width: min(100% - 40px, 850px);
  color: #111;
}

.legal-page .mmc-legal-meta {
  margin-bottom: 28px;
  padding: 18px 20px;
  border: 1px solid #d8e5dd;
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 4px 0 #00a14b;
  color: #1d3b2d;
  line-height: 1.6;
}

.legal-page .mmc-legal section {
  scroll-margin-top: 110px;
  padding-block: 26px;
}

.legal-page .mmc-legal section h2 {
  margin-bottom: 12px;
  color: #111;
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  line-height: 1.22;
  letter-spacing: -.02em;
}

.legal-page .mmc-legal section p {
  max-width: 72ch;
  color: #42564c;
  font-size: 1rem;
  line-height: 1.8;
}

.legal-page .mmc-legal section a {
  color: #08753c;
  font-weight: 700;
  text-underline-offset: 3px;
}

@media (max-width: 720px) {
  :is(.privacy-policy-page, .terms-of-service-page) .legal-jump-nav a {
    white-space: normal;
  }

  .legal-page main > .mmc-page-hero {
    min-height: 290px;
  }

  .legal-page main > .mmc-page-hero > .container {
    padding-block: 76px 42px;
  }

  .legal-section {
    padding-block: 38px 56px;
  }

  .legal-jump-nav,
  .legal-page .mmc-legal {
    width: min(100% - 32px, 850px);
  }

  .legal-jump-nav {
    padding: 18px;
  }

  .legal-jump-nav div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
  }
}

@media (max-width: 430px) {
  .legal-jump-nav div {
    grid-template-columns: 1fr;
  }
}

/* Legal page reading layout */
:is(.privacy-policy-page, .terms-of-service-page) .legal-jump-nav,
:is(.privacy-policy-page, .terms-of-service-page) .mmc-legal {
  width: min(100% - 40px, var(--container, 1360px));
  margin-inline: auto;
}

:is(.privacy-policy-page, .terms-of-service-page) .legal-jump-nav div {
  column-gap: 0;
}

:is(.privacy-policy-page, .terms-of-service-page) .legal-jump-nav a {
  position: relative;
  flex: none;
  white-space: nowrap;
}

:is(.privacy-policy-page, .terms-of-service-page) .legal-jump-nav a:not(:last-child) {
  margin-right: 14px;
}

:is(.privacy-policy-page, .terms-of-service-page) .legal-jump-nav a:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -9px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #6d8a77;
  content: "";
  transform: translateY(-50%);
}

:is(.privacy-policy-page, .terms-of-service-page) .mmc-legal {
  max-width: none;
}

:is(.privacy-policy-page, .terms-of-service-page) .mmc-legal-meta,
:is(.privacy-policy-page, .terms-of-service-page) .mmc-legal > section,
:is(.privacy-policy-page, .terms-of-service-page) .mmc-legal section p {
  max-width: none;
}

:is(.privacy-policy-page, .terms-of-service-page) .mmc-legal section p + p,
:is(.privacy-policy-page, .terms-of-service-page) .mmc-legal section :is(ul, ol) + p {
  margin-top: 14px;
}

:is(.privacy-policy-page, .terms-of-service-page) .mmc-legal section :is(ul, ol) {
  margin-block: 14px;
  padding-left: 26px;
  color: #42564c;
  line-height: 1.75;
}

:is(.privacy-policy-page, .terms-of-service-page) .mmc-legal section li + li {
  margin-top: 8px;
}

@media (max-width: 1100px) {
  :is(.privacy-policy-page, .terms-of-service-page) .legal-jump-nav div {
    column-gap: 18px;
  }

  :is(.privacy-policy-page, .terms-of-service-page) .legal-jump-nav a:not(:last-child) {
    margin-right: 0;
  }

  :is(.privacy-policy-page, .terms-of-service-page) .legal-jump-nav a:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 720px) {
  :is(.privacy-policy-page, .terms-of-service-page) .legal-jump-nav a {
    white-space: normal;
  }

  :is(.privacy-policy-page, .terms-of-service-page) .legal-jump-nav,
  :is(.privacy-policy-page, .terms-of-service-page) .mmc-legal {
    width: min(100% - 32px, var(--container, 1360px));
  }
}
