.footer {
  background: var(--primary);
  color: var(--neutral-light);
  padding: clamp(3rem, 6vw, 4rem) 2rem 2rem 2rem;
}

.footer-container {
  max-width: 75rem;
  margin: 0 auto;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 0.125rem solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.footer-logo img {
  width: clamp(2.5rem, 4vw, 3.5rem);
  height: clamp(2.5rem, 4vw, 3.5rem);
  border-radius: 0.5rem;
  object-fit: cover;
}

.footer-logo h3 {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2vw + 0.5rem, 1.25rem);
  font-weight: var(--fw-bold);
  color: var(--neutral-light);
  margin: 0;
  line-height: 1.2;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex: 2;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--neutral-light);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: clamp(0.875rem, 1.5vw + 0.25rem, 1rem);
  font-weight: var(--fw-medium);
  opacity: 0.85;
  transition: all 0.3s ease;
  position: relative;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--neutral-light);
  transform: translateY(-0.125rem);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.footer-links a::after {
  content: "";
  position: absolute;
  bottom: -0.25rem;
  left: 0;
  width: 0;
  height: 0.125rem;
  background: var(--neutral-light);
  transition: width 0.3s ease;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

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

.footer-social {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
}

.footer-social-icon {
  width: clamp(2.5rem, 4vw, 3rem);
  height: clamp(2.5rem, 4vw, 3rem);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neutral-light);
  text-decoration: none;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  transition: all 0.3s ease;
  border: 0.125rem solid rgba(255, 255, 255, 0.2);
}

.footer-social-icon:hover {
  background: var(--accent);
  transform: translateY(-0.125rem);
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.2);
}

/* Terms Button */
.footer-terms-btn-container {
  text-align: center;
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

.footer-terms-btn {
  background: var(--accent);
  color: var(--neutral-light);
  border: none;
  padding: clamp(0.75rem, 1.5vw, 1rem) clamp(1.5rem, 3vw, 2rem);
  border-radius: clamp(0.375rem, 0.75vw, 0.5rem);
  font-family: var(--font-body);
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  font-weight: var(--fw-medium);
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-terms-btn:hover {
  background: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.footer-terms-btn i {
  font-size: 1em;
}

.terms-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 1rem;
  box-sizing: border-box;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.terms-modal.active {
  opacity: 1;
  visibility: visible;
}

.terms-modal-content {
  background: var(--neutral-light);
  border-radius: clamp(0.5rem, 1vw, 0.75rem);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  margin: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

.terms-modal.active .terms-modal-content {
  transform: scale(1);
}

.terms-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1rem, 2vw, 1.5rem);
  border-bottom: 1px solid rgba(77, 25, 77, 0.1);
  flex-shrink: 0;
}

.terms-modal-header h4 {
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: clamp(var(--fs-h6), 2vw, var(--fs-h5));
  font-weight: var(--fw-bold);
  margin: 0;
}

.terms-modal-close {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
}

.terms-modal-close:hover {
  background: rgba(77, 25, 77, 0.1);
  transform: rotate(90deg);
}

.terms-modal-body {
  padding: clamp(1rem, 2vw, 1.5rem);
  overflow-y: auto;
  flex: 1;
}

.terms-last-updated {
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 1.2vw, 0.9rem);
  color: var(--neutral-dark);
  opacity: 0.75;
  font-style: italic;
  margin-bottom: clamp(1.25rem, 2vw, 1.5rem);
  padding-bottom: clamp(0.75rem, 1.5vw, 1rem);
  border-bottom: 0.0625rem solid rgba(0, 0, 0, 0.1);
}

.terms-modal-body p {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  color: var(--neutral-dark);
  margin-bottom: clamp(0.75rem, 1.5vw, 1rem);
  line-height: 1.6;
  letter-spacing: 0.01em;
}

.terms-modal-body p:last-child {
  margin-bottom: 0;
}

.terms-modal-body p strong {
  color: var(--accent);
  font-weight: var(--fw-bold);
}

.footer-bottom {
  text-align: center;
  padding-top: 1rem;
}

.footer-bottom p {
  font-family: var(--font-body);
  font-size: clamp(0.875rem, 1.2vw + 0.25rem, 0.9rem);
  color: var(--neutral-light);
  opacity: 0.7;
  margin: 0;
  letter-spacing: 0.02em;
}

.footer-llc-designation {
  margin-top: 0.5rem;
  font-size: 0.9em;
  opacity: 0.6;
}

@media (max-width: 768px) {
  .footer {
    padding: clamp(2.5rem, 4vw, 3rem) 1.5rem 2rem 1.5rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 2.5rem;
    align-items: center;
    justify-content: center;
  }

  .footer-logo {
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: none;
    flex: none;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: clamp(1rem, 2vw, 1.5rem);
    width: 100%;
    max-width: 32rem;
    flex: none;
  }

  .footer-social {
    justify-content: center;
    align-items: center;
    gap: clamp(1rem, 2vw, 1.5rem);
    width: 100%;
    flex: none;
  }

  .footer-terms-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
  }

  .terms-modal-content {
    max-width: 90vw;
    margin: 1rem;
  }

  .terms-modal-header {
    padding: 1rem;
  }

  .terms-modal-body {
    padding: 1rem;
  }

  .footer-bottom {
    text-align: center;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 2rem 1rem 1.5rem 1rem;
  }

  .footer-content {
    gap: 1.5rem;
    text-align: center;
    align-items: center;
  }

  .footer-logo {
    order: 1;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-social {
    gap: 1rem;
  }

  .footer-terms-btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.8rem;
  }

  .terms-modal-content {
    max-width: 95vw;
    margin: 0.5rem;
    max-height: 85vh;
  }

  .terms-modal-header {
    padding: 0.875rem;
  }

  .terms-modal-body {
    padding: 0.875rem;
  }
}

@media (max-width: 480px) {
  .footer-terms-btn {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
  }

  .terms-modal {
    padding: 0.5rem;
  }

  .terms-modal-content {
    max-width: 100vw;
    margin: 0;
    border-radius: 0.5rem;
  }

  .terms-modal-header {
    padding: 0.75rem;
  }

  .terms-modal-body {
    padding: 0.75rem;
  }

  .terms-modal-body p {
    font-size: 0.875rem;
  }
}
