/* Footer legal modals (Privacy Policy / Cookies / Disclaimer) — mobile first */

.footer_copyright__link {
  background: none;
  border: none;
  margin-right: 15px;
  padding: 0;
  color: rgb(255, 255, 255);
  font: inherit;
  font-size: 16px;
  text-decoration: underline;
  cursor: pointer;
}

.footer_copyright__link:hover,
.footer_copyright__link:focus-visible {
  color: rgb(204, 0, 0);
}

.footer-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10050;
  padding: 16px;
  box-sizing: border-box;
}

.footer-modal.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.footer-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgb(255, 255, 255);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  animation: footerModalIn 0.22s ease-out;
}

@keyframes footerModalIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  color: rgb(26, 26, 26);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
}

.footer-modal__close:hover,
.footer-modal__close:focus-visible {
  background: rgba(0, 0, 0, 0.12);
}

.footer-modal__content {
  padding: 32px 20px 20px;
  overflow-y: auto;
}

.footer-modal__title {
  margin: 0 0 12px;
  padding-right: 28px;
  font-family: Inter, sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: rgb(26, 26, 26);
}

.footer-modal__body {
  font-family: Inter, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: rgb(51, 51, 51);
}

.footer-modal__body p {
  margin: 0 0 12px;
}

body.footer-modal-locked {
  overflow: hidden;
}

@media (min-width: 480px) {
  .footer-modal__dialog {
    max-width: 460px;
  }
}

@media (min-width: 768px) {
  .footer-modal__dialog {
    max-width: 560px;
    max-height: 80vh;
  }

  .footer-modal__content {
    padding: 40px 36px 32px;
  }

  .footer-modal__title {
    font-size: 22px;
  }

  .footer-modal__body {
    font-size: 16px;
  }
}
