/* ---------- mobile ---------- */

.footer-module-wrap {
    padding: 0 var(--space-md) var(--space-md);
}

.footer-module-wrap .footer-module-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1fr;
    grid-column-gap: var(--space-md);
    max-width: 80rem;
    margin: 0 auto;
    background-color: #f8f8f8;
    padding-left: var(--space-md);
    padding-right: var(--space-md);
    padding-top: var(--space-xxxxl);
    padding-bottom: var(--space-xxxxl);
    border-radius: var(--radius-md);
}

.footer-module-wrap .footer-module-grid .footer-top {
    grid-column: span 4;
    margin-bottom: var(--space-xxl);
}

.footer-module-wrap .footer-module-grid .footer-top p {
    margin-bottom: var(--space-xxl);
}

.footer-module-wrap .footer-module-grid .footer-top .footer-links {
    display: flex;
    flex-direction: column;
    margin-bottom: var(--space-xxl);
    row-gap: 1rem;
}

.footer-module-wrap .footer-module-grid .footer-top .footer-links ul {
    list-style: none;
}

.footer-module-wrap .footer-module-grid .footer-top .footer-links ul li a {
    text-decoration: none;
    color: var(--black);
}

.footer-module-wrap .footer-module-grid .footer-bottom {
    grid-column: span 4;
    display: flex;
    flex-direction: column-reverse;
    row-gap: var(--space-md);
}

.footer-module-wrap .footer-module-grid .footer-bottom .footer-socials {
    display: flex;
    column-gap: var(--space-md);
}

.footer-module-wrap .footer-module-grid .footer-bottom .footer-socials a img {
    width: var(--space-xl);
}

/* ---------- tablet ---------- */

@media screen and (min-width: 48rem) {
    .footer-module-wrap .footer-module-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .footer-module-wrap .footer-module-grid .footer-top {
        grid-column: span 6;
    }

    .footer-module-wrap .footer-module-grid .footer-top .footer-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .footer-module-wrap .footer-module-grid .footer-top .footer-links ul {
        width: calc(50% - var(--space-sm));
    }

    .footer-module-wrap .footer-module-grid .footer-bottom {
        grid-column: span 6;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* ---------- laptop ---------- */

@media screen and (min-width: 80rem) {
    .footer-module-wrap .footer-module-grid {
        grid-template-columns: repeat(12, 1fr);
        padding-top: var(--space-xxl);
        padding-bottom: var(--space-xxl);
    }

    .footer-module-wrap .footer-module-grid .footer-top {
        grid-column: span 12;
        display: flex;
        column-gap: var(--space-lg);
        margin-bottom: var(--space-xxxxl);
    }

    .footer-module-wrap .footer-module-grid .footer-top p {
        width: calc(50% - (var(--space-lg) / 2));
        padding-right: 8.333%;
    }

    .footer-module-wrap .footer-module-grid .footer-top .footer-links {
        width: calc(50% - (var(--space-lg) / 2));
    }

    .footer-module-wrap .footer-module-grid .footer-bottom {
        grid-column: span 12;
    }
}
