footer {
    background-color: #DBCDC2;
}

footer .footer-content {
    row-gap: 2rem;
    padding: 10rem 1.6rem;
}

footer .footer-content > div:first-of-type {
    display: flex;
}

footer .footer-content > div:first-of-type > div {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    row-gap: 2rem;
}

footer .footer-content > div:first-of-type > div:last-child {
    text-align: end;
}

footer .footer-content a {
    text-decoration: underline;
}

footer .footer-content .social {
    display: flex;
    margin-top: 5rem;
    column-gap: 3.2rem;
}

footer .footer-content .social svg {
    width: 1.8rem;
    height: 1.8rem;
}

footer .footer-content .social p:last-child {
    margin-left: auto;
}

@media screen and (max-width: 768px) {
    footer .footer-content {
        padding: 4rem 1.6rem 5rem;
        position: relative;
    }

    footer .footer-content > div:first-of-type {
       flex-direction: column;
       order: 3;
    }

    footer .footer-content > div:first-of-type > div:first-child {
        margin-bottom: 2rem;
    }

    footer .footer-content > div:first-of-type > div:last-child {
        text-align: start;
        display: flex;
        flex-direction: row;
        justify-content: end;
        column-gap: 2rem;
        margin: 2rem 0 3rem;
    }

    footer .footer-content .social {
        margin-top: 0;
        order: 2;
    }

    footer .footer-content .social p {
        position: absolute;
        top: calc(100% - 6rem);
        right: 1.6rem;
    }
}

@media screen and (max-width: 360px) {
    footer .footer-content > div:first-of-type > div:last-child {
        justify-content: space-between;
    }
}