/* ===== Base Styles ===== */
/* Text center alignment with white color */
.text-center.container {
  color: #fff;
}

/* Inherit text color for child elements */
.text-center.container h2,
.text-center.container p,
.text-center.container .lead {
  color: inherit;
}

/* Text shadow for readability */
.text-center.container p {
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

/* ===== Component Styles ===== */
/* Modal with cross-browser support */
.modal {
  /* Fallback for older browsers */
  background: #fff;
  /* Modern with opacity */
  background: rgba(255, 255, 255, 0.9);
  /* Vendor-prefixed backdrop filter */
  -webkit-backdrop-filter: blur(5px);
          backdrop-filter: blur(5px);
}

/* Spinner alignment */
.spinner-border {
  vertical-align: middle;
  margin-right: 8px;
}

/* ===== Legal Sections ===== */
/* Base section styles */
.legal-section {
  display: none;
  /* Fallback color */
  background-color: #fff;
  /* Modern with opacity */
  background-color: rgba(255, 255, 255, 0.95);
  padding: 2rem 0;
  border-top: 2px solid #0d6efd; /* Bootstrap primary blue */
  transition: all 0.3s ease-out;
}

/* Section header */
.legal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

/* Content container */
.legal-content {
  /* Fallback border color */
  border: 1px solid #dee2e6; /* Bootstrap border color */
  border-radius: 8px;
  padding: 25px;
  background: #fff;
  max-height: 60vh;
  overflow-y: auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Scrollbar styling */
.legal-content::-webkit-scrollbar {
  width: 8px;
}

.legal-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.legal-content::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.legal-content::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Animation states */
.legal-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.legal-section.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 992px) {
  .legal-section {
    padding: 1.5rem 0;
  }
  
  .legal-content {
    padding: 20px;
    max-height: 55vh;
  }
}

@media (max-width: 768px) {
  .legal-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .legal-content {
    padding: 15px;
    max-height: 50vh;
  }
}

@media (max-width: 576px) {
  .legal-content {
    padding: 12px;
    max-height: 45vh;
  }
}

/* ===== Additional Utilities ===== */
/* For the close button focus state */
.btn-close:focus {
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* For form validation states */
.was-validated .form-control:valid {
  border-color: #198754;
}

.was-validated .form-control:invalid {
  border-color: #dc3545;
}
/* Smooth transitions */
#cookies {
  transition: all 0.3s ease;
}

/* Scrollable content */
#__enzuzo-cookies-root {
  max-height: 60vh;
  overflow-y: auto;
}