/* ==========================================================================
   5. FOOTER LAYOUT STYLES (Isolate Footer Shell)
   ========================================================================== */
/* <!--isolated-footer-block--> */

body > footer:empty {
  display: none;
}

footer {
  width: 100%;
  background: #ffffff;
  padding: 60px 0 20px 0;
  border-top: 1px solid #f0f0f0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
}

.footer-left {
  flex: 1;
  max-width: 450px;
}

/* Applying your custom Body styling directly to footer text */
.footer-company {
  font-family: Helvetica;
  font-size: 13px;
  font-weight: bold;
  color: #000000;
  margin-bottom: 10px;
}

.footer-ssm {
  color: #929292;
  font-weight: 300;
}

.footer-address,
.footer-contact {
  font-family: Helvetica;
  font-size: 13px;
  font-weight: 300;
  color: #5e5e5e; /* Applied BODY2 style */
  margin-bottom: 8px;
  line-height: 1.35;
}

.footer-copy {
  font-family: Helvetica;
  font-size: 13px;
  font-weight: 300;
  color: #929292; /* Applied BODY3 style */
  margin-top: 15px;
  line-height: 1.3;
}

.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.social-icon-container {
  width: 24px; /* Fixed width for social icons */
  height: 24px; /* Fixed height for social icons */
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icon-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.footer-right {
  display: flex;
  gap: 60px;
  row-gap: 30px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-link-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col-title {
  font-family: Helvetica;
  font-size: 13px;
  font-weight: 700;
  color: #929292;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.footer-link-group a {
  font-family: Helvetica;
  font-size: 13px;
  font-weight: 300;
  color: #000000; /* Applied BODY1 style */
  line-height: 1.25;
}

.footer-link-group a:hover {
  color: #5e5e5e;
}

.footer-social-column .footer-social {
  margin-top: 0;
}

/* Legal section at the very bottom */
.footer-legal {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 15px;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
  font-family: Helvetica;
  font-size: 13px;
  font-weight: 300;
  color: #929292; /* Applied BODY3 style */
  line-height: 1.25;
}

.footer-legal a:hover {
  color: #000000;
}

.footer-legal .sep {
  color: #e0e0e0;
}

@media (max-width: 991px) {
  .footer-inner {
    flex-direction: column;
    gap: 35px;
  }

  .footer-left {
    max-width: none;
  }

  .footer-right {
    width: 100%;
    justify-content: flex-start;
    gap: 35px;
  }

  .footer-link-group {
    min-width: 140px;
  }

  .footer-legal {
    flex-wrap: wrap;
    row-gap: 10px;
  }
}
