.footer {
    margin-bottom: 93px;
    background-color: var(--footer-background-color);
    color: var(--footer-text-color);
    fill: var(--footer-text-color);

    @media (min-width: 1024px) {
        margin-bottom: 0;
    }

    .powered-by {
        display: flex;
        span {
            margin-right: 0.5rem;
        }
    }

    > div {
        display: flex;
        flex-direction: column;
        row-gap: 1.5rem;
        padding: 2rem 1.5rem;

        @media (min-width: 768px) {
            flex-direction: row;
            justify-content: space-between;
            column-gap: 3rem;
            padding-left: 1rem;
            padding-right: 1rem;
        }

        > div:first-child {
            display: flex;
            flex-direction: column;
            gap: 2.25rem;
        }
    }

    .footer__socials {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;

        > a {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 54px;
            height: 54px;
            border-radius: 50%;
            background-color: var(--color-black);

            &:first-child {
                /* facebook */
                background-color: #1877F2;
            }

            &:nth-child(3) {
                /* instagram */
                background-image:
                    radial-gradient(circle at 37% 102%, #feda75 0%, transparent 46%),   /* Yellow glow bottom-left */
                    radial-gradient(circle at 80% 80%, #fd1d1d 0%, transparent 50%),   /* Red-orange bottom-right */
                    radial-gradient(circle at 80% 20%, #833ab4 0%, transparent 50%),   /* Violet top-right */
                    radial-gradient(circle at 30% -40%, #4f5bd5 2%, transparent 30%),   /* Blue top-left */
                    linear-gradient(135deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d, #f56040, #fcaf45);
            }
        }
    }

    /* The 'footer__apps' markup will be added in the next release */
    /*.footer__apps {*/
    /*    display: flex;*/
    /*    gap: 1rem;*/
    /*    flex-wrap: wrap;*/

    /*    .footer__app-badge {*/
    /*        display: block;*/
    /*        width: 153px;*/
    /*        height: 48px;*/
    /*    }*/
    /*}*/


    .footer__nav {
        display: grid;
        grid-template-columns: 1fr;

        @media (min-width: 1024px) {
            grid-template-columns: repeat(3, 1fr);
        }

        .footer__heading {
            font-size: var(--fs-large);
            font-weight: 700;
        }

        .footer__list {
            /* Unset the default <ul> values */
            padding-inline-start: 0;
            margin-block-start: 0;
            margin-block-end: 0;
            list-style: none;

            display: flex;
            flex-direction: column;
            row-gap: 1.5rem;

            > li > a {
                --btn-font-weight: 400;
                --btn-color: var(--color-dark);
                --a-text-decoration: none;
                display: flex;
                align-items: center;
                column-gap: 0.25rem;

                .footer__link-icon {
                    display: block;
                    width: 24px;
                    height: 24px;
                }
            }
        }

        .accordion {

            ul {
                margin-bottom: 2rem;
            }

            @media (min-width: 1024px) {
                border-bottom: none;

                summary {
                    pointer-events: none;
                    padding-top: 0;

                    &::before, &::after {
                        display: none;
                    }
                }

                ul {
                    margin-bottom: 0;
                }

                &::details-content {
                    content-visibility: visible;
                    opacity: 1;
                }
            }
        }


    }

    p {
        /* Unset the default values */
        margin-block-start: 0;
        margin-block-end: 0;
    }

    .footer__policies {
        /* Unset the default <ul> values */
        padding-inline-start: 0;
        margin-block-start: 0;
        margin-block-end: 0;

        display: flex;
        justify-content: end;
        column-gap: 2rem;

        > li {
            &:first-child {
                /* Unset the default <li> value */
                list-style-type: none;
            }

            > a {
                --btn-font-weight: 400;
                --btn-color: var(--color-dark);
                --a-text-decoration: none;
                display: flex;
                align-items: center;
                column-gap: 0.25rem;
            }

        }
    }
}