/* ===================================
   RODAPÉ PÚBLICO — StreamFlow
   =================================== */

.site-footer {
    position: relative;
    z-index: 200;
    margin-top: auto;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, #0d1016 100%);
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.875rem;
    overflow: hidden;
}

.site-footer__glow {
    pointer-events: none;
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(107, 156, 255, 0.45) 25%,
        rgba(124, 108, 240, 0.55) 50%,
        rgba(107, 156, 255, 0.45) 75%,
        transparent 100%
    );
}

.site-footer__container {
    position: relative;
    padding-top: 2.75rem;
    padding-bottom: 1.75rem;
}

/* —— Grid principal (landing / legal) —— */
.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.85fr);
    gap: 2.5rem 3rem;
    align-items: start;
    margin-bottom: 2.25rem;
}

.site-footer__brand-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    max-width: 22rem;
}

.site-footer__brand {
    display: inline-flex;
    line-height: 0;
    text-decoration: none;
}

.site-footer__logo {
    max-height: 52px;
    max-width: min(240px, 80vw);
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 6px 24px rgba(107, 156, 255, 0.22));
    transition: transform 0.25s ease, filter 0.25s ease;
}

.site-footer__brand:hover .site-footer__logo {
    transform: scale(1.02);
    filter: drop-shadow(0 8px 28px rgba(124, 108, 240, 0.3));
}

.site-footer__tagline {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: rgba(180, 184, 192, 0.85);
}

.site-footer__wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
    padding: 0.625rem 1.125rem;
    border-radius: 999px;
    background: rgba(37, 211, 102, 0.12);
    border: 1px solid rgba(37, 211, 102, 0.35);
    color: #5ee89a;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.site-footer__wa-btn i {
    font-size: 1.125rem;
}

.site-footer__wa-btn:hover {
    background: rgba(37, 211, 102, 0.2);
    border-color: rgba(37, 211, 102, 0.55);
    color: #7ef0ad;
    transform: translateY(-1px);
}

.site-footer__links-col {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem 2rem;
}

.site-footer__col {
    min-width: 0;
}

.site-footer__heading {
    margin: 0 0 0.875rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-primary);
    opacity: 0.75;
}

.site-footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.site-footer__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8125rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.site-footer__link:hover {
    color: var(--accent-blue);
    transform: translateX(2px);
}

.site-footer__link--accent {
    color: var(--accent-blue);
}

.site-footer__link--accent:hover {
    color: #8eb4ff;
}

.site-footer__rule {
    margin: 0 0 1.5rem;
    border: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--border-color) 20%,
        var(--border-color) 80%,
        transparent
    );
    opacity: 0.9;
}

/* —— Barra inferior —— */
.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
}

.site-footer__copy {
    margin: 0;
    font-size: 0.8125rem;
    color: rgba(180, 184, 192, 0.7);
    line-height: 1.5;
}

.site-footer__bottom-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
}

.site-footer__bottom-link {
    color: rgba(180, 184, 192, 0.75);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.2rem 0.35rem;
    border-radius: 4px;
    transition: color 0.2s ease, background 0.2s ease;
}

.site-footer__bottom-link:hover {
    color: var(--accent-blue);
    background: rgba(107, 156, 255, 0.08);
}

.site-footer__sep {
    color: rgba(180, 184, 192, 0.35);
    font-size: 0.75rem;
    user-select: none;
}

/* Auth: rodapé compacto */
.sf-page--auth .site-footer__container {
    padding-top: 1.5rem;
    padding-bottom: 1.25rem;
}

.sf-page--auth .site-footer__bottom {
    justify-content: center;
    text-align: center;
}

.sf-page--auth .site-footer__bottom-nav {
    justify-content: center;
    width: 100%;
}

/* —— Responsivo —— */
@media (max-width: 992px) {
    .site-footer__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .site-footer__brand-col {
        align-items: center;
        text-align: center;
        max-width: none;
        margin: 0 auto;
    }

    .site-footer__links-col {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        text-align: center;
    }

    .site-footer__list {
        align-items: center;
    }

    .site-footer__link:hover {
        transform: none;
    }
}

@media (max-width: 640px) {
    .site-footer__container {
        padding-top: 2rem;
        padding-bottom: 1.5rem;
    }

    .site-footer__links-col {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .site-footer__col {
        padding-bottom: 0.25rem;
        border-bottom: 1px solid rgba(176, 188, 210, 0.08);
    }

    .site-footer__col:last-child {
        border-bottom: none;
    }

    .site-footer__bottom {
        flex-direction: column;
        text-align: center;
    }

    .site-footer__bottom-nav {
        justify-content: center;
    }
}

@media (max-width: 400px) {
    .site-footer__wa-btn {
        width: 100%;
        justify-content: center;
    }
}
