/* Shared footer for both layouts: brand, quick links, legal links and disclosures */
.site-footer {
    background-color: var(--foreground);
    color: #fff;
    padding: 56px 24px 32px;
    text-align: left;
}

.sf-inner {
    max-width: 1180px;
    margin: 0 auto;
}

.sf-columns {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
}

.sf-brand {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

/* logo and product line together link back to the home page */
.sf-home {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

/* the logo file is navy artwork, turned white for the dark footer */
.sf-logo {
    display: block;
    width: auto;
    height: 24px;
    filter: brightness(0) invert(1);
}

.site-footer .sf-sub {
    padding-left: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 18px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
}

.sf-location {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.72);
    white-space: nowrap;
}

.site-footer .sf-text {
    max-width: 380px;
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.72);
}

.site-footer .sf-contact {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.72);
}

.site-footer .sf-contact li {
    padding: 4px 0;
    overflow-wrap: anywhere;
}

.site-footer .sf-contact a {
    color: #fff;
    text-decoration: none;
}

.site-footer .sf-contact a:hover,
.site-footer .sf-contact a:focus-visible {
    text-decoration: underline;
}

.site-footer .sf-heading {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.site-footer .sf-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer .sf-list a {
    display: inline-block;
    padding: 6px 0;
    font-size: 15px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
}

.site-footer .sf-list a:hover,
.site-footer .sf-list a:focus-visible {
    color: #fff;
    text-decoration: underline;
}

.site-footer .sf-guarantee {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0 0;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}

.sf-guarantee i {
    color: #ffdc32;
}

.sf-legal {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.site-footer .sf-legal p {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.62);
}

.sf-legal strong {
    color: rgba(255, 255, 255, 0.85);
}

.site-footer .sf-copy {
    margin: 24px 0 0;
    font-size: 13px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

/* where the brand column is too narrow for one line, the town drops underneath without its bullet */
@media (max-width: 575px), (min-width: 992px) and (max-width: 1199px) {
    .sf-location {
        flex-basis: 100%;
    }

    .sf-dot {
        display: none;
    }
}

/* very narrow phones */
@media (max-width: 359px) {
    .sf-home {
        gap: 8px;
    }

    .sf-logo {
        height: 20px;
    }

    .site-footer .sf-sub {
        padding-left: 8px;
        font-size: 11px;
    }
}

/* tablet: brand on its own row, the two link columns side by side */
@media (max-width: 991px) {
    .sf-columns {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .sf-about {
        grid-column: 1 / -1;
    }
}

@media (max-width: 575px) {
    .site-footer {
        padding: 40px 22px 28px;
    }

    .sf-columns {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}
