footer {
    z-index: 100;
    height: 160px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 100%;
    width: 100%;
}

.legal-notice {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo {
    height: 60px;
    width: 60px;
    cursor: pointer;
    z-index: 2;
    position: relative;
}

.legal-notice-link {
    position: relative;
}

.legal-notice-background .legal-notice-link {
    color: var(--secondary-color);
}

.legal-notice-link:hover .nav-underscore-img {
    animation: draw-line 0.4s ease forwards;
}

footer a {
    text-decoration: none;
    font-size: var(--standard-text);
    font-weight: var(--heavy-font-weight);
    color: var(--primary-color);
}

.github-link-btn,
.linkedin-link-btn,
.email-link-btn {
    background: none;
    border: none;
    border-radius: 20px;
    color: var(--primary-color);
    font-size: var(--small-text);
    font-weight: var(--middle-font-weight);
    cursor: pointer;
    width: 120px;
    height: 40px;
    position: relative;
    overflow: visible;
}

.github-link-btn:hover,
.linkedin-link-btn:hover,
.email-link-btn:hover {
    background-color: var(--main-color-two);
    transition: ease 0.4s;
}

.legal-notice-background .github-link-btn {
    color: var(--secondary-color);
}

.legal-notice-background .linkedin-link-btn {
    color: var(--secondary-color);
}

.legal-notice-background .email-link-btn {
    color: var(--secondary-color);
}

.roll-img {
    position: absolute;
    bottom: 100%;
    left: 40%;
    height: 30px;
    width: 30px;
    opacity: 0;
    transform: translateX(0) rotate(180deg);
    transition: opacity 0.1s ease 0.15s, left 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

.legal-notice-background .roll-img {
    background-color: var(--secondary-color);
    border-radius: 50%;
}

.github-link-btn:hover .roll-img,
.linkedin-link-btn:hover .roll-img,
.email-link-btn:hover .roll-img {
    opacity: 1;
    left: 90%;
    transform: translateX(-50%) rotate(360deg);
    transition: opacity 0.1s ease, left 0.4s ease, transform 0.4s ease;
}

/* Mobile */
@media (max-width: 950px) {
    footer {
        height: 220px;
    }

    .contact-bar {
        display: flex;
        flex-wrap: wrap;
    }

    .logo {
        height: 40px;
        width: 40px;
    }

    .legal-notice {
        width: 100%;
        flex-direction: unset;
        justify-content: space-between;
        align-items: center;
    }

    .legal-notice-mobile {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }
}

@media (max-width: 505px) {
    .github-link-btn {
        width: 90px;
        height: 30px;
    }

    .linkedin-link-btn {
        width: 90px;
        height: 30px;
    }

    .email-link-btn {
        width: 90px;
        height: 30px;
    }
}