/* Unified Terms of Service Modal Styles */

/* Modal base */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  padding: 20px;
}

.modal-content {
  background-color: white;
  padding: 2.5rem;
  border-radius: 10px;
  max-width: 800px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  margin: 40px auto;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
}

.close-button {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #333;
  z-index: 20;
  transition: color 0.2s ease;
}

.close-button:hover {
  color: #0066cc;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .modal {
    padding: 15px;
  }
  
  .modal-content {
    width: 95%;
    padding: 2rem;
    margin: 20px auto;
  }
  
  .close-button {
    top: 1rem;
    right: 1rem;
  }
}

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

.modal-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}
