/*
*
* Footer — small screens (mobile-first)
*
*/
footer {
    min-height: var(--footer-height);
    padding: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    border-top: 1px solid #e5e5e5;

    * {
        font-size: var(--small-font-size);
    }

    nav {
        width: 100%;
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
        gap: 1rem;
        text-align: center;
    }

    .copyright-text {
        color: #666;

        a {
            color: var(--primary-color);
            font-weight: 500;
        }

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

    #footer-menu {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 0.4rem 0;
        list-style: none;

        li {
            display: flex;
            align-items: center;
        }

        li a {
            padding: 0 0.8rem;
            color: #555;
            font-weight: 500;
            white-space: nowrap;
        }

        li a:hover {
            color: var(--primary-color);
        }

        li:not(:last-child) {
            border-right: 1px solid #ccc;
        }
    }
}


/*
*
* Footer — wide screens (desktop)
*
*/
@media screen and (min-width: 480px) {

    footer {

        nav {
            flex-direction: row;
            justify-content: space-between;
            text-align: left;
            gap: 1.5rem;

            #footer-menu {
                justify-content: flex-end;
            }
        }
    }

}
