/* ---- Terms & Privacy: clickable trigger + modal ---- */

/* trigger sits ABOVE the invisible checkbox overlay (z-index:3) so clicking
   the words opens the modal instead of toggling the box */
.single-checkbox .checkbox-label .terms-trigger {
  position: relative;
  z-index: 4;
  color: #3decff;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(61, 236, 255, 0.45);
  transition: color 0.25s ease, text-shadow 0.25s ease;
}
.single-checkbox .checkbox-label .terms-trigger:hover,
.single-checkbox .checkbox-label .terms-trigger:focus-visible {
  color: #8be9ff;
  text-shadow: 0 0 12px rgba(61, 236, 255, 0.45);
  outline: none;
}

/* modal */
.dd-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.dd-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.dd-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.dd-modal__panel {
  position: relative;
  width: 100%;
  max-width: 540px;
  max-height: 85vh;
  overflow-y: auto;
  background: linear-gradient(180deg, #121417 0%, #0c0d0f 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 36px 36px 30px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(61, 236, 255, 0.06);
  transform: translateY(16px) scale(0.98);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}
.dd-modal.is-open .dd-modal__panel {
  transform: none;
  opacity: 1;
}

.dd-modal__close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: #aab;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.dd-modal__close:hover {
  color: #fff;
  border-color: rgba(61, 236, 255, 0.5);
  background: rgba(61, 236, 255, 0.08);
}

.dd-modal__eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #3decff;
  margin-bottom: 10px;
}

.dd-modal__title {
  font-size: 26px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 6px;
  line-height: 1.15;
}

.dd-modal__intro {
  color: #aeb4bd;
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 20px;
}

.dd-modal__list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dd-modal__list li {
  position: relative;
  padding-left: 26px;
  color: #c7ccd3;
  font-size: 14.5px;
  line-height: 1.55;
}
.dd-modal__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3decff;
  box-shadow: 0 0 8px rgba(61, 236, 255, 0.7);
}
.dd-modal__list li strong {
  color: #fff;
  font-weight: 600;
}

.dd-modal__foot {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.dd-modal__meta {
  font-size: 12.5px;
  color: #7c828b;
  line-height: 1.5;
}
.dd-modal__meta a {
  color: #3decff;
  text-decoration: none;
}
.dd-modal__meta a:hover {
  text-decoration: underline;
}

.dd-modal__ok {
  background: #fff;
  color: #000;
  border: none;
  border-radius: 10px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 13px 22px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.dd-modal__ok:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(61, 236, 255, 0.18);
}

@media (max-width: 575px) {
  .dd-modal__panel {
    padding: 30px 22px 24px;
  }
  .dd-modal__title {
    font-size: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dd-modal,
  .dd-modal__panel {
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }
  .dd-modal__panel {
    transform: none;
  }
}
