.thc-footer {
  --bg: #0b0b0b;
  --txt: rgba(255, 255, 255, 0.84);
  --dim: rgba(255, 255, 255, 0.64);
  --sep: rgba(255, 255, 255, 0.08);
  --gold: var(--nav-accent, #FEC027);
  --red: var(--nav-red, #dc2626);

  background: var(--bg);
  color: var(--txt);
  border-top: 1px solid var(--sep);
  padding: 10px 0 12px;
}

.thc-footer .wrap {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 16px;
}

.thc-footer__top {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 4px 0 6px;
  border-bottom: 1px solid var(--sep);
}

.thc-footer__brand {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
}

.thc-footer__logo {
  width: 34px;
  height: auto;
  display: block;
}

.thc-footer__tag {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  color: var(--dim);
}

.thc-footer__social {
  display: inline-flex;
  gap: 10px;
}

.thc-footer .si {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.thc-footer .si svg {
  width: 18px;
  height: 18px;
  fill: #fff;
  opacity: 0.9;
  transition: opacity 0.18s ease, fill 0.18s ease;
}

.thc-footer .si:hover {
  background: transparent !important;
  box-shadow: none !important;
  transform: translateY(-1px);
}

.thc-footer .si:hover svg {
  fill: var(--gold);
  opacity: 1;
}

.thc-footer__links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  padding: 8px 0;
  border-bottom: 1px solid var(--sep);
}

.thc-footer__links .fl-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px clamp(18px, 2.2vw, 28px);
  width: 100%;
}

.thc-footer [aria-label="Footer quick links"] {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  column-gap: clamp(18px, 2.2vw, 28px);
  row-gap: 10px;
}

.thc-footer [aria-label="Footer quick links"] > li {
  display: flex;
  align-items: center;
}

.thc-footer [aria-label="Footer quick links"] > li:first-child::before {
  content: '•';
  margin: 0 0.6rem 0 0;
  color: var(--red);
  line-height: 1;
  transform: translateY(-0.5px);
}

.thc-footer [aria-label="Footer quick links"] > li + li::before {
  content: '•';
  margin: 0 0.6rem;
  color: var(--red);
  line-height: 1;
  transform: translateY(-0.5px);
}

.thc-footer [aria-label="Footer quick links"] a {
  color: var(--txt);
  background: transparent;
  box-shadow: none;
  transition: color 0.16s ease, text-shadow 0.16s ease;
}

.thc-footer [aria-label="Footer quick links"] a:hover,
.thc-footer [aria-label="Footer quick links"] a:focus-visible {
  color: var(--gold);
  text-shadow: 0 0 6px rgba(254, 192, 39, 0.35);
  outline: none;
}

@media (max-width: 520px) {
  .thc-footer [aria-label="Footer quick links"] {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: center;
    column-gap: 0;
    row-gap: 10px;
  }

  .thc-footer [aria-label="Footer quick links"] > li {
    justify-content: center;
  }
}

.thc-footer__legal {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 8px 0 2px;
  font-size: 12px;
  color: var(--dim);
}

.thc-footer__legal > div {
  white-space: nowrap;
}

.thc-footer__legal .legal-links {
  display: inline-flex;
  gap: 0.4rem;
  vertical-align: baseline;
}

.thc-footer__legal .legal-links a:first-child::before,
.thc-footer__legal .legal-links a + a::before {
  content: '•';
  margin: 0 0.6rem;
  color: var(--red);
  opacity: 0.95;
}

.thc-footer .footer-cta {
  position: relative;
  overflow: hidden;
  justify-self: end;
  display: inline-block;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0c0c0c;
  background: var(--gold);
  border: 1px solid #d6a316;
  border-radius: 12px;
  padding: 10px 18px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transform: translateY(0);
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.thc-footer .footer-cta:hover {
  background: #ffd24a;
  border-color: #e0ad1a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.thc-footer .footer-cta:active {
  transform: translateY(0);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25);
}

.thc-footer .footer-cta:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(254, 192, 39, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.thc-footer .footer-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 45%, rgba(255, 255, 255, 0.35) 50%, transparent 55%);
  transform: translateX(-120%);
  pointer-events: none;
}

.thc-footer .footer-cta:hover::after {
  animation: ctaGlint 0.6s ease;
}

@keyframes ctaGlint {
  to {
    transform: translateX(120%);
  }
}

@media (max-width: 780px) {
  .thc-footer__top {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 8px;
  }

  .thc-footer__brand {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .thc-footer__logo {
    width: 40px;
  }

  .thc-footer__tag {
    max-width: 34ch;
    margin-inline: auto;
  }

  .thc-footer__social {
    justify-content: center;
  }

  .thc-footer__links {
    justify-content: center;
  }

  .thc-footer__legal {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .thc-footer__legal > div {
    white-space: normal;
  }

  .thc-footer__legal .legal-links {
    display: flex;
    justify-content: center;
    margin-top: 4px;
  }

  .thc-footer__legal .sep {
    display: none;
  }

  .thc-footer .footer-cta {
    justify-self: center;
  }
}

@media (min-width: 781px) and (max-width: 1099px) {
  .thc-footer__links {
    justify-content: center;
  }
}

@media (min-width: 1100px) {
  .thc-footer__links {
    justify-content: center;
  }
}

.thc-footer__legal a:focus-visible {
  outline: none;
  color: var(--gold);
  text-shadow: 0 0 6px rgba(254, 192, 39, 0.35);
}
