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

html {
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
  color: #01004c;
  background: #ebedee;
  font-family: "Inter Tight", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
}

a {
  color: #004f73;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #ffcf4a;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 2000;
  padding: 10px 14px;
  color: #002234;
  background: #ffffff;
  border-radius: 6px;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.legal-nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  background: #002234;
}

.legal-nav-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
}

.legal-brand,
.legal-nav-links a {
  color: #ffffff;
  text-decoration: none;
}

.legal-brand {
  font-size: 22px;
  font-weight: 700;
}

.legal-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.legal-nav-links a:hover,
.legal-nav-links a:focus {
  color: #ffcf4a;
}

.legal-page main {
  min-height: 70vh;
  padding: 130px 0 72px;
}

.legal-container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.legal-hero,
.legal-content {
  padding: 48px;
  background: #ffffff;
  border-radius: 2rem;
  box-shadow: 0 18px 45px rgba(0, 34, 52, 0.09);
}

.legal-hero {
  margin-bottom: 28px;
}

.legal-hero h1 {
  margin: 0 0 18px;
  color: #002234;
  font-size: 52px;
  line-height: 1.05;
}

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

.legal-content section + section {
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid rgba(0, 34, 52, 0.18);
}

.legal-content h2 {
  margin: 0 0 16px;
  color: #002234;
  font-size: 30px;
  line-height: 1.2;
}

.legal-content h3 {
  margin: 24px 0 12px;
  color: #002234;
  font-size: 22px;
}

.legal-content p,
.legal-content li {
  font-size: 18px;
  line-height: 1.7;
}

.legal-content a {
  color: #004f73;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.legal-content address {
  font-style: normal;
}

.legal-footer {
  padding: 42px 0;
  color: #ffffff;
  background: #002234;
}

.legal-footer p {
  margin: 0;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-bottom: 18px;
}

.legal-links a,
.responsible-note {
  color: #ffffff;
}

.legal-links a:hover,
.legal-links a:focus {
  color: #ffcf4a;
}

.responsible-note {
  margin-bottom: 12px !important;
  font-weight: 700;
}

@media (max-width: 768px) {
  .legal-page main {
    padding-top: 120px;
  }

  .legal-nav-inner {
    min-height: 96px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
  }

  .legal-hero,
  .legal-content {
    padding: 24px;
    border-radius: 1.25rem;
  }

  .legal-hero h1 {
    font-size: 36px;
  }

  .legal-content h2 {
    font-size: 26px;
  }
}

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

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