:root {
  --tc-footer-ink: #10201b;
  --tc-footer-muted: #5f7369;
  --tc-footer-gold: #d7ae58;
  --tc-footer-jade: #0f766e;
  --tc-footer-night: #f8fffb;
  --tc-footer-line: rgba(15, 118, 110, .16);
}

.tc-global-footer {
  position: relative;
  overflow: hidden;
  margin-top: 2rem;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 2rem clamp(.7rem, 2vw, 1.25rem) 1rem;
  color: var(--tc-footer-ink);
  background:
    linear-gradient(115deg, rgba(232,250,245,.78), transparent 36%),
    linear-gradient(245deg, rgba(255,246,217,.72), transparent 40%),
    linear-gradient(180deg, #ffffff, #f8fffb);
  border-top: 1px solid var(--tc-footer-line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.82);
}

.main-content > .tc-global-footer {
  margin-left: 0;
  margin-right: 0;
}

.tc-global-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(15,118,110,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,118,110,.07) 1px, transparent 1px);
  background-size: 46px 46px;
  opacity: .35;
  mask-image: linear-gradient(90deg, rgba(0,0,0,.55), transparent);
}

.tc-footer-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid var(--tc-footer-line);
  border-radius: 8px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 14px 38px rgba(22,75,67,.08);
}

.tc-footer-hero span {
  display: block;
  color: var(--tc-footer-jade);
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.tc-footer-hero strong {
  display: block;
  margin-top: .22rem;
  font-family: "Playfair Display", Georgia, serif;
  color: #132f28;
  font-size: clamp(1rem, 1.7vw, 1.35rem);
  line-height: 1.18;
}

.tc-footer-hero a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 1rem;
  color: #fff;
  background: linear-gradient(135deg, var(--tc-footer-jade), #00a88f);
  font-weight: 950;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(15,118,110,.22);
}

.tc-footer-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0 auto;
}

.tc-footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) minmax(220px, .8fr) minmax(260px, .95fr);
  gap: .8rem;
  align-items: stretch;
}

.tc-footer-brand,
.tc-footer-links,
.tc-support-card {
  border: 1px solid var(--tc-footer-line);
  border-radius: 8px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 14px 36px rgba(22,75,67,.08);
}

.tc-footer-brand,
.tc-footer-links {
  padding: 1.1rem;
}

.tc-footer-logo {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: .8rem;
}

.tc-footer-logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  padding: 5px;
  box-shadow: 0 10px 24px rgba(15,118,110,.14);
}

.tc-footer-logo strong,
.tc-support-frame strong {
  display: block;
  color: var(--tc-footer-ink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.1;
}

.tc-footer-logo span,
.tc-support-frame span,
.tc-footer-brand p,
.tc-footer-bottom {
  color: #3d554b;
  line-height: 1.6;
}

.tc-footer-contact {
  display: grid;
  gap: .38rem;
  margin-top: .85rem;
  color: var(--tc-footer-muted);
  font-size: .9rem;
}

.tc-footer-contact a {
  color: var(--tc-footer-jade);
  font-weight: 900;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.tc-footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: .85rem;
}

.tc-footer-badges span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--tc-footer-line);
  border-radius: 999px;
  padding: 0 .65rem;
  color: var(--tc-footer-jade);
  background: rgba(216,251,241,.62);
  font-size: .78rem;
  font-weight: 950;
}

.tc-footer-links h3,
.tc-support-card h3 {
  margin: 0 0 .8rem;
  color: var(--tc-footer-gold);
  font-size: .82rem;
  text-transform: uppercase;
}

.tc-footer-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.tc-footer-link-row a,
.tc-designed a,
.tc-support-actions a {
  color: var(--tc-footer-ink);
  font-weight: 800;
  text-decoration: none;
}

.tc-footer-link-row a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 .65rem;
  border: 1px solid var(--tc-footer-line);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
}

.tc-support-card {
  padding: .95rem;
}

.tc-support-frame {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: .8rem;
  align-items: center;
  padding: .8rem;
  border: 1px solid var(--tc-footer-line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(216,251,241,.62));
}

.tc-support-frame img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  padding: 6px;
  box-shadow: 0 12px 26px rgba(15,118,110,.14);
}

.tc-support-frame span {
  display: block;
  margin-top: .25rem;
}

.tc-support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .8rem;
}

.tc-support-actions a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--tc-footer-line);
  border-radius: 999px;
  padding: 0 .75rem;
  background: rgba(255,255,255,.78);
}

.tc-support-actions a:first-child {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--tc-footer-jade), #00a88f);
}

.tc-footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .35rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--tc-footer-line);
  color: #375249;
  font-size: .82rem;
  text-align: center;
}

.tc-footer-bottom span {
  width: 100%;
}

.tc-designed a {
  color: var(--tc-footer-jade);
}

body.tf-auth-page {
  flex-direction: column;
}

body.tf-auth-page .tc-global-footer {
  width: 100%;
}

@media (max-width: 820px) {
  .tc-footer-grid {
    grid-template-columns: 1fr;
  }

  .tc-footer-hero {
    display: block;
  }

  .tc-footer-hero a {
    width: 100%;
    margin-top: .8rem;
  }

  .tc-support-frame {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .tc-support-frame img {
    width: 54px;
    height: 54px;
  }

  .tc-footer-bottom {
    display: block;
    text-align: center;
  }
}

/* Global footer hardening: old page-level footer rules must not restyle this shared footer. */
footer.tc-global-footer,
.tc-global-footer {
  display: block !important;
  position: relative !important;
  overflow: hidden !important;
  width: auto !important;
  max-width: none !important;
  min-height: 0 !important;
  margin-top: 2rem !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding: 2rem clamp(.7rem, 2vw, 1.25rem) 1rem !important;
  color: var(--tc-footer-ink) !important;
  text-align: left !important;
  background:
    linear-gradient(115deg, rgba(232,250,245,.78), transparent 36%),
    linear-gradient(245deg, rgba(255,246,217,.72), transparent 40%),
    linear-gradient(180deg, #ffffff, #f8fffb) !important;
  border: 0 !important;
  border-top: 1px solid var(--tc-footer-line) !important;
  border-radius: 0 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.82) !important;
}

.main-content > footer.tc-global-footer,
.main-content > .tc-global-footer {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.tc-global-footer *,
.tc-global-footer *::before,
.tc-global-footer *::after {
  box-sizing: border-box !important;
}

.tc-global-footer a {
  color: inherit !important;
  text-decoration: none !important;
}

.tc-global-footer .tc-footer-inner {
  position: relative !important;
  z-index: 1 !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 auto !important;
}

.tc-global-footer .tc-footer-hero,
.tc-global-footer .tc-footer-brand,
.tc-global-footer .tc-footer-links,
.tc-global-footer .tc-support-card {
  border: 1px solid var(--tc-footer-line) !important;
  border-radius: 8px !important;
  color: var(--tc-footer-ink) !important;
  background: rgba(255,255,255,.92) !important;
  box-shadow: 0 14px 36px rgba(22,75,67,.08) !important;
}

.tc-global-footer .tc-footer-grid {
  display: grid !important;
  grid-template-columns: minmax(260px, 1.2fr) minmax(220px, .8fr) minmax(260px, .95fr) !important;
  gap: .8rem !important;
  align-items: stretch !important;
}

.tc-global-footer .tc-footer-hero {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1rem !important;
  margin-bottom: 1rem !important;
  padding: 1rem !important;
}

.tc-global-footer .tc-footer-hero span,
.tc-global-footer .tc-footer-links h3,
.tc-global-footer .tc-support-card h3,
.tc-global-footer .tc-footer-contact a,
.tc-global-footer .tc-designed a {
  color: var(--tc-footer-jade) !important;
}

.tc-global-footer .tc-footer-hero strong,
.tc-global-footer .tc-footer-logo strong,
.tc-global-footer .tc-support-frame strong {
  color: var(--tc-footer-ink) !important;
}

.tc-global-footer .tc-footer-logo span,
.tc-global-footer .tc-support-frame span,
.tc-global-footer .tc-footer-brand p,
.tc-global-footer .tc-footer-bottom,
.tc-global-footer .tc-footer-contact {
  color: #3d554b !important;
}

.tc-global-footer .tc-footer-hero a,
.tc-global-footer .tc-support-actions a:first-child {
  color: #fff !important;
  border-color: transparent !important;
  background: linear-gradient(135deg, var(--tc-footer-jade), #00a88f) !important;
}

.tc-global-footer .tc-footer-bottom {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: .35rem !important;
  margin-top: 1rem !important;
  padding-top: 1rem !important;
  border-top: 1px solid var(--tc-footer-line) !important;
  text-align: center !important;
}

.tc-global-footer .tc-footer-bottom span {
  width: 100% !important;
}

body.tf-auth-page footer.tc-global-footer,
body.tf-auth-page .tc-global-footer {
  width: 100% !important;
}

@media (max-width: 820px) {
  .tc-global-footer .tc-footer-grid {
    grid-template-columns: 1fr !important;
  }

  .tc-global-footer .tc-footer-hero {
    display: block !important;
  }

  .tc-global-footer .tc-footer-hero a {
    width: 100% !important;
    margin-top: .8rem !important;
  }
}
