body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Estilos Gerais */
.footer_section {
    background-color: #000000;
    color: #ffffff;
    padding: 50px 20px;
    font-family: Arial, sans-serif;
    position: relative;
    z-index: 10;
    margin-top: auto;
    clear: both;
}

.container {
    max-width: 1200px;
    margin: auto;
}

/* --- Parte superior do rodapé --- */
.footer_top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #444;
}

.newsletter {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.newsletter h3 {
    color: #799A01;
    margin-bottom: 10px;
    font-size: 20px;
}

.newsletter_input {
    display: flex;
    width: 100%;
    max-width: 400px;
    margin: auto; /* Centraliza no mobile */
}

.newsletter_input input {
    flex: 1;
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    outline: none;
    font-size: 16px;
    border-radius: 5px 0 0 5px;
    box-sizing: border-box;
}

/* Garante que o botão acompanhe o input */
.newsletter_input button {
    background: #799A01;
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 0 5px 5px 0;
    box-sizing: border-box;
}

.newsletter_input button:hover {
    background: #5f7c00;
}

/* --- Links do rodapé --- */
.footer_links {
    display: flex;
    flex: 2;
    justify-content: space-between;
    flex-wrap: wrap;
    text-align: center;
}

.footer_links > div {
    flex: 1;
    min-width: 150px;
}

.footer_links h3 {
    color: #799A01;
    margin-bottom: 10px;
    font-size: 18px;
}

.footer_links ul {
    list-style: none;
    padding: 0;
}

.footer_links ul li {
    margin-bottom: 5px;
}

.footer_links ul li a {
    color: #ffffff;
    text-decoration: none;
}

.footer_links ul li a:hover {
    color: #799A01;
}

/* --- Parte inferior do rodapé --- */
.footer_bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    flex-wrap: wrap;
    text-align: center;
    gap: 15px;
}

.social_icons a {
    margin-right: 15px;
}

.social_icons img {
    width: 24px;
    height: 24px;
    opacity: 0.8;
    transition: 0.3s;
}

.social_icons img:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* --- Links legais --- */
.legal {
    font-size: 14px;
}

.legal a {
    color: #799A01;
    text-decoration: none;
    margin-left: 10px;
}

.legal a:hover {
    text-decoration: underline;
}

/* --- RESPONSIVIDADE --- */
@media screen and (max-width: 768px) {
    .footer_top {
        flex-direction: column;
        text-align: center;
    }

    .footer_links {
        flex-direction: column;
        align-items: center;
    }

    .footer_links > div {
        margin-bottom: 20px;
    }

    .footer_bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .newsletter_input {
        flex-direction: column;
        align-items: stretch;
        max-width: 100%;
    }

    .newsletter_input input {
        border-radius: 5px;
    }

    .newsletter_input button {
        border-radius: 5px;
        margin-top: 10px;
        width: 100%;
    }
}

/* Responsividade extra para celulares pequenos */
@media screen and (max-width: 480px) {
    .newsletter_input {
        flex-direction: column;
        align-items: stretch;
        max-width: 100%;
    }

    .newsletter_input input {
        border-radius: 5px;
    }

    .newsletter_input button {
        border-radius: 5px;
        margin-top: 10px;
        width: 100%;
    }

    .footer_links {
        text-align: center;
    }
}
