@font-face {
    font-family: 'Montserrat';
    src: url("../assets/fonts/Montserrat-VariableFont_wght.ttf") format('truetype');
}

@font-face {
    font-family: 'Baloo 2';
    src: url("../assets/fonts/Baloo2-VariableFont_wght.ttf") format('truetype');
}

html {
    background: #F2F2F2;
}

:root {
    --content-max-width: 1440px;
}

body {
    font-family: 'Montserrat', Arial, sans-serif;
    overflow-x: hidden;
    margin: 0;
}

.d_none {
    display: none;
}

.legal-page {
    box-sizing: border-box;
    background: #FFFFFF;
    color: #151515;
    min-height: calc(100vh - 44px);
}

/* HEADER */
.hero-section {
    position: relative;
    width: 100%;
    height: 164px;
    background: #FFFFFF;
    z-index: 999;
}

.header-menu {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    max-width: var(--content-max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    padding: 22px 72px;
    box-sizing: border-box;
    z-index: 2;
}

.header-menu img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.logo-link,
.mobile-logo-link,
.footer-logo-link {
    display: inline-flex;
    line-height: 0;
    text-decoration: none;
}

.navbar {
    display: flex;
    gap: 72px;
    align-items: center;
}

.burger-menu {
    display: none;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.close-menu {
    display: none;
}

.mobile-menu-toggle,
.hamburger-menu,
.mobile-menu-logo {
    display: none;
}

.navbar-inner {
    display: flex;
    gap: 64px;
    justify-content: center;
    align-items: center;
}

.navbar-inner a {
    margin: 0;
    display: block;
    font-size: 23px;
    font-weight: 400;
    color: #5988FF;
    text-align: center;
    text-decoration: none;
}

.navbar-inner a::after {
    content: attr(data-label);
    display: block;
    height: 0;
    overflow: hidden;
    visibility: hidden;
    font-weight: 700;
}

.navbar-inner a:hover {
    cursor: pointer;
    font-weight: 700;
}

.language-button {
    position: relative;
    border: none;
    background: none;
    margin: 0;
    padding: 0 0 4px;
    display: inline-block;
    font-size: 23px;
    font-weight: 400;
    color: #5988FF;
    text-align: center;
}

.language-button::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 4px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
}

.language-button:hover {
    cursor: pointer;
    font-weight: 700;
}

.language-button.is-active {
    font-weight: 700;
}

.language-button.is-active::after {
    transform: scaleX(1);
}

.language-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #5988FF;
    font-size: 23px;
}

.legal-notice {
    box-sizing: border-box;
    position: relative;
    width: 100%;
    max-width: var(--content-max-width);
    margin: 0 auto;
    min-height: 516px;
    padding: 34px clamp(48px, 14vw, 190px) 58px;
}

.legal-notice h1 {
    margin: 0 0 42px;
    color: #5988FF;
    font-family: 'Baloo 2', sans-serif;
    font-size: 72px;
    font-weight: 700;
    line-height: 1;
}

.legal-section {
    margin: 0 0 34px;
}

.legal-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 19px;
    line-height: 120%;
    letter-spacing: 0%;
    color: #5988FF;
    margin: 0;
}

.legal-section p,
.legal-contact,
.legal-date,
.legal-imprint-list {
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
}

.legal-section p+p {
    margin-top: 18px;
}

.legal-imprint-list {
    padding-left: 24px;
}

.legal-notice a {
    color: #5988FF;
    text-decoration: none;
}

.legal-notice a:hover {
    text-decoration: underline;
}

.legal-contact {
    margin-top: 12px;
}

.legal-date {
    margin-top: 18px;
}

/* FOOTER */
.footer-section {
    position: relative;
    margin: 0;
    min-height: 268px;
    padding: 0 max(72px, calc((100vw - var(--content-max-width)) / 2 + 72px));
    background: linear-gradient(135deg, #5988FF, #5988FF, #0043F0);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    overflow: hidden;
}

.footer-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.footer-section>h2 {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    margin: 0;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 23px;
    line-height: 120%;
    text-align: center;
}

.footer-legal-links {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 24px;
    z-index: 1;
}

.footer-legal-links a {
    position: relative;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 120%;
    text-decoration: none;
    white-space: nowrap;
}

.footer-legal-links a::after {
    content: '';
    position: absolute;
    left: 15%;
    bottom: -4px;
    width: 70%;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
}

.footer-legal-links a:hover {
    font-weight: 700;
}

.footer-legal-links a:hover::after {
    transform: scaleX(1);
}

.footer-socials {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 32px;
    position: relative;
    z-index: 1;
}

.footer-socials a {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.footer-socials img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    transition: transform 0.15s ease;
}

.footer-socials a:hover img {
    transform: scale(1.3);
}

.footer-socials a:has(+ a:hover) img {
    transform: translateX(-8px);
}

.footer-socials a:hover+a img {
    transform: translateX(8px);
}

.back-to-main,
.back-to-main-hover {
    display: none;
}

.ellipse-14 {
    position: absolute;
    width: 169px;
    height: 169px;
    right: 48px;
    top: 285px;
}

.ellipse-15 {
    position: absolute;
    right: -28px;
    top: 642px;
}

.ellipse-16 {
    position: absolute;
    left: 0;
    bottom: 396px; 
}

@media (max-width: 1024px) {
    .legal-page {
        margin: 0;
        min-height: 100vh;
    }

    .hero-section {
        height: 96px;
        overflow: visible;
    }

    .header-menu {
        align-items: center;
        padding: 16px 24px;
    }

    .navbar {
        position: fixed;
        inset: 0;
        z-index: 1003;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 0;
        padding: 35px 22px 48px;
        box-sizing: border-box;
        background-color: rgba(255, 255, 255, 0.82);
        background-image: radial-gradient(circle at 0 0, rgba(89, 136, 255, 0.28) 0 72%, transparent 72.3%);
        transform: translateX(100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 280ms ease, opacity 220ms ease;
    }

    .navbar.navbar-open {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }

    .burger-menu {
        display: block;
    }

    .mobile-logo-link {
        position: absolute;
        top: 24px;
        left: 25px;
    }

    .mobile-menu-logo {
        display: block;
    }

    .close-menu {
        position: absolute;
        top: 36px;
        right: 34px;
        display: block;
        width: 40px;
        height: 40px;
        padding: 0;
        border: 0;
        background: transparent;
        cursor: pointer;
    }

    .close-menu .close-icon {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 22px;
        height: 22px;
        object-fit: contain;
        transform: translate(-50%, -50%);
        transition: opacity 160ms ease;
    }

    .close-icon-final,
    .close-menu:hover .close-icon-medium {
        opacity: 0;
    }

    .close-menu:hover .close-icon-final {
        opacity: 1;
    }

    .navbar-inner {
        margin-top: 290px;
        flex-direction: column;
        gap: 26px;
    }

    .language-switch {
        margin-top: 28px;
    }

    .language-button::after {
        display: none;
    }

    .legal-notice {
        min-height: auto;
        padding: 32px 24px 44px;
    }

    .legal-notice::before {
        top: 48px;
        right: 24px;
        width: 54px;
        height: 54px;
    }

    .legal-notice h1 {
        margin-bottom: 30px;
        font-size: 52px;
        max-width: calc(100% - 72px);
    }

    .legal-section h2 {
        font-size: 26px;
    }

    .footer-section {
        flex-direction: column;
        align-items: center;
        min-height: auto;
        padding: 88px 30px;
    }

    .footer-section>h2,
    .footer-legal-links {
        position: static;
        transform: none;
    }

    .footer-legal-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px 22px;
    }

    .back-to-main,
    .back-to-main-hover {
        display: block;
        position: fixed;
        rotate: -90deg;
        top: 96px;
        right: 24px;
        width: 48px;
        height: 48px;
        z-index: 9999;
    }

    .back-to-main:hover {
        cursor: pointer;
    }

    .back-to-main-hover {
        opacity: 0;
    }

    .back-to-main-wrapper:hover .back-to-main {
        opacity: 0;
    }

    .back-to-main-wrapper:hover .back-to-main-hover {
        opacity: 1;
    }

    .ellipse-14,
    .ellipse-15,
    .ellipse-16 {
        display: none;
    }
}

@media (max-width: 420px) {
    .legal-notice {
        padding-inline: 18px;
    }

    .legal-notice h1 {
        font-size: 34px;
        max-width: calc(100% - 58px);
    }

    .legal-section h2 {
        font-size: 21px;
    }

    .legal-notice p,
    .legal-notice li {
        font-size: 15px;
    }

    .footer-section>h2 {
        font-size: 20px;
    }

    .footer-legal-links a {
        font-size: 15px;
    }
}
