.g3-footer {
    --g3-red: var(--g3-footer-focus);
    background: var(--g3-footer-bg);
    color: var(--g3-footer-text);
    font-size: .9375rem;
    line-height: 1.65;
    scroll-margin-top: 6rem;
}

.g3-storefront .g3-footer a {
    color: inherit;
    text-decoration: none;
    touch-action: manipulation;
}

.g3-storefront .g3-footer a:hover,
.g3-storefront .g3-footer a:active { color: var(--g3-footer-focus); }

.g3-footer a:focus-visible {
    outline: 2px solid var(--g3-footer-focus);
    outline-offset: 3px;
}

.g3-footer h2 {
    margin: 0 0 .65rem;
    color: var(--g3-footer-text);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
}

.g3-footer ul { margin: 0; padding: 0; list-style: none; }
.g3-footer address { margin: 0; font-style: normal; }

.g3-footer__lead {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(15rem, auto);
    align-items: center;
    justify-content: space-between;
    gap: clamp(1.5rem, 3.5vw, 3rem);
    padding-block: clamp(2rem, 6vw, 4rem) clamp(1.5rem, 3.5vw, 2.65rem);
    border-bottom: 1px solid var(--g3-footer-line);
}

.g3-footer__identity { display: grid; justify-items: start; gap: .45rem; }
.g3-footer__brand { display: inline-flex; align-items: center; max-width: 100%; min-height: 44px; }
.g3-footer__brand img { display: block; width: min(100%, clamp(11.25rem, 20vw, 15rem)); height: auto; filter: brightness(0) invert(1); }

.g3-footer__brand-link,
.g3-footer__map {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    min-height: 36px;
    font-size: .875rem;
    font-weight: 600;
}

.g3-footer__brand-link span,
.g3-footer__map span { color: var(--g3-footer-focus); }
.g3-footer__contact address { display: grid; justify-items: start; gap: .15rem; overflow-wrap: anywhere; }
.g3-footer__contact h2 { margin-bottom: .15rem; font-size: .8125rem; }
.g3-footer__phone { display: inline-flex; align-items: center; min-height: 44px; font-size: clamp(1.375rem, 2.4vw, 2rem); font-weight: 650; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.g3-footer__email { display: inline-flex; align-items: center; min-height: 32px; font-size: .9375rem; }

.g3-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1fr) minmax(15rem, auto);
    align-items: start;
    gap: 1.5rem clamp(1rem, 5vw, 4.5rem);
    padding-block: clamp(1.75rem, 4vw, 3.1rem);
}

.g3-footer__grid :is(nav, section) { min-width: 0; }
.g3-footer__grid nav ul { display: grid; gap: .15rem; }
.g3-footer__grid nav a { display: inline-flex; align-items: center; min-height: 30px; overflow-wrap: anywhere; }
.g3-footer__address { margin: 0 0 .45rem; }
.g3-footer__hours { margin: 0 0 .375rem; color: var(--g3-footer-muted); font-size: .875rem; }

.g3-footer__base {
    background: color-mix(in srgb, var(--g3-footer-bg) 85%, #080504);
    padding-block: clamp(1.5rem, 3.5vw, 2.35rem) max(1.5rem, env(safe-area-inset-bottom));
    color: var(--g3-footer-muted);
    font-size: .8125rem;
}

.g3-footer__business,
.g3-footer__legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem 2rem;
}

.g3-footer__business { align-items: start; }
.g3-footer__company { margin: 0 0 .25rem; }
.g3-storefront .g3-footer__company a { display: inline-flex; align-items: center; min-height: 28px; margin-inline-start: .25rem; color: var(--g3-footer-text); font-weight: 700; }
.g3-footer__registration { display: flex; flex-wrap: wrap; gap: .15rem 1rem; margin: 0; }
.g3-footer__registration > span:last-child { flex-basis: 100%; }
.g3-footer__policies { display: flex; flex-wrap: wrap; gap: .125rem 1.2rem; }
.g3-storefront .g3-footer__policies a { display: inline-flex; align-items: center; min-height: 32px; color: var(--g3-footer-text); font-weight: 550; }
.g3-footer__legal { align-items: center; margin-top: 1.25rem; }
.g3-footer__legal p { margin: 0; }
.g3-footer__payments { display: flex; flex-wrap: wrap; align-items: center; gap: .625rem .875rem; }
.g3-footer__payments img { display: block; width: auto; max-width: 80px; height: 23px; object-fit: contain; }

.g3-storefront .g3-privacy-note a {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    min-height: 32px;
    font-weight: 650;
    text-decoration: none;
    touch-action: manipulation;
}

.g3-storefront .g3-privacy-note a:hover { color: var(--g3-ink); }

@media (max-width: 991.98px) {
    .g3-footer__lead .g3-footer__brand-link,
    .g3-footer__lead .g3-footer__email,
    .g3-footer__grid :is(nav a, .g3-footer__map),
    .g3-storefront .g3-footer__base a,
    .g3-storefront .g3-privacy-note a { min-height: 44px; }
}

@media (max-width: 767.98px) {
    .g3-footer__lead, .g3-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .g3-footer__grid { column-gap: .95rem; }
    .g3-footer__store { grid-column: 1 / -1; }
    .g3-footer__legal { flex-direction: column-reverse; gap: 1rem; align-items: start; }
}

@media (max-width: 479.98px) {
    .g3-footer__lead { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
    .g3-footer__grid nav a { font-size: .875rem; }
    .g3-footer__business { gap: .75rem; }
    .g3-footer__payments { gap: .6rem; }
    .g3-footer__payments img { height: 20px; }
}
