/**
 * 全站 footer 排版（最高優先，覆蓋舊版 site-fixes 片段）
 * 左：公司／統編／©　右：聯絡資訊　下：置中 icon + 法律連結
 */
footer.lh-footer {
  background-color: var(--rgf-navy-footer, #1e333d) !important;
  color: rgba(255, 255, 255, 0.88) !important;
  padding: 2.25rem 0 2rem;
  font-size: 0.9rem;
  line-height: 1.65;
}

footer.lh-footer > .lh-container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

footer.lh-footer .lh-footer__top {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 2rem 3rem;
  align-items: start;
  width: 100%;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

footer.lh-footer .lh-footer__col p {
  margin: 0 0 0.35rem;
}

footer.lh-footer .lh-footer__col--company {
  text-align: left;
}

footer.lh-footer .lh-footer__col--contact {
  text-align: right;
}

footer.lh-footer .lh-footer__company {
  font-weight: 600;
  color: #fff;
}

footer.lh-footer .lh-footer__meta {
  color: rgba(255, 255, 255, 0.82);
}

footer.lh-footer .lh-footer__copy {
  margin: 0.45rem 0 0;
  font-size: inherit;
  color: rgba(255, 255, 255, 0.82);
}

footer.lh-footer .lh-footer__bottom {
  display: flex !important;
  flex-direction: column;
  align-items: center !important;
  gap: 1rem;
  width: 100%;
  padding-top: 1.35rem;
}

footer.lh-footer .lh-footer__social {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center !important;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
}

footer.lh-footer .lh-footer__icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

footer.lh-footer .lh-footer__icon:hover {
  background: rgba(255, 255, 255, 0.16);
  color: var(--rgf-gold-soft, #e8c872);
  transform: translateY(-1px);
}

footer.lh-footer .lh-footer__icon i {
  font-size: 1.65rem;
  line-height: 1;
}

footer.lh-footer .lh-footer__legal {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center !important;
  align-items: center;
  gap: 0;
  width: 100%;
  text-align: center;
}

footer.lh-footer .lh-footer__legal a {
  font-size: 0.9rem;
  opacity: 0.92;
  color: #fff !important;
  text-decoration: none;
}

footer.lh-footer .lh-footer__legal a:hover {
  color: var(--rgf-gold-soft, #e8c872);
}

footer.lh-footer .lh-footer__legal-sep {
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0.35rem;
  user-select: none;
}

footer.lh-footer a {
  color: #fff !important;
  text-decoration: none;
}

footer.lh-footer a:hover {
  color: var(--rgf-gold-soft, #e8c872) !important;
}

@media (max-width: 640px) {
  footer.lh-footer .lh-footer__top {
    grid-template-columns: 1fr !important;
    gap: 1.25rem;
  }

  footer.lh-footer .lh-footer__col--contact {
    text-align: left;
  }
}
