.footer {
  background-color: white;
  color: #333;
  padding: 40px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 25px;
  box-sizing: border-box;
  max-width: 1200px; /* Industry standard */
  width: 100%; /* Full width up to max */
  margin: 20px auto; /* Center the footer */
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1000px; /* Matches policy-content max-width */
  width: 100%;
  box-sizing: border-box;
}

.footer-section {
  flex: 1;
  min-width: 200px;
  margin-bottom: 2.5rem; /* Matches policy section spacing */
  padding: 0 20px;
}

/* New styles for logo link */
.footer-logo-link {
  text-decoration: none;
  cursor: default;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 1rem; /* Standardized spacing */
}

.footer-logo img {
  height: 60px;
  width: 60px;
  margin-right: 15px;
  cursor: pointer;
}

.footer-logo-text {
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.footer-logo-text p {
  margin: 0;
  padding: 0;
  font-weight: bold;
  font-size: 18px;
  color: #333;
  text-decoration: none;
}

.footer-section h3 {
  font-size: 1.4rem; /* Matches policy h3 sizing */
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  position: relative;
  padding-bottom: 0.5rem;
  color: #222;
  border-bottom: 1px solid #eee; /* Matches policy styling */
}

.footer-section h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px; /* Align with border */
  width: 50px;
  height: 2px;
  background-color: #0066cc;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0; /* Matches policy spacing */
}

.footer-links li {
  margin-bottom: 0.5rem; /* Matches policy li spacing */
}

.footer-links a {
  color: #555;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 14px;
  display: inline-block;
}

.footer-links a:hover {
  color: #0066cc;
  text-decoration: underline;
}

.footer-description {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 1rem; /* Standardized spacing */
  color: #666;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 1rem; /* Standardized spacing */
  margin-left: 25px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #f0f0f0;
  transition: background-color 0.3s ease;
}

.social-icon:hover {
  background-color: #0066cc;
}

.social-icon svg {
  width: 18px;
  height: 18px;
  color: #555;
}

.social-icon:hover svg {
  color: white;
}

.footer-contact {
  margin-top: 1rem; /* Standardized spacing */
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem; /* Matches policy li spacing */
  font-size: 14px;
  color: #555;
}

.contact-icon {
  margin-right: 10px;
  width: 16px;
  height: 16px;
  color: #666;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem; /* Standardized spacing */
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 14px;
  color: #666;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.compliance-badges {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.compliance-badge {
  background-color: #f8f9fa;
  color: #495057;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid #e9ecef;
  white-space: nowrap;
}

.footer-bottom-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  color: #555;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 14px;
}

.footer-bottom-links a:hover {
  color: #0066cc;
}

/* Responsive adjustments - Matches policy.css breakpoints and spacing */
@media (max-width: 1240px) {
  .footer {
    margin: 20px; /* Add margins on smaller screens */
    width: calc(100% - 40px); /* Account for margins */
  }
}

@media (max-width: 992px) {
  .footer {
    padding: 30px;
    margin: 15px; /* Smaller margins on tablets */
    width: calc(100% - 30px);
  }
}

@media (max-width: 800px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-section {
    flex: 0 0 100%;
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-section h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .social-icons {
    justify-content: center;
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 25px;
    margin: 15px; /* Even smaller margins on mobile */
    width: calc(100% - 30px);
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 20px;
    margin: 15px; /* Minimal margins on very small screens */
    width: calc(100% - 30px);
  }

  .footer-logo {
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }

  .footer-logo img {
    margin-right: 15px;
    margin-bottom: 0;
  }

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .compliance-badges {
    justify-content: center;
  }

  .footer-bottom-links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .footer-bottom-links a {
    padding: 5px 0;
  }
}
