.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  z-index: 1000;
  backdrop-filter: blur(3px);
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--background-color);
  padding: 2.5rem;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  z-index: 1001;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color, rgba(0, 0, 0, 0.1));
}

/* Light mode specific styles */
@media (prefers-color-scheme: light) {
  .modal {
    background-color: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
  }
  
  .modal h2 {
    border-bottom-color: rgba(0, 0, 0, 0.1);
    color: #1a1a1a;
  }

  .modal-content {
    color: #333333;
  }

  .modal-buttons {
    border-top-color: rgba(0, 0, 0, 0.1);
  }

  .checkbox-container label {
    color: #333333;
  }
}

/* Dark mode specific styles */
@media (prefers-color-scheme: dark) {
  .modal {
    background-color: #1e1e1e;
    border-color: rgba(255, 255, 255, 0.1);
  }
  
  .modal h2 {
    border-bottom-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
  }

  .modal-content {
    color: rgba(255, 255, 255, 0.9);
  }

  .modal-buttons {
    border-top-color: rgba(255, 255, 255, 0.1);
  }

  .checkbox-container label {
    color: rgba(255, 255, 255, 0.9);
  }
}

.modal h2 {
  margin-top: 0;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid;
  padding-bottom: 0.75rem;
  font-weight: 600;
}

.modal-content {
  margin: 1.5rem 0;
  max-height: 300px;
  overflow-y: auto;
  line-height: 1.6;
  font-size: 1.1rem;
}

.modal-content p {
  margin-bottom: 1.5rem;
}

.modal-content ol {
  padding-left: 1.5rem;
}

.modal-content li {
  margin-bottom: 1rem;
}

.modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid;
}

.modal-button {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s;
  opacity: 0.5;
  pointer-events: none;
}

.modal-button.enabled {
  opacity: 1;
  pointer-events: all;
}

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

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

.agree-button {
  background-color: #4CAF50;
  color: white;
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.checkbox-container input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.checkbox-container label {
  cursor: pointer;
  font-size: 1rem;
  user-select: none;
}

/* Scrollbar styling */
.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: transparent;
}

.modal-content::-webkit-scrollbar-thumb {
  background-color: var(--border-color, rgba(0, 0, 0, 0.2));
  border-radius: 4px;
}

@media (prefers-color-scheme: dark) {
  .modal-content::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
  }
}
