/* Reset */
* {
  box-sizing: border-box;
}

body.modal-open {
  overflow: hidden;
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f9f9f9;
}

/* Modal overlay */
#disclaimerModal {
  position: fixed;
  inset: 0; /* shorthand for top:0; left:0; right:0; bottom:0; */
  background-color: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
  animation: fadeIn 0.3s ease forwards;
}

/* Modal container */
.modal-content {
  background-color: #ffffff;
  padding: 2.5rem 3rem;
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  animation: slideUp 0.35s ease forwards;
}

/* Headings */
.modal-content h2, h3 {
  margin-top: 0;
  color: #222;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.modal-content h2 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.modal-content h3 {
  font-size: 1.3rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Paragraphs */
.modal-content p {
  margin-bottom: 1rem;
  color: #555;
}

/* Buttons container */
.modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2.5rem;
  justify-content: center;
  align-items: stretch;
}

/* Buttons */
.modal-buttons button {
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.2s ease;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  user-select: none;
}

.modal-buttons button:focus-visible {
  outline: 3px solid #007bff;
  outline-offset: 2px;
}

.agree-btn {
  background-color: #007bff;
  color: white;
}

.agree-btn:hover {
  background-color: #0056b3;
  box-shadow: 0 5px 15px rgba(0,123,255,0.4);
}

.disagree-btn {
  background-color: #dc3545;
  color: white;
}

.disagree-btn:hover {
  background-color: #a71d2a;
  box-shadow: 0 5px 15px rgba(220,53,69,0.4);
}

/* Horizontal layout for wider screens */
@media (min-width: 600px) {
  .modal-buttons {
    flex-direction: row;
    gap: 1.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .modal-buttons button {
    width: 50%;
  }
}

/* Animations */
@keyframes fadeIn {
  from { background-color: rgba(0, 0, 0, 0); }
  to { background-color: rgba(0, 0, 0, 0.65); }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
