/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  position: relative;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ffffff;
  padding: 2rem 2rem 1rem 2rem;
  border-bottom: 1px solid #eee;
  border-radius: 10px 10px 0 0;
  flex-shrink: 0;
}

.modal-header h2 {
  color: #d4a373;
  font-family: 'Playfair Display', serif;
  margin: 0;
  font-size: 2rem;
}

.close-modal {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #5c4033;
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.3s ease;
}

.close-modal:hover {
  color: #b22222;
}

/* Fixed read notice */
.read-notice {
  content: 'Please read this document';
  display: block;
  background-color: #ffe0b2;
  color: #d4a373;
  padding: 8px 15px;
  margin: 0 2rem;
  text-align: center;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.modal-body {
  color: #5c4033;
  line-height: 1.6;
  padding: 1rem 2rem 2rem 2rem;
  position: relative;
  overflow-y: auto;
  flex: 1;
}

/* Content Styles */
.terms-content,
.privacy-content {
  font-size: 1rem;
}

.terms-content h3,
.privacy-content h3 {
  color: #d4a373;
  font-family: 'Playfair Display', serif;
  margin: 1.5rem 0 1rem;
  font-size: 1.3rem;
}

.terms-content p,
.privacy-content p {
  margin-bottom: 1rem;
  color: #5c4033;
  line-height: 1.8;
}

/* Scrollbar Styles */
.modal-body::-webkit-scrollbar {
  width: 8px;
}

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

.modal-body::-webkit-scrollbar-thumb {
  background: #d4a373;
  border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: #b22222;
}

/* Dark mode support */
body.braider-mode .modal-content {
  background-color: #ffffff;
}

body.braider-mode .modal-header {
  background-color: #ffffff;
}

body.braider-mode .terms-content p,
body.braider-mode .privacy-content p {
  color: #5c4033;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    padding: 1.5rem;
  }

  .modal-header h2 {
    font-size: 1.5rem;
  }

  .terms-content,
  .privacy-content {
    font-size: 0.9rem;
  }
} 