.modal {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 225ms, visibility 275ms;
  z-index: 3500;
}

@media (min-width: 768px) {
  .modal {
    top: calc(50vh - 350px);
    height: 700px;
  }
}

.modal.showing {
  opacity: 1;
  visibility: visible;
}
.modal.showing .modal-content {
  transform: scale(1);
}
.modal.showing .modal-backdrop {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  z-index: 1050;
  position: relative;
  width: 100vw;
  border-radius: 5px;
  background: #fff;
  transform: scale(0.7);
  transition: transform 500ms;
}

@media (min-width: 768px) {
  .modal-content {
    max-width: 500px;
  }
}

@media (min-width: 992px) {
  .modal-content {
    max-width: 800px;
  }
}

@media (min-width: 1200px) {
  .modal-content {
    max-width: 1140px;
  }
}

@media (max-width: 1200px) {
  .modal-content {
    height: 100%;
  }
}

.modal-header {
  display: flex;
  align-items: center;
  padding-right: 15px;
  padding-left: 15px;
  border-bottom: 1px solid #ccc;
}

.modal-header .close {
  margin-left: auto;
}

.modal-body {
  padding-right: 15px;
  padding-left: 15px;

  overflow-y: auto;
}

@media (max-width: 1199px) {
  .modal-body {
    height: calc(100% - 92px);
  }
}

@media (min-width: 1200px) {
  #privacy .modal-body,
  #terms .modal-body,
  #consent .modal-body {
    max-height: 500px;
  }
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 15px;
  padding-left: 15px;
}

.modal-backdrop {
  z-index: 1040;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(32, 31, 44, 0.85);
  opacity: 0;
  visibility: hidden;
  transition: opacity 500ms, visibility 550ms;
}

.modal-btn {
  margin: 20px;
  padding: 10px 20px;
}

.modal * {
  font-family: "Lato", sans-serif !important;
}

.modal p {
  color: #000;
}

legend {
  display: none !important;
}

.modal-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: none;
  padding: 30px 0 12px 0;
}

.modal-content {
  min-height: 500px;
}

.btn-back {
  position: absolute;
  top: 10px;
  left: 10px;
}

#privacy a,
#terms a,
#consent a {
  color: #660000;
}
