.site-footer {
  background: var(--ff-dark, #0b111d);
  color: #e5e7eb;
  padding: 64px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 0.9fr 0.9fr 1.2fr;
  gap: 36px;
  margin-bottom: 34px;
}

.footer-logo {
  display: inline-flex;
  margin-bottom: 18px;
}

.footer-logo img {
  width: 116px;
  height: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.footer-col h4 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
}

.footer-col p,
.footer-col li,
.footer-col a {
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.75;
}

.footer-col p {
  margin: 0 0 14px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 7px;
}

.footer-col a {
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--ff-gold, #c89b3c);
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.footer-socials a:hover {
  background: var(--ff-gold, #c89b3c);
  border-color: var(--ff-gold, #c89b3c);
  color: var(--ff-ink, #111827);
}

.footer-disclaimer {
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-disclaimer p {
  max-width: 920px;
  margin: 0 auto;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.7;
}

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  color: #94a3b8;
  font-size: 14px;
}

.footer-bottom-row p {
  margin: 0;
}

.footer-bottom-row a {
  color: #fff;
  text-decoration: none;
}

.footer-bottom-row a:hover {
  color: var(--ff-gold, #c89b3c);
}

/* Final shared footer lock.
   Some legacy/project pages still carry broad footer classes in page CSS.
   These scoped rules keep the included footer identical across the site. */
.site-footer .footer-container {
  width: min(1200px, calc(100% - 40px)) !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
}

.site-footer .footer-grid.footer-grid-final {
  display: grid !important;
  grid-template-columns: minmax(280px, 1.7fr) minmax(140px, .9fr) minmax(150px, .9fr) minmax(230px, 1.2fr) !important;
  gap: 36px !important;
  align-items: start !important;
  margin: 0 0 34px !important;
}

.site-footer .footer-col,
.site-footer .footer-brand {
  grid-column: auto !important;
  width: auto !important;
  max-width: none !important;
  text-align: left !important;
}

.site-footer .footer-logo {
  display: inline-flex !important;
  margin: 0 0 18px !important;
}

.site-footer .footer-logo img {
  width: 116px !important;
  max-width: 116px !important;
  height: auto !important;
  filter: brightness(0) invert(1) !important;
}

.site-footer .footer-col h4 {
  margin: 0 0 16px !important;
  color: #fff !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  line-height: 1.25 !important;
}

.site-footer .footer-col p,
.site-footer .footer-col li,
.site-footer .footer-col a {
  color: #cbd5e1 !important;
  font-size: 14px !important;
  line-height: 1.75 !important;
  text-decoration: none !important;
}

.site-footer .footer-col ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.site-footer .footer-socials {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin-top: 18px !important;
}

.site-footer .footer-socials a {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  border-radius: 50% !important;
}

.site-footer .footer-disclaimer {
  display: block !important;
  width: 100% !important;
  padding-top: 22px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  text-align: center !important;
}

.site-footer .footer-disclaimer p {
  max-width: 920px !important;
  margin: 0 auto !important;
  color: #94a3b8 !important;
  font-size: 13px !important;
  line-height: 1.7 !important;
  text-align: center !important;
}

.site-footer .footer-bottom-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  padding-top: 20px !important;
  color: #94a3b8 !important;
  font-size: 14px !important;
}

.site-footer .footer-bottom-row p {
  margin: 0 !important;
}

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

@media (max-width: 980px) {
  .footer-grid,
  .site-footer .footer-grid.footer-grid-final {
    grid-template-columns: 1fr 1fr !important;
  }

  .footer-brand,
  .site-footer .footer-brand {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 640px) {
  .site-footer {
    padding-top: 50px;
  }

  .footer-container {
    width: min(100% - 28px, 1200px);
  }

  .footer-grid,
  .site-footer .footer-grid.footer-grid-final {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  .footer-brand,
  .site-footer .footer-brand {
    grid-column: auto !important;
  }

  .footer-bottom-row,
  .site-footer .footer-bottom-row {
    align-items: flex-start !important;
    flex-direction: column !important;
  }
}
