/* Footer legal buttons (Privacy Policy / Cookies / Disclaimer) */
.footer__link {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 16px;
  background: rgba(20, 10, 30, 0.65);
  z-index: 1000;
  overflow-y: auto;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}

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

body.modal-open {
  overflow: hidden;
}

.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: auto 0;
  background: #ffffff;
  border-radius: 14px;
  padding: 28px 20px 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  box-sizing: border-box;
  animation: modal-fade-in 0.2s ease-out;
}

.modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  color: rgb(59, 64, 52);
  cursor: pointer;
  border-radius: 50%;
  transition: background-color 0.15s ease;
}

.modal__close:hover {
  background-color: rgba(59, 64, 52, 0.08);
}

.modal__title {
  margin: 0 0 16px;
  padding-right: 36px;
  font-size: 1.3rem;
  font-weight: 600;
  color: rgb(59, 64, 52);
}

.modal__content {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgb(59, 64, 52);
}

.modal__content p {
  margin: 0 0 12px;
}

@keyframes modal-fade-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 576px) {
  .modal {
    align-items: center;
    padding: 24px;
  }

  .modal__dialog {
    margin: 0;
    padding: 32px 32px 28px;
  }
}

@media (min-width: 992px) {
  .modal__dialog {
    max-width: 560px;
    padding: 40px 40px 32px;
  }

  .modal__title {
    font-size: 1.5rem;
  }

  .modal__content {
    font-size: 1rem;
  }
}
