/* Custom layout only. Legacy template styles remain unchanged. */
:where(.tpl-footer, .tpl-footer *, .tpl-footer *::before, .tpl-footer *::after) {
    box-sizing: border-box;
}

.tpl-footer {
    padding: 4rem 0;
    background-color: #0d0c0c;
    color: #f2f9ff;
    font-family: 'Segoe UI', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.8;
}

.tpl-footer a {
    color: inherit;
    text-decoration: underline;
}

.tpl-footer a:hover {
    text-decoration: none;
}

:where(.tpl-footer) .tpl-footer__block {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(242, 249, 255, 0.5);
}

:where(.tpl-footer) .tpl-footer__top {
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
}

:where(.tpl-footer) .tpl-footer__bottom {
    font-size: 14px;
    line-height: 1.6;
}

.tpl-footer .tpl-logo-text {
    font-size: 14px;
    font-weight: 300;
    margin-top: 0.75rem;
    line-height: 1.6;
}

.tpl-footer .tpl-logo-text p {
    margin: 0;
}

.tpl-footer .tpl-content {
    font-size: 14px;
    line-height: 1.6;
}

.tpl-footer .tpl-content p {
    margin-bottom: 1.25rem;
}

.tpl-footer .tpl-content p:last-child {
    margin-bottom: 0;
}

/* ===== Media Queries ===== */

/* Small devices (max-width: 575px) */
@media only screen and (max-width: 575px) {
    .tpl-footer {
        padding: 2.5rem 0;
    }

    .tpl-footer .tpl-content {
        font-size: 12px;
    }

    .tpl-footer:has(.seo-pages) {
        padding-top: 2.25rem;
    }
}
