/* Base footer container */
.tg-footer {
  padding-top: 70px;
  border-top: 1px solid currentColor; /* will follow theme color below */
}

/* Matches your earlier inline padding */
.tg-footer__container {
  padding-left: 60px;
  padding-right: 60px;
}

/* Make the top row align to the top (logo/nav left, CTA right) */
.tg-footer__top {
  align-items: flex-start; /* bootstrap row is flex */
}

/* Logo */
.tg-footer__logo {
  display: inline-flex;
  margin-bottom: 22px;
  text-decoration: none;
}
.tg-footer__logo:after {
  display: none; /* prevent underline pseudo-element on logo */
}
.tg-footer__logo img {
  display: block;
  height: 20px;
}

/* Nav */
.tg-footer__nav {
  list-style: none;
  padding: 0;
  margin: 0; /* original feels tighter than "20px 0" */
}
.tg-footer__nav li {
  margin: 0 0 6px 0;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.5px;
}

/* Toggle sits under nav (as in original) */
.tg-footer__toggle {
  margin-top: 10px;
}

/* CTA column */
.tg-footer__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* left-aligned like the original */
}
.tg-footer__title {
  font-size: 54px;
  line-height: 1;
  font-weight: 500;
  margin: 0 0 60px 0; /* matches original spacing above button */
}

/* CTA "button" (transparent by your rule) */
.tg-footer__cta-link {
  display: inline-block;
  border: 1px solid currentColor;
  padding: 15px 45px;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  background: transparent !important; /* guard against other CSS */
}
.tg-footer__cta-link:after {
  display: none; /* keep it looking like a button, not an underlined link */
}

/* Bottom bar */
.tg-footer__bottom {
  margin-top: 75px;
  padding-bottom: 25px;
  font-size: 11px;
  line-height: 1.27;
  letter-spacing: 0.5px;
  opacity: 0.5;

  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Theme safety
   theme.light.css sets global link colors; we force footer to use theme colors.
   -------------------------------------------------------------------------- */
body.theme-dark .tg-footer {
  color: #f2f2f2;
  border-top-color: #f2f2f2;
}

body.theme-light .tg-footer {
  color: #3b3b3b;
  border-top-color: #3b3b3b;
}

/* Make all footer links inherit footer color (not global a { color: ... }) */
.tg-footer a {
  color: inherit;
}

/* Underline pseudo-element color */
.tg-footer a:after {
  background: currentColor;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1170px) {
  .tg-footer__container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 1024px) {
  .tg-footer__title {
    margin-bottom: 30px;
  }
}

@media (max-width: 767px) {
  .tg-footer__title {
    font-size: 40px;
  }

  /* Give CTA some breathing room when it stacks under nav */
  .tg-footer__cta {
    margin-top: 30px;
  }
}
