/* ==========================================================================
   modal.css — Terms of Service gate shown before a download
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; }

.modal-content {
  background: var(--surface);
  border: 1px solid var(--border2);
  max-width: 500px;
  width: 100%;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.modal-content h3 {
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tos-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  max-height: 200px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 8px;
}
.tos-text ul {
  padding-left: 16px;
}

.tos-checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
}
.tos-checkbox-wrap input {
  width: 16px;
  height: 16px;
  accent-color: #fff;
  cursor: pointer;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 8px;
}
