/* =========================================================
   FOOTER.CSS — wspólna stopka serwisu
========================================================= */

body > footer {
    margin-top: auto;
    padding:
        20px
        max(15px, env(safe-area-inset-right))
        calc(20px + env(safe-area-inset-bottom))
        max(15px, env(safe-area-inset-left));
    border-top: 1px solid var(--border-color, #333);
    background: var(--footer-bg, #0a0a0a);
    color: var(--footer-text, #888);
    text-align: center;
    font-size: 12px;
}

body > footer *,
body > footer *::before,
body > footer *::after {
    box-sizing: border-box;
}

.footer-socials {
    margin-bottom: 15px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.footer-socials a {
    width: 28px;
    height: 28px;
    margin: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #aaa !important;
    line-height: 1;
    text-decoration: none !important;
    transition: color 0.2s, transform 0.2s;
}

.footer-socials a:hover {
    color: #39ff14 !important;
    transform: translateY(-2px);
}

.footer-socials i {
    margin: 0 !important;
    color: currentColor !important;
}

.footer-legal {
    max-width: 800px;
    margin: 0 auto 10px !important;
    color: #666 !important;
    font-size: 11px !important;
    line-height: 1.5;
    text-align: center;
}

.footer-copy {
    color: #aaa;
    font-size: 13px !important;
    line-height: 1.5;
    text-align: center;
}

.footer-copy a {
    color: #39ff14 !important;
    font-weight: 700;
    text-decoration: none !important;
    transition: color 0.2s;
}

.footer-copy a:hover {
    color: #fff !important;
    text-decoration: underline !important;
}

@media (max-width: 560px) {
    body > footer {
        padding-top: 18px;
        font-size: 11px;
    }

    .footer-legal {
        max-width: 330px;
    }

    .footer-copy {
        font-size: 12px !important;
    }
}


/* V23 — publiczny homepage korzysta z pełnej stopki jak reszta serwisu */
body.seo-home > footer {
    width: 100%;
    min-height: 150px;
    padding-top: 24px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
}
