/* Shared UbiqCure site footer — light medical theme */
.legacy-footer {
  --ft-ink: #1e293b;
  --ft-muted: #475569;
  --ft-heading: #0f274f;
  --ft-accent: #6D28D9;
  --ft-blue: #1D6CB9;
  --ft-navy: #123A6F;
  position: relative;
  margin-top: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, #F3F6FA 0%, #E8EEF6 48%, #E4EBF5 100%);
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 -8px 24px rgba(15, 39, 79, 0.04);
  padding: 48px 0 18px;
  font-family: "Poppins", sans-serif;
  color: var(--ft-ink);
}

.legacy-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, #1D6CB9 0%, #64748B 50%, #D91C3D 100%);
  opacity: 0.45;
  pointer-events: none;
  z-index: 2;
}

.legacy-footer__crosses {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.09;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath fill='%231D6CB9' d='M52 18h16v34h34v16H68v34H52V68H18V52h34z'/%3E%3C/svg%3E");
  background-size: 140px 140px;
  background-position: 8% 12%, 70% 40%, 40% 80%;
}

.legacy-footer__inner {
  position: relative;
  z-index: 1;
  width: min(1680px, calc(100% - 40px));
  margin: 0 auto;
}

.legacy-footer__grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(4, minmax(0, 0.9fr));
  gap: 28px 28px;
  align-items: start;
}

.legacy-footer .footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  text-decoration: none;
  margin: 0 0 8px;
  line-height: 1;
}

.legacy-footer .footer-logo__mark {
  width: 58px;
  height: 68px;
  object-fit: contain;
  object-position: center;
  display: block;
  flex-shrink: 0;
  background: transparent;
  filter: drop-shadow(0 2px 8px rgba(20, 43, 89, 0.10));
}

.legacy-footer .footer-logo__wordmark {
  display: inline-flex;
  align-items: center;
  font-family: "Montserrat", "Poppins", sans-serif;
  font-size: clamp(1.65rem, 2.1vw, 2.05rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1;
  padding-top: 2px;
}

.legacy-footer .footer-logo__wordmark .ubiq { color: #1D6CB9; }
.legacy-footer .footer-logo__wordmark .cure { color: #D91C3D; }

.legacy-footer .footer-description {
  color: var(--ft-muted);
  font-family: "Poppins", sans-serif;
  font-size: 0.92rem;
  line-height: 1.65;
  max-width: 36ch;
  margin: 12px 0 0;
  font-weight: 500;
}

.legacy-footer .footer-heading {
  margin: 0 0 16px;
  color: var(--ft-heading);
  font-family: "Montserrat", "Poppins", sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legacy-footer .footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 11px;
}

.legacy-footer .footer-links li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--ft-muted);
  font-size: 0.9rem;
  line-height: 1.45;
  font-weight: 400;
}

.legacy-footer .footer-links a,
.legacy-footer .footer-links span {
  color: var(--ft-ink) !important;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: color 0.15s ease;
}

.legacy-footer .footer-links a:hover { color: var(--ft-blue) !important; }

/* Icons sit inside <a> for chevron/icon lists — gap must be on the link */
.legacy-footer .footer-links--chevron a,
.legacy-footer .footer-links--icons a {
  display: inline-flex;
  align-items: flex-start;
  gap: 12px;
}

.legacy-footer .footer-links--icons a {
  gap: 14px;
}

.legacy-footer .footer-links i {
  color: var(--ft-accent);
  font-size: 0.85rem;
  margin-top: 0.28em;
  flex-shrink: 0;
  width: 1.15rem;
  text-align: center;
}

.legacy-footer .footer-links--icons i {
  font-size: 0.98rem;
  margin-top: 0.12em;
  width: 1.2rem;
}

.legacy-footer .footer-links--contact {
  gap: 12px;
}

.legacy-footer .footer-links--contact li {
  gap: 14px;
}

.legacy-footer .footer-links--contact i {
  font-size: 1rem;
  margin-top: 0.12em;
  width: 1.2rem;
}

/* Newsletter */
.footer-newsletter {
  display: flex;
  align-items: stretch;
  width: min(560px, 100%);
  margin: 36px auto 0;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #D7E0ED;
  box-shadow: 0 8px 22px rgba(15, 39, 79, 0.06);
}

.footer-newsletter input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 14px 20px;
  font-family: "Poppins", sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ft-ink);
}

.footer-newsletter input::placeholder {
  color: #94A3B8;
  font-weight: 500;
}

.footer-newsletter button {
  flex: 0 0 auto;
  border: 0;
  background: var(--ft-navy);
  color: #fff;
  font-family: "Montserrat", "Poppins", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0 26px;
  min-height: 48px;
  cursor: pointer;
  transition: background-color 0.15s ease, filter 0.15s ease;
}

.footer-newsletter button:hover {
  background: #0d2f5c;
  filter: brightness(1.05);
}

.legacy-footer .visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Bottom bar */
.legacy-footer .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid #D5DEEA;
  margin-top: 28px;
  padding-top: 16px;
  text-align: left;
}

.legacy-footer .footer-bottom p,
.legacy-footer .footer-bottom span {
  color: var(--ft-muted);
  font-family: "Poppins", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0;
}

.legacy-footer .footer-bottom__sep {
  margin: 0 0.65rem;
  opacity: 0.7;
}

.legacy-footer .social-icons {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.legacy-footer .social-icons a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ft-navy);
  font-size: 1rem;
  background: #FFFFFF;
  border: 1px solid #D5DEEA;
  box-shadow: 0 4px 12px rgba(18, 58, 111, 0.06);
  transition: background-color 0.15s ease, transform 0.15s ease, color 0.15s ease;
}

.legacy-footer .social-icons a:hover {
  background: #EEF4FF;
  transform: translateY(-1px);
  color: var(--ft-blue);
}

@media (max-width: 1199.98px) {
  .legacy-footer__grid {
    grid-template-columns: minmax(220px, 1.2fr) repeat(4, minmax(0, 1fr));
    gap: 24px 18px;
  }
  .legacy-footer .footer-heading { font-size: 0.8rem; }
  .legacy-footer .footer-links a,
  .legacy-footer .footer-links span { font-size: 0.86rem; }
}

@media (max-width: 991.98px) {
  .legacy-footer {
    padding: 36px 0 18px;
  }

  .legacy-footer__inner { width: calc(100% - 24px); }

  .legacy-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 20px;
  }

  .legacy-footer__brand { grid-column: 1 / -1; }

  .legacy-footer .footer-description {
    max-width: 52ch;
  }

  .footer-newsletter {
    width: min(520px, 100%);
    margin-top: 28px;
  }

  .legacy-footer .footer-bottom {
    justify-content: space-between;
    text-align: left;
  }

  .legacy-footer .social-icons { margin-left: auto; }
}

@media (max-width: 767.98px) {
  .legacy-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 16px;
  }

  .legacy-footer .footer-heading {
    margin-bottom: 12px;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
  }

  .legacy-footer .footer-links { gap: 10px; }

  .legacy-footer .footer-links--chevron a,
  .legacy-footer .footer-links--icons a {
    gap: 12px;
  }

  .legacy-footer .footer-links--icons a { gap: 13px; }

  .legacy-footer .footer-links a,
  .legacy-footer .footer-links span {
    font-size: 0.84rem;
    line-height: 1.4;
  }

  .footer-newsletter {
    width: 100%;
  }

  .legacy-footer .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .legacy-footer .social-icons {
    margin-left: 0;
  }
}

@media (max-width: 575.98px) {
  .legacy-footer { padding: 28px 0 16px; }
  .legacy-footer__inner { width: calc(100% - 16px); }

  .legacy-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px 14px;
  }

  .legacy-footer__brand {
    grid-column: 1 / -1;
  }

  .legacy-footer .footer-logo {
    gap: 10px;
  }

  .legacy-footer .footer-logo__mark { width: 48px; height: 56px; }
  .legacy-footer .footer-logo__wordmark { font-size: 1.45rem; }

  .legacy-footer .footer-description {
    font-size: 0.86rem;
    max-width: none;
  }

  .legacy-footer .footer-links--chevron a,
  .legacy-footer .footer-links--icons a,
  .legacy-footer .footer-links--contact li {
    gap: 12px;
  }

  .footer-newsletter {
    flex-direction: column;
    border-radius: 14px;
  }

  .footer-newsletter input {
    padding: 13px 16px;
    font-size: 0.9rem;
  }

  .footer-newsletter button {
    width: 100%;
    min-height: 46px;
    border-radius: 0 0 14px 14px;
    padding: 0 16px;
  }

  .legacy-footer .footer-bottom {
    align-items: center;
    text-align: center;
  }

  .legacy-footer .footer-bottom__copy {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 0;
  }

  .legacy-footer .social-icons {
    margin: 0 auto;
  }
}

@media (max-width: 380px) {
  .legacy-footer__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
