:root {
  --color-primary: #64748b;
  --color-secondary: #f59e0b;
  --color-accent: #2563eb;
}

.font-inter {
  font-family: 'Inter', sans-serif;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom focus styles */
.focus\:ring-2:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--color-primary);
}

/* Form styles */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(100, 116, 139, 0.1);
}

/* Button hover effects */
.transition-colors {
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out;
}

.hover\:opacity-90:hover {
  opacity: 0.9;
}

/* Cookie banner animation */
#cookie-banner {
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
}

#cookie-banner:not(.hidden) {
  transform: translateY(0);
}

/* Mobile menu animation */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
}

#mobile-menu:not(.hidden) {
  max-height: 300px;
}

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Success/Error message styles */
.message-success {
  color: #065f46;
  background-color: #d1fae5;
  border-color: #a7f3d0;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border-width: 1px;
}

.message-error {
  color: #991b1b;
  background-color: #fee2e2;
  border-color: #fca5a5;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border-width: 1px;
}

/* Prose styles for legal pages */
.prose {
  color: #374151;
  line-height: 1.75;
}

.prose h1 {
  color: #111827;
  font-weight: 800;
  font-size: 2.25rem;
  margin-bottom: 2rem;
  line-height: 1.1;
}

.prose h2 {
  color: #111827;
  font-weight: 700;
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.prose h3 {
  color: #111827;
  font-weight: 600;
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.prose p {
  margin-bottom: 1.25rem;
}

.prose ul {
  margin-bottom: 1.25rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose a {
  color: var(--color-primary);
  text-decoration: none;
}

.prose a:hover {
  text-decoration: underline;
}

.prose strong {
  font-weight: 600;
  color: #111827;
}

/* Table styles */
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.prose th,
.prose td {
  border: 1px solid #d1d5db;
  padding: 0.75rem;
  text-align: left;
}

.prose th {
  background-color: #f9fafb;
  font-weight: 600;
  color: #111827;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .prose h1 {
    font-size: 1.875rem;
  }
  
  .prose h2 {
    font-size: 1.375rem;
  }
  
  .prose h3 {
    font-size: 1.125rem;
  }
  
  .prose table {
    font-size: 0.875rem;
  }
  
  .prose th,
  .prose td {
    padding: 0.5rem;
  }
}

/* Print styles */
@media print {
  #cookie-banner,
  #cookie-modal,
  header,
  footer {
    display: none !important;
  }
  
  .prose {
    font-size: 12pt;
    line-height: 1.5;
  }
  
  .prose h1,
  .prose h2,
  .prose h3 {
    break-after: avoid;
  }
  
  .prose p,
  .prose ul,
  .prose ol {
    orphans: 3;
    widows: 3;
  }
}
/* Cookie banner visibility — independent of Tailwind */
#cookie-banner.hidden, #cookie-consent-banner.hidden { display: none !important; }
#cookie-banner:not(.hidden), #cookie-consent-banner:not(.hidden) { display: block !important; }
#cookie-modal.hidden { display: none !important; }
