@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,100..700;1,100..700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

#renderContent {
    flex: 1;
}

#nb621261 {
    /*length & height*/
    width: 100%;
    height: 100px;
    background-color: #fef5e4;
    /*alignment*/
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    z-index: 1000;
    align-items: center;
    border-bottom: 1px solid #000000;
}

#nb621261>img:nth-child(1) {
    width: 300px;
    cursor: pointer;
}


#nb621261>div:nth-child(2)>ul {
    display: flex;
    flex-direction: row;
    font-size: 16px;
    gap: 40px;
    list-style-type: none;
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: 500;
}

#nb621261>div:nth-child(2)>ul>li {
    cursor: pointer;
}

#nb621261>div:nth-child(3) {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

#nb621261>div:nth-child(3)>div {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    font-family: "IBM Plex Sans", sans-serif;
    gap: 10px;
    font-weight: 500;
    border: 1px solid #000000;
    padding: 10px;
    cursor: pointer;
    white-space: nowrap;
}

#nb621261>p:nth-child(4) {
    border: 2px solid #000000;
    padding: 10px 10px;
    border-radius: 5px;
    font-weight: 500;
    display: none;
    font-family: "IBM Plex Sans", sans-serif;
    cursor: pointer;
    text-wrap: nowrap;
}

#nb621261>div:nth-child(5) {
    display: none;
    box-sizing: border-box;
    position: absolute;
    z-index: 100;
    background-color: white;
    width: 90%;
    top: 30%;
    height: fit-content;
    padding: 5% 5%;
    flex-direction: column;
    border-radius: 20px;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
}

#nb621261>div:nth-child(5)>div:nth-child(1) {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3%;

}

#nb621261>div:nth-child(5)>div:nth-child(1)>p {
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: 400;
    font-size: 110%;
}

#nb621261>div:nth-child(5)>div:nth-child(1)>div:nth-child(2) {
    padding: 10px;
    cursor: pointer;
}

#nb621261>div:nth-child(5)>div:nth-child(2) {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin: 1% 0 0 0%;
    width: 100%;
    box-sizing: border-box;
}

#nb621261>div:nth-child(5)>div:nth-child(2)>ul {
    display: flex;
    flex-direction: column;
    align-items: left;
    gap: 20px;
    justify-content: space-between;
    width: 100%;
    list-style-type: none;
}

#nb621261>div:nth-child(5)>div:nth-child(2)>ul>li {
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: 600;
    border-bottom: 1px solid rgba(159, 154, 154, 0.5);
    padding: 0 0 1.3% 0;
}

#nb621261>div:nth-child(5)>div:nth-child(3)>p {
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: 400;
    font-size: 110%;
    margin: 5% 0 6% 0;
}

#nb621261>div:nth-child(5)>div:nth-child(4)>div {
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: 400;
    font-size: 110%;
    padding: 2% 0%;
    display: flex;
    gap: 2%;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    background-color: #000000;
    margin: 0% 0 2% 0;
    box-sizing: border-box;
}

#nb621261>div:nth-child(5)>div:nth-child(4)>div:nth-child(1)>p {
    color: white;
}

#nb621261>div:nth-child(5)>div:nth-child(4)>div:nth-child(1)>svg {
    color: white;
}

#nb621261>div:nth-child(5)>div:nth-child(4)>div:nth-child(2)>p {
    color: white;
}

#nb621261>div:nth-child(5)>div:nth-child(4)>div:nth-child(2)>svg {
    color: white;
}

#ft621261 {
    width: 100%;
    min-height: 60px;
    background-color: #fef5e4;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    border-top: 1px solid #000000;
}

#ft621261>div p {
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: 450;
}

#ft621261>div:nth-child(2) {
    display: flex;
    flex-direction: row;
    gap: 15px;
}

#ft621261>div:nth-child(2) {
    display: flex;
    flex-direction: row;
    gap: 60px;
}

.footer-legal-link {
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.footer-legal-link:hover {
    opacity: 0.55;
    text-decoration: underline;
}


/* ── Legal Popup ── */
.legal-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.55);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.legal-popup {
    background-color: #fef5e4;
    border-radius: 12px;
    padding: 36px 40px;
    max-width: 580px;
    width: 100%;
    max-height: 82vh;
    overflow-y: auto;
    position: relative;
    font-family: "IBM Plex Sans", sans-serif;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.legal-popup-close {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 110%;
    cursor: pointer;
    color: #333;
    font-weight: 700;
    background: none;
    border: none;
    font-family: "IBM Plex Sans", sans-serif;
    transition: color 0.15s ease;
    line-height: 1;
    padding: 4px 8px;
}

.legal-popup-close:hover {
    color: #000;
}

.legal-popup-title {
    font-size: 160%;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: #1a1a1a;
    padding-right: 30px;
}

.legal-popup-hr {
    border: none;
    border-top: 1px solid #ccc;
    margin: 0 0 20px 0;
}

.legal-popup-section {
    margin-bottom: 20px;
}

.legal-popup-section:last-child {
    margin-bottom: 0;
}

.legal-popup-section-heading {
    font-size: 93%;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 6px 0;
}

.legal-popup-section-body {
    font-size: 90%;
    color: #444;
    line-height: 1.75;
    margin: 0;
}



@media screen and (max-width:1150px) {

    #nb621261 {
        box-sizing: border-box;
        justify-content: space-between;
        padding: 0px 5vw;
        position: relative;
    }

    #nb621261>div:nth-child(2) {
        display: none;
    }

    #nb621261>div:nth-child(3) {
        display: none;
    }

    #nb621261>p:nth-child(4) {
        display: block;
    }

    #nb621261>div:nth-child(5).open_mobilenav {
        display: flex;
    }

    body:has(#nb621261>div:nth-child(5).open_mobilenav) #renderContent,
    body:has(#nb621261>div:nth-child(5).open_mobilenav) #ft621261,
    body:has(#nb621261>div:nth-child(5).open_mobilenav) #nb621261>img:nth-child(1),
    body:has(#nb621261>div:nth-child(5).open_mobilenav) #nb621261>p:nth-child(4) {
        filter: blur(4px);
    }

}

@media screen and (max-width: 440px) {

    #nb621261 {
        height: 110px;
    }

    #nb621261>img:nth-child(1) {
        width: 150px;
        height: 85px;
    }
}

@media screen and (max-width: 792px) {

    #ft621261 {
        flex-direction: column;
        padding: 3vw 0;
    }

    #ft621261>div:nth-child(2) {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 10px;
        margin: 3vw 0 0 0;
    }
}