.sm-legal-page {
  --sm-legal-primary: var(--e-global-color-accent, #9f2d4f);
  --sm-legal-secondary: var(--e-global-color-secondary, #e8758a);
  --sm-legal-pink: var(--e-global-color-primary, #f8a8c5);
  --sm-legal-cream: var(--e-global-color-ea7034e, #faf9f1);
  --sm-legal-ink: var(--e-global-color-text, #472f29);
  color: var(--sm-legal-ink);
  font-family: var(--e-global-typography-text-font-family, Arial), Arial, sans-serif;
  margin-inline: auto;
  max-width: 1180px;
  padding: clamp(34px, 5vw, 72px) 22px clamp(70px, 9vw, 120px);
}

.sm-legal-hero {
  background: var(--sm-legal-primary);
  border-radius: 32px;
  color: #fff;
  overflow: hidden;
  padding: clamp(38px, 7vw, 76px);
  position: relative;
}

.sm-legal-hero::before,
.sm-legal-hero::after {
  border-radius: 50%;
  content: "";
  pointer-events: none;
  position: absolute;
}

.sm-legal-hero::before {
  border: 1px solid rgba(255, 255, 255, .28);
  height: 170px;
  right: -42px;
  top: -58px;
  width: 170px;
}

.sm-legal-hero::after {
  background: var(--sm-legal-pink);
  bottom: -72px;
  height: 180px;
  opacity: .24;
  right: 12%;
  width: 180px;
}

.sm-legal-hero__eyebrow {
  color: #ffd1df;
  display: block;
  font-family: var(--e-global-typography-29faeca-font-family, Arial), Arial, sans-serif;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .16em;
  margin-bottom: 14px;
  position: relative;
  text-transform: uppercase;
  z-index: 1;
}

.sm-legal-hero h1 {
  color: #fff;
  font-family: var(--e-global-typography-secondary-font-family, Bogart), Georgia, serif;
  font-size: clamp(3rem, 6.8vw, 6rem);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: .95;
  margin: 0;
  max-width: 800px;
  position: relative;
  z-index: 1;
}

.sm-legal-hero p {
  color: rgba(255, 255, 255, .92);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.65;
  margin: 24px 0 0;
  max-width: 700px;
  position: relative;
  z-index: 1;
}

.sm-legal-hero small {
  color: #ffd1df;
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  margin-top: 24px;
  position: relative;
  z-index: 1;
}

.sm-legal-toc {
  align-items: center;
  background: #fde7ef;
  border: 1px solid #f4cbd7;
  border-radius: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 24px 0 36px;
  padding: 18px 20px;
}

.sm-legal-toc strong {
  color: var(--sm-legal-primary);
  font-size: .76rem;
  margin-right: 5px;
  text-transform: uppercase;
}

.sm-legal-toc a {
  background: #fff;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--sm-legal-primary);
  font-size: .76rem;
  font-weight: 700;
  padding: 8px 12px;
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease;
}

.sm-legal-toc a:hover {
  border-color: var(--sm-legal-secondary);
  transform: translateY(-1px);
}

.sm-legal-content {
  display: grid;
  gap: 16px;
}

.sm-legal-content section {
  align-items: start;
  background: #fffdf8;
  border: 1px solid #f0dbe1;
  border-radius: 24px;
  display: grid;
  gap: 20px;
  grid-template-columns: 48px minmax(0, 1fr);
  padding: clamp(24px, 4vw, 40px);
  scroll-margin-top: 120px;
}

/* wpautop can insert an empty paragraph between the section number and body. */
.sm-legal-content section > p:empty {
  display: none;
}

.sm-legal-content section > div:not(.sm-legal-number) {
  grid-column: 2;
  min-width: 0;
}

.sm-legal-number {
  align-items: center;
  background: var(--sm-legal-primary);
  border-radius: 15px;
  color: #fff;
  display: flex;
  font-family: var(--e-global-typography-secondary-font-family, Georgia), Georgia, serif;
  font-size: .82rem;
  font-weight: 700;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.sm-legal-content h2 {
  color: var(--sm-legal-primary);
  font-family: var(--e-global-typography-secondary-font-family, Bogart), Georgia, serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.05;
  margin: 2px 0 18px;
}

.sm-legal-content h3 {
  color: var(--sm-legal-ink);
  font-size: .9rem;
  font-weight: 800;
  margin: 24px 0 9px;
  text-transform: uppercase;
}

.sm-legal-content p,
.sm-legal-content li {
  color: color-mix(in srgb, var(--sm-legal-ink) 88%, white);
  font-size: .98rem;
  line-height: 1.72;
}

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

.sm-legal-content p:last-child {
  margin-bottom: 0;
}

.sm-legal-content ul {
  margin: 0 0 14px;
  padding-left: 20px;
}

.sm-legal-content li {
  margin-bottom: 5px;
  padding-left: 4px;
}

.sm-legal-content a {
  color: var(--sm-legal-primary);
  font-weight: 700;
  text-decoration-color: color-mix(in srgb, var(--sm-legal-secondary) 65%, transparent);
  text-underline-offset: 3px;
}

.sm-legal-footer {
  align-items: center;
  background: #fde7ef;
  border-radius: 24px;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-top: 22px;
  padding: clamp(24px, 4vw, 36px);
}

.sm-legal-footer strong {
  color: var(--sm-legal-primary);
  font-family: var(--e-global-typography-secondary-font-family, Bogart), Georgia, serif;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 600;
}

.sm-legal-footer a {
  align-items: center;
  background: var(--sm-legal-primary);
  border: 1px solid var(--sm-legal-primary);
  border-radius: 999px;
  color: #fff;
  display: flex;
  flex: 0 0 auto;
  font-size: .76rem;
  font-weight: 800;
  gap: 18px;
  padding: 14px 18px;
  text-decoration: none;
}

.sm-legal-footer a:hover {
  background: transparent;
  color: var(--sm-legal-primary);
}

.sm-legal-footer a span {
  font-size: 1.1rem;
}

@media (max-width: 700px) {
  .sm-legal-page {
    padding: 24px 14px 72px;
  }

  .sm-legal-hero {
    border-radius: 24px;
    padding: 36px 24px;
  }

  .sm-legal-hero h1 {
    font-size: clamp(2.35rem, 11vw, 3.25rem);
    overflow-wrap: break-word;
  }

  .sm-legal-toc {
    align-items: stretch;
    flex-direction: column;
  }

  .sm-legal-toc a {
    text-align: center;
  }

  .sm-legal-content section {
    border-radius: 20px;
    gap: 15px;
    grid-template-columns: 1fr;
    padding: 22px 20px;
  }

  .sm-legal-content section > div:not(.sm-legal-number) {
    grid-column: 1;
  }

  .sm-legal-number {
    border-radius: 12px;
    height: 40px;
    width: 40px;
  }

  .sm-legal-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .sm-legal-footer a {
    justify-content: space-between;
  }
}
