:root {
  --cream: #fff9f6;
  --pink: #f3acd1;
  --pink-strong: #ee9fc8;
  --navy: #333985;
  --font-sans: "Century Gothic", "Avenir Next", "Trebuchet MS", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.legal-page {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.legal-content {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 68px 64px 100px;
}

.legal-content.is-short {
  flex: 1;
  min-height: 615px;
}

.legal-content h1 {
  margin: 0 0 82px;
  color: var(--navy);
  font-size: clamp(3.6rem, 7vw, 5.4rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.98;
  text-align: center;
}

.legal-copy {
  max-width: 900px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.55;
}

.legal-copy.narrow {
  max-width: 760px;
}

.legal-copy h2 {
  margin: 3.2rem 0 1rem;
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.25;
}

.legal-copy h2:first-child {
  margin-top: 0;
}

.legal-copy h3 {
  margin: 2rem 0 0.8rem;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
}

.legal-copy p {
  margin: 0 0 1rem;
}

.legal-copy ul {
  margin: 0 0 1.2rem;
  padding-left: 1.4rem;
}

.legal-copy li {
  margin-bottom: 0.45rem;
}

.legal-copy address {
  margin: 0;
  font-style: normal;
}

.legal-copy address a {
  text-decoration: none;
}

.legal-copy a {
  overflow-wrap: anywhere;
  text-underline-offset: 3px;
}

.legal-note {
  padding-left: 1rem;
  border-left: 3px solid var(--pink);
}

.legal-actions {
  display: flex;
  justify-content: center;
  padding: 12px 24px 86px;
  border-top: 2px solid var(--navy);
}

.legal-button {
  display: inline-flex;
  min-width: 194px;
  min-height: 53px;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: 18px;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}

.legal-button:hover,
.legal-button:focus-visible {
  background: var(--pink-strong);
  transform: translateY(-1px);
}

.legal-button:focus-visible,
.legal-copy a:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

@media (max-width: 700px) {
  .legal-content {
    padding: 44px 24px 72px;
  }

  .legal-content.is-short {
    min-height: auto;
  }

  .legal-content h1 {
    margin-bottom: 48px;
    font-size: clamp(3rem, 15vw, 4.2rem);
  }

  .legal-copy {
    font-size: 16px;
    line-height: 1.6;
  }

  .legal-copy h2 {
    margin-top: 2.6rem;
    font-size: 1.35rem;
  }

  .legal-actions {
    padding-bottom: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
