/* Footer Styles */
.site-footer {
  background-color: var(--dark-bg);
  color: var(--light-text);
  padding: 3rem 0 1rem;
  border-top: 1px solid rgba(2, 200, 223, 0.3);
  position: relative;
  z-index: 10;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 70% 30%, var(--cta-gradient1), transparent 40%),
               radial-gradient(circle at 30% 70%, var(--cta-gradient2), transparent 40%);
  z-index: -1;
}

.footer-container {
  max-width: 80%;
  margin: 0 auto;
  padding: 0 5%;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 2rem;
  width: 100%;
}

.footer-column {
  flex: 1;
  min-width: 250px;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.footer-heading {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--accent-mint);
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-subheading {
  font-size: 0.95rem;
  font-weight: 600;
  position: relative;
  padding-bottom: 0.25rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--gold-gradient);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a,
.footer-column p a {
  color: var(--light-text);
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

.footer-links a:hover,
.footer-column p a:hover {
  color: var(--accent-mint);
}

.footer-links a::after,
.footer-column p a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background: var(--accent-mint);
  transition: width 0.3s ease;
}

.footer-links a:hover::after,
.footer-column p a:hover::after {
  width: 100%;
}

.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--light-text);
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: var(--accent-teal);
  color: var(--dark-bg);
  transform: translateY(-3px);
}

.social-icons i {
  font-size: 1.2rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-legal a {
  color: var(--light-text);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: var(--accent-mint);
}

.footer-copyright {
  font-size: 0.8rem;
  color: rgba(246, 249, 250, 0.7);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .footer-row {
    flex-direction: column;
  }
  
  .footer-column {
    width: 100%;
    margin-bottom: 2rem;
  }
  
  .footer-legal {
    flex-direction: column;
    gap: 0.5rem;
  }
}


/* Make footer styles more specific to override any conflicting styles */
.site-footer .footer-legal a {
  background-color: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  transition: color 0.3s ease !important;
  transform: none !important;
  display: inline !important;
  text-align: center !important;
  margin: 0 15px !important;
}

.site-footer .footer-legal a:hover {
  background-color: transparent !important;
  color: var(--accent-mint) !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Remove the "Preview" after effect on hover */
.site-footer .footer-legal a::after {
  display: none !important;
}

/* Override the ::after content for footer legal links specifically */
.site-footer .legal-doc::after {
  content: none !important;
  display: none !important;
}

/* Add a subtle underline effect instead */
.site-footer .footer-legal a:hover::after {
  content: '' !important;
  position: absolute !important;
  display: block !important;
  bottom: -3px !important;
  left: 0 !important;
  width: 100% !important;
  height: 1px !important;
  background-color: var(--accent-mint) !important;
  transform: none !important;
}

/* Fix for any modal issues */
.site-footer .legal-doc:hover::after {
  opacity: 0 !important;
  transform: none !important;
}

/* Update footer-loader.js to match the changes */
.site-footer .footer-links .legal-doc::after,
.site-footer .footer-links .legal-doc:hover::after {
  content: none !important;
  display: none !important;
  opacity: 0 !important;
}

/* Update footer-copyright to use theme variables */
.footer-copyright {
  font-size: 0.8rem;
  color: var(--light-text);
  opacity: 0.7;
  transition: color 0.3s ease;
}

/* For dark theme */
[data-theme="dark"] .footer-copyright {
  color: var(--light-text);
}

/* For light theme */
[data-theme="light"] .footer-copyright {
  color: var(--text-color);
}