/* D4 Overlay trust modal */
.trust-modal {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, .78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.trust-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.modal-open {
  overflow: hidden;
}

.trust-modal-content {
  position: relative;
  width: min(100%, 600px);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow: hidden;
  padding: clamp(20px, 3.5vw, 30px);
  color: #eee9df;
  background:
    radial-gradient(circle at 50% 0, rgba(140, 24, 24, .22), transparent 52%),
    #101010;
  border: 1px solid rgba(185, 152, 97, .38);
  border-radius: 12px;
  box-shadow: 0 24px 90px rgba(0, 0, 0, .62);
  transform: translateY(12px);
  transition: transform 220ms ease;
}

.trust-modal.active .trust-modal-content {
  transform: translateY(0);
}

.trust-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  background: rgba(255, 255, 255, .04);
  color: #eee9df;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.trust-modal-brand {
  margin-bottom: 8px;
  font-family: "Cinzel", Georgia, serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 4px;
  color: #c9c1b5;
}

.trust-modal-brand span {
  color: #e32b2b;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -1px;
}

.trust-modal-line {
  width: 52px;
  height: 2px;
  margin-bottom: 14px;
  background: linear-gradient(90deg, #751010, #e32b2b);
}

.trust-modal-content h2 {
  margin: 0 36px 10px 0;
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(21px, 3.5vw, 27px);
  line-height: 1.22;
  font-weight: 600;
}

.trust-modal-intro,
.trust-modal-point p,
.trust-modal-footer-text {
  color: #c6c0b7;
  font-size: 13px;
  line-height: 1.45;
}

.trust-modal-intro {
  margin: 0 0 14px;
}

.trust-modal-points {
  display: grid;
  gap: 10px;
}

.trust-modal-point {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  align-items: start;
}

.trust-modal-point > span {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(185, 152, 97, .4);
  border-radius: 50%;
  color: #d7bd88;
  font-weight: 700;
}

.trust-modal-point p {
  margin: 0;
}

.trust-modal-point strong {
  color: #eee9df;
  font-weight: 700;
}

.trust-modal-footer-text {
  margin: 14px 0;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.trust-modal-button {
  width: 100%;
  min-height: 44px;
  border: 1px solid #e32b2b;
  border-radius: 6px;
  background: linear-gradient(135deg, #a91919, #751010);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: filter 180ms ease, transform 180ms ease;
}

.trust-modal-button:hover {
  filter: brightness(1.15);
}

.trust-modal-button:active {
  transform: translateY(1px);
}

.trust-modal-close:focus-visible,
.trust-modal-button:focus-visible {
  outline: 2px solid #d7bd88;
  outline-offset: 3px;
}

@media (max-width: 520px) {
  .trust-modal {
    padding: 8px;
  }

  .trust-modal-content {
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
    padding: 20px 16px 16px;
  }

  .trust-modal-brand {
    margin-bottom: 5px;
    font-size: 11px;
  }

  .trust-modal-brand span {
    font-size: 19px;
  }

  .trust-modal-line {
    margin-bottom: 10px;
  }

  .trust-modal-content h2 {
    margin-bottom: 8px;
    font-size: 20px;
    line-height: 1.18;
  }

  .trust-modal-intro,
  .trust-modal-point p,
  .trust-modal-footer-text {
    font-size: 12px;
    line-height: 1.35;
  }

  .trust-modal-intro {
    margin-bottom: 10px;
  }

  .trust-modal-points {
    gap: 8px;
  }

  .trust-modal-point {
    grid-template-columns: 22px 1fr;
    gap: 8px;
  }

  .trust-modal-point > span {
    width: 20px;
    height: 20px;
    font-size: 12px;
  }

  .trust-modal-footer-text {
    margin: 10px 0;
    padding-top: 8px;
  }

  .trust-modal-button {
    min-height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .trust-modal,
  .trust-modal-content,
  .trust-modal-button {
    transition: none;
  }
}
