footer {
    display: flex;
    flex-direction: column;
    width: 100%;
    box-shadow: var(--shadow-card-desktop);
    padding: 3rem 0;

    p {
        text-align: center;
        color: var(--text-secondary);
        font-size: 1.5rem;
        font-weight: 500;
        margin-inline: 1rem;
    }

    section {
        max-width: 1220px;
        width: 100%;
        margin: 0 auto;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 2rem;
        align-items: center;
        justify-content: center;
        padding: 0 1rem;

        a {
            color: var(--text-secondary);
            text-decoration: none;
        }

        div {
            p:first-child {
                font-size: 24px;
                font-weight: 500;
                display: block;
                color: var(--text-color-footer);
                margin: 1rem;
            }

            p:last-child {
                font-size: 16px;
            }

            img {
                display: block;
                width: 250px;
                height: auto;
                border-radius: 0;
            }
        }

        #mail {
            display: none;
            font-size: 16px;
            margin: .5rem 0;
            text-align: center;
        }
    }
}

@media screen and (max-width: 992px) {
    footer {
        section {
            #mail {
                display: block;
            }
        }
    }
}

@media screen and (max-width: 596px) {
    footer {
        section {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 0;

            div:last-child {
                a {
                    display: block;
                }
            }
        }
    }
}