/* Rodapé Legal */
.site-footer {
    width: 100%;
    background-color: #FF5521;
    color: #FFFFFF;
    text-align: center;
    padding: 12px 16px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.footer-legal-bar p {
    margin: 0;
}

/* --- Botão Back to Top --- */
.back-to-top {
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 990;
    background-color: #FF5521;
    color: #FFFFFF;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease, background-color 0.2s ease;
}

.back-to-top:hover {
    background-color: #e04413;
}

/* --- Mobile / Padrão: 1/4 de Círculo e Entrada Diagonal --- */
@media (max-width: 767px) {
    .back-to-top {
        width: 54px;
        height: 54px;
        border-radius: 100% 0 0 0; /* Apenas o canto superior esquerdo arredondado */
        padding-top: 20px;
        padding-left: 20px;
        /* Escondido em diagonal descendente */
        transform: translate(100%, 100%);
        opacity: 0;
        pointer-events: none;
    }

    /* Estado Ativo ao rolar a página */
    .back-to-top.visible {
        transform: translate(0, 0);
        opacity: 1;
        pointer-events: auto;
    }
}

/* --- Desktop: Comportamento Flutuante Discreto --- */
@media (min-width: 768px) {
    .back-to-top {
        bottom: 30px;
        right: 30px;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        transform: translateY(20px);
        opacity: 0;
        pointer-events: none;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    }

    .back-to-top.visible {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
}