body:has(> footer.tdc-site-footer) > footer.tdc-site-footer {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(130px, .85fr) minmax(210px, 1fr) minmax(max-content, 1fr);
  align-items: center;
  column-gap: clamp(24px, 5vw, 72px);
  row-gap: 16px;
  padding: 22px max(20px, calc((100% - 1160px) / 2)) 12px;
  margin: 0;
  background: #0d2a24;
  color: #e5ecde;
  font: 600 14px/1.35 "DM Sans", system-ui, sans-serif;
}
body > footer.tdc-site-footer > .footer-brand {
  grid-column: auto;
  width: min(100%, 140px);
  max-width: 100%;
  margin: 0;
  justify-self: start;
}
body > footer.tdc-site-footer .footer-brand > .footer-logo {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}
body > footer.tdc-site-footer .footer-logo > img { display: block; width: 100%; height: auto; }
body > footer.tdc-site-footer .footer-brand > span {
  margin: 3px 0 0;
  font: 500 10px/1.3 "DM Sans", system-ui, sans-serif;
  letter-spacing: .03em;
}
body > footer.tdc-site-footer > .tdc-footer-contact {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
  gap: 0;
  margin: 0;
  text-align: left;
}
body > footer.tdc-site-footer > nav {
  position: static;
  inset: auto;
  width: auto;
  margin: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  font: inherit;
}
body > footer.tdc-site-footer > .tdc-footer-navigation {
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(8px, 1.5vw, 17px);
  white-space: nowrap;
  justify-self: end;
}
body > footer.tdc-site-footer > .tdc-legal-links {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0 12px;
  border-top: 1px solid #cee2d039;
  padding-top: 0;
  font: 500 9px/1.2 "DM Sans", system-ui, sans-serif;
}
body > footer.tdc-site-footer :is(.tdc-footer-contact, .tdc-footer-navigation, .tdc-legal-links) > :is(a, button.tdc-cookie-settings) {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0;
  color: inherit;
  font: inherit;
  text-decoration: none;
  text-underline-offset: .2em;
}
body > footer.tdc-site-footer :is(.tdc-footer-contact, .tdc-footer-navigation, .tdc-legal-links) > :is(a, button.tdc-cookie-settings):is(:hover, :focus-visible, [aria-current="page"]) {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: currentColor;
}
@media (max-width: 760px) {
  body:has(> footer.tdc-site-footer) > footer.tdc-site-footer {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 4px 12px;
    padding: 12px max(14px, 4vw) calc(10px + env(safe-area-inset-bottom, 0px));
  }
  body > footer.tdc-site-footer > .footer-brand { width: clamp(80px, 18vw, 104px); }
  body > footer.tdc-site-footer .footer-brand > span { font-size: 9px; letter-spacing: 0; }
  body > footer.tdc-site-footer > .tdc-footer-contact {
    justify-items: end;
    text-align: right;
    font-size: clamp(12px, 2.5vw, 14px);
  }
  body > footer.tdc-site-footer > .tdc-footer-navigation {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: nowrap;
    justify-self: stretch;
    justify-content: center;
    gap: 0 clamp(8px, 2.35vw, 14px);
    font-size: clamp(11px, 2.45vw, 13px);
  }
  body > footer.tdc-site-footer > .tdc-legal-links { justify-content: center; gap: 0 8px; }
  body > .tdc-mobile-estimate[hidden] { display: none; }
}
/* Override legacy service-page rules that hide footer telephone links. */
body > footer.tdc-site-footer > .tdc-footer-contact > a[href^="tel:"] { display: inline-flex !important; }
body > footer.tdc-site-footer > .tdc-footer-contact > a[href^="mailto:"] { display: block; max-width: 100%; overflow-wrap: anywhere; align-content: center; }

body > footer.tdc-site-footer > .tdc-legal-links > :is(a, button.tdc-cookie-settings) {
  min-height: 24px;
  font: inherit;
}
