.legal-page {
  padding:120px 0;
  background-color: #ffffff;
  font-family: "Roboto", sans-serif;
}


.legal-page__header {
  margin-bottom: 48px;
}

.legal-page__header h1 {
  margin: 0 0 16px;
  color: #002d72;
  font-size: 40px;
  font-weight: 300;
  line-height: 1.25;
}

.legal-page__header p {
  margin: 0 0 12px;
  color: #4a4a4a;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.6;
}

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

.legal-page__header p + p {
  color: #767676;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
}

.legal-page__content {
  color: #4a4a4a;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.55;
}

.legal-page__section + .legal-page__section {
  margin-top: 40px;
}

.legal-page__section h2 {
  margin: 0 0 16px;
  color: #002d72;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.3;
}

.legal-page__section p {
  margin: 0 0 16px;
}

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

.legal-page__content a {
  color: #002d72;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-page__content a:hover,
.legal-page__content a:focus-visible {
  opacity: 0.8;
}

.legal-page__preferences {
  margin-bottom: 56px;
  padding: 32px;
  border: 1px solid rgba(0, 45, 114, 0.12);
  border-radius: 24px;
  background: rgba(0, 45, 114, 0.03);
}

.legal-page__preferences-head {
  margin-bottom: 24px;
}

.legal-page__preferences-head h2 {
  margin: 0 0 12px;
  color: #002d72;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
}

.legal-page__preferences-head p {
  margin: 0;
  color: #4a4a4a;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.55;
}

.legal-page__preference-copy h3 {
  margin: 0;
  color: #002d72;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
}

.legal-page__preference-copy p {
  margin: 0;
  color: #4a4a4a;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.5;
}

.legal-page__preferences > p[aria-live="polite"] {
  margin: 16px 0 0;
  color: #002d72;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

.legal-page__preferences-list {
  display: grid;
  gap: 16px;
}

.legal-page__preference {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 24px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.legal-page__preference--toggle {
  cursor: pointer;
}

.legal-page__preference-copy {
  display: grid;
  gap: 6px;
}

.legal-page__preference-badge {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 45, 114, 0.08);
  color: #002d72;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.legal-page__toggle {
  position: relative;
  flex-shrink: 0;
  width: 52px;
  height: 30px;
  margin: 0;
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: #d9d9d9;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.legal-page__toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
}

.legal-page__toggle:checked {
  background: #002d72;
}

.legal-page__toggle:checked::after {
  transform: translateX(22px);
}

.legal-page__toggle:focus-visible {
  outline: 2px solid #002d72;
  outline-offset: 2px;
}

.legal-page__preferences-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 24px;
}

.legal-page__preferences-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: #002d72;
  color: #ffffff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.legal-page__preferences-btn:hover,
.legal-page__preferences-btn:focus-visible {
  opacity: 0.9;
}

.legal-page__preferences-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: #002d72;
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.legal-page__preferences-link:hover,
.legal-page__preferences-link:focus-visible {
  opacity: 0.8;
}

@media (max-width: 991px) {
  .legal-page {
    padding: 80px 0 100px;
  }

  .legal-page__header h1 {
    font-size: 30px;
    line-height: 1.33;
  }

  .legal-page__header p,
  .legal-page__content {
    font-size: 16px;
  }

  .legal-page__section h2 {
    font-size: 24px;
  }

  .legal-page__preferences {
    padding: 24px;
  }

  .legal-page__preference {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 767px) {
  .legal-page {
    padding: 60px 0 80px;
  }

  .legal-page__header {
    margin-bottom: 36px;
  }

  .legal-page__preferences-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .legal-page__preferences-btn {
    width: 100%;
  }
}
