html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a,
button,
.navbar-toggler {
  cursor: pointer;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.form-note {
  margin-top: 1rem;
  opacity: 0.78;
  font-size: 0.9rem;
}

.legal-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-top: 1.25rem;
  text-align: center;
}

.legal-links a {
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.legal-links a:hover,
.legal-links a:focus-visible {
  color: #ffffff;
  opacity: 0.78;
  border-bottom-color: currentColor;
}

.legal-main {
  background: #f9f9f7;
  padding: 9rem 0 5rem;
  min-height: 70vh;
}

.legal-page {
  width: min(100% - 2rem, 980px);
  margin: 0 auto;
}

.legal-page .legal-kicker {
  margin: 0 0 1rem;
  color: #5c5a45;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.legal-page h1 {
  margin: 0 0 1rem;
  color: #151300;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: clamp(2.4rem, 7vw, 4.7rem);
  line-height: 1.05;
}

.legal-page .legal-updated {
  margin-bottom: 2.5rem;
  color: #676551;
}

.legal-page section {
  padding: 1.4rem 0;
  border-top: 1px solid rgba(21, 19, 0, 0.14);
}

.legal-page section:first-of-type {
  border-top: 0;
}

.legal-page h2 {
  margin: 0 0 1rem;
  color: #151300;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  line-height: 1.2;
}

.legal-page h3 {
  margin: 1.25rem 0 0.65rem;
  color: #232000;
  font-size: 1.15rem;
}

.legal-page p,
.legal-page li {
  color: #333128;
  font-size: 1.06rem;
  line-height: 1.75;
}

.legal-page ul,
.legal-page ol {
  padding-left: 1.35rem;
}

.legal-page a {
  color: #232000;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.legal-page .legal-card {
  margin-top: 1.5rem;
  padding: 1.4rem;
  background: #efefe9;
  border-radius: 0.6rem;
}

@media (max-width: 991px) {
  .legal-main {
    padding-top: 7rem;
  }

  .navbar-collapse.show {
    max-height: calc(100vh - 5rem);
    overflow-y: auto;
  }
}

@media (max-width: 575px) {
  .legal-main {
    padding: 6.5rem 0 3.5rem;
  }

  .legal-links {
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

table {
  max-width: 100%;
}

@media (max-width: 767px) {
  .table-responsive,
  table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

