/* Site-wide legal modals (main page — Paddle review) */

.site-legal-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
}

.site-legal-modal-overlay.is-open {
  display: flex;
}

.site-legal-modal {
  position: relative;
  width: min(640px, 100%);
  max-height: 80vh;
  overflow-y: auto;
  padding: 32px;
  border-radius: 16px;
  border: 1px solid #2e2e2e;
  background: #1a1a1a;
  color: #f1f1f1;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

.site-legal-modal::-webkit-scrollbar {
  width: 4px;
}

.site-legal-modal::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.site-legal-modal-title {
  margin: 0 0 16px;
  padding-right: 32px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.site-legal-modal-body {
  font-size: 14px;
  line-height: 1.75;
  color: #9aa0a6;
}

.site-legal-modal-body h3 {
  margin: 20px 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: #f1f1f1;
}

.site-legal-modal-body p {
  margin: 0 0 12px;
}

.site-legal-modal-body ul {
  margin: 0 0 12px 20px;
}

.site-legal-modal-body li {
  margin-bottom: 6px;
}

.site-legal-modal-body a {
  color: #8ab4f8;
}

.site-legal-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  background: #222;
  color: #9aa0a6;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.site-legal-modal-close:hover {
  background: #333;
  color: #f1f1f1;
}

.site-legal-modal-close:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.45);
  outline-offset: 2px;
}
