footer{
    display: grid;
    justify-items: center;
    background-image: url(../img/bacgroundfooter.webp);
    background-position:top;
    background-repeat: no-repeat;
    background-size: cover;

}
.footer-up{
    min-height: 150px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #5d5d5d;
}

.footer-nav{
    display: flex;
}

.nav-menu > a{
    padding: 10px;
    border-radius: 5px;
}

.nav-menu > a:hover{
    background-color: #2141617c;
}


.footer-social{
    display: flex;
}
.footer-social > a{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50px;
    background-color: #537ea77a;
    margin: 0px 5px 0px 5px;
}
.footer-social > a:hover{
    background-color: #4077b53e;
}
.footer-up-nav-info{
    display: flex;
    justify-content: space-between;
}
.footer-language{
    margin: 0px 10px 0px 10px;
    display: grid;
    grid-template-columns: 30px 1fr;
    align-items: center;
}
/* 2 */

.footer-down{
    min-height: 200px;
    display: grid;
    align-items: center;
}
.footer-down-nav{
    display: grid;
}

.footer-down-logo{
    display: flex;
    align-items: center;
}
.footer-down-logo> h1 {
    font-family: 'Unformital';
    color: #148EFF;
    font-size: 100px;
}
.footer-down-info{
    display: flex;
}

.footer-down-info-text > div > p{
    font-size: 12px;
    color: #818B97;
}
.footer-down-link{
    margin-top: 10px;
}
.footer-down-link > a {
    margin: 5px;
    padding: 5px;
    color: #818B97;
    transition: 0.3s color;
    font-size: 10px;
}

.footer-down-link > a:hover {
    background-color: #0e1d2e6f;
    border-radius: 5px;
    color: #ffffff;
}
.footer-down-info-ip{
    display: flex;
}
.footer-down-info-ip > div{
    font-size: 12px;
    width: 200px;
}

body.legal-modal-open {
    overflow: hidden;
}

.legal-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.legal-modal.is-open {
    display: flex;
}

.legal-modal__backdrop {
    position: absolute;
    inset: 0;
    border: none;
    background: rgba(3, 11, 26, 0.8);
    backdrop-filter: blur(3px);
}

.legal-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(860px, calc(100% - 30px));
    max-height: calc(100vh - 60px);
    overflow: auto;
    padding: 26px;
    border-radius: 14px;
    border: 1px solid #3e5575;
    background: #111a29;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
}

.legal-modal__close {
    position: absolute;
    right: 12px;
    top: 8px;
    border: none;
    background: transparent;
    font-size: 30px;
    line-height: 1;
    color: #a4b5ce;
    cursor: pointer;
}

.legal-modal__close:hover {
    color: #ffffff;
}

.legal-modal__content {
    margin-top: 16px;
    color: #c9d6e8;
    font-size: 14px;
    line-height: 1.55;
}

.legal-modal__content h3 {
    margin: 14px 0 8px;
    color: #ffffff;
    font-size: 16px;
}

.legal-modal__content p {
    margin-bottom: 10px;
}

.legal-modal__content ul {
    list-style: disc;
    padding-left: 20px;
    margin: 10px 0;
}

.legal-modal__content li {
    margin-bottom: 6px;
}

.cookie-consent {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
    z-index: 1900;
    background: #0d1626;
    border: 1px solid #39516f;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

.cookie-consent[hidden] {
    display: none;
}

.cookie-consent__text {
    color: #c3d2e6;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-consent__link {
    color: #8bc2ff;
    text-decoration: underline;
}

.cookie-consent__actions {
    display: flex;
    gap: 10px;
}

.cookie-consent__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid #6ab1ff;
    background: #148EFF;
    cursor: pointer;
    color: #ffffff;
    font-size: 14px;
    text-decoration: none;
}

.cookie-consent__btn:hover {
    background: #0f78d9;
}

.cookie-consent__btn--ghost {
    border-color: #495e7a;
    background: #1a2638;
}

.cookie-consent__btn--ghost:hover {
    background: #22324a;
}

@media (max-width: 900px) {
    .cookie-consent {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .footer-up {
        min-height: 0;
        padding: 14px 0;
        gap: 12px;
        flex-direction: column;
        align-items: stretch;
    }

    .footer-nav {
        justify-content: center;
        flex-wrap: wrap;
        gap: 4px;
    }

    .footer-up-nav-info {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .footer-down {
        min-height: 0;
        padding: 18px 0;
    }

    .footer-down-info {
        flex-direction: column;
        gap: 14px;
    }

    .footer-down-logo {
        justify-content: center;
    }

    .footer-down-logo > h1 {
        font-size: 64px;
    }

    .footer-down-info-text {
        text-align: center;
    }

    .footer-down-link {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px;
    }

    .footer-down-link > a {
        margin: 0;
    }

    .footer-down-info-ip {
        flex-direction: column;
        gap: 10px;
        align-items: center;
        text-align: center;
    }

    .footer-down-info-ip > div {
        width: auto;
    }
}

@media (max-width: 560px) {
    .footer-social {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-down-logo > h1 {
        font-size: 46px;
    }

    .cookie-consent {
        left: 10px;
        right: 10px;
        bottom: 10px;
        padding: 12px;
        gap: 10px;
    }

    .cookie-consent__actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .cookie-consent__btn {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .legal-modal__dialog {
        width: calc(100% - 12px);
        max-height: calc(100vh - 24px);
        padding: 16px 14px;
        border-radius: 10px;
    }

    .legal-modal__close {
        right: 8px;
        top: 6px;
    }

    .legal-modal__content {
        margin-top: 12px;
        font-size: 13px;
        line-height: 1.45;
    }

    .cookie-consent__text {
        font-size: 13px;
    }
}
