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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    sans-serif;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #3f3f46;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: #18181b;
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: #52525b;
}

/* Matches site navbar: max-w-7xl + px-6 sm:px-10 lg:px-12 */
.legal-shell {
  width: 100%;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.legal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
}

.legal-header-inner {
  display: flex;
  align-items: center;
  height: 5rem;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  color: #52525b;
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.legal-back:hover {
  color: #18181b;
  background-color: rgba(0, 0, 0, 0.05);
}

.legal-main {
  --legal-gap: 2.5rem;
  padding-top: var(--legal-gap);
  padding-bottom: 4rem;
}

.legal-content {
  width: 100%;
}

.legal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  margin-top: var(--legal-gap, 2.5rem);
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.legal-footer-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-footer-link:hover {
  color: #1d4ed8;
}

.legal-footer-copy {
  margin: 0;
  font-size: 0.8125rem;
  color: #71717a;
}

.legal-content > strong:first-of-type {
  display: block;
  margin: 0 0 1.25rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #18181b;
}

.legal-content strong {
  display: block;
  margin: 2rem 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
  color: #18181b;
}

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

.legal-content ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.legal-content li {
  margin-bottom: 0.35rem;
}

.legal-content li a {
  word-break: break-word;
}

@media (min-width: 640px) {
  .legal-shell {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }

  .legal-main {
    --legal-gap: 3rem;
    padding-bottom: 5rem;
  }
}

@media (min-width: 1024px) {
  .legal-shell {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}
