/* ==========================================================================
   FOOTER STYLES
   ViaHomeopatica Theme
   ========================================================================== */

/* ===== FOOTER ===== */
.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    margin-top: auto;
}

.site-footer a {
    color: var(--footer-text) !important;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.site-footer a:hover {
    color: var(--footer-text-light) !important;
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 2.5rem 2rem 1rem 2rem;
}

.footer-legal-links {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(189, 195, 199, 0.2);
}

.footer-legal-links a {
    font-size: 1rem;
}

.footer-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-copyright {
    font-size: 0.875rem;
    opacity: 0.9;
    text-align: left;
}

.footer-rights {
    margin-top: 0;
}

.footer-contacts-link {
    text-align: center;
    font-size: 1rem;
}

.footer-developer {
    font-size: 0.875rem;
    text-align: right;
}

/* ===== RESPONSIVE - мобильная версия ===== */
@media (max-width: 768px) {
    .footer-container {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 660px) {
    /* Footer: stack vertically */
    .footer-container {
        padding: 1.5rem 1rem;
    }

    .footer-legal-links {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .footer-bottom-row {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
        align-items: center;
    }

    .footer-bottom-row > * {
        margin: 0;
        line-height: 1.4;
    }

    .footer-copyright,
    .footer-developer {
        text-align: center;
    }

    .footer-developer {
        display: flex;
        flex-direction: row;
        gap: 0.25rem;
        align-items: center;
    }
}

@media (max-width: 500px) {
    .footer-container {
        padding: 1rem 0.75rem;
    }
}
