/* START Desktop view */
@media (min-width: 1201px) {
    .lx-banner-legal-document {
        position: relative;
        padding: 6rem 0 7rem 0;
        border-bottom-left-radius: 2rem;
        border-bottom-right-radius: 2rem;
        overflow: hidden;
        background-blend-mode: overlay;
        background-color: #157f8b;
        background-image:
            radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.18) 0%, transparent 35%),
            radial-gradient(circle at 85% 80%, rgba(255, 255, 255, 0.12) 0%, transparent 40%),
            radial-gradient(circle at center center, #1eb1c2 0%, #157f8b 70%, #0f6470 100%);
        font-family: 'Roboto', Arial, Helvetica, sans-serif;
        isolation: isolate;
    }

    .lx-banner-legal-document::before,
    .lx-banner-legal-document::after {
        content: "";
        position: absolute;
        border-radius: 50%;
        filter: blur(60px);
        pointer-events: none;
        z-index: 0;
    }

    .lx-banner-legal-document::before {
        top: -120px;
        left: -80px;
        width: 340px;
        height: 340px;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.25), transparent 70%);
        animation: lxOrbDriftA 14s ease-in-out infinite;
        will-change: transform;
    }

    .lx-banner-legal-document::after {
        bottom: -140px;
        right: -100px;
        width: 380px;
        height: 380px;
        background: radial-gradient(circle, rgba(30, 177, 194, 0.45), transparent 70%);
        animation: lxOrbDriftB 18s ease-in-out infinite;
        will-change: transform;
    }

    .lx-banner-legal-document .lx-banner-legal-document-title {
        position: relative;
        z-index: 1;
    }

    .lx-banner-legal-document .lx-banner-legal-document-title .legal-document-title {
        font-family: 'Roboto', Arial, Helvetica, sans-serif;
        font-weight: 800;
        text-align: center;
        margin: 5rem 0 0;
        font-size: 3.2rem;
        letter-spacing: -0.02em;
        line-height: 1.1;
        background: linear-gradient(
            110deg,
            #ffffff 0%,
            #eaf9fb 30%,
            #ffffff 42%,
            #d5f6fa 50%,
            #ffffff 58%,
            #eaf9fb 70%,
            #ffffff 100%
        );
        background-size: 300% auto;
        -webkit-background-clip: text;
                background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: lxTitleShimmer 7s ease-in-out infinite;
        text-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
    }

    .lx-banner-legal-document .lx-banner-legal-document-title .legal-document-subtitle {
        font-family: 'Roboto', Arial, Helvetica, sans-serif;
        text-align: center;
        color: #f0f6f8;
        font-size: 1.1rem;
        font-weight: 400;
        margin: 1.25rem auto 0;
        max-width: 760px;
        letter-spacing: 0.01em;
        opacity: 0.95;
    }

    .lx-legal-document-content {
        padding-top: 3rem;
    }

    .lx-legal-document-content .lx-legal-document-description h3 {
        font-family: 'Roboto', Arial, Helvetica, sans-serif;
        font-size: 1.1rem;
        font-weight: 400;
        line-height: 1.5;
        color: #5d5c5c;
        text-align: center;
    }

    .lx-legal-document-license {
        padding: 2rem 0 5rem;
        font-family: 'Roboto', Arial, Helvetica, sans-serif;
    }

    .lx-legal-document-license .lx-legal-document-license-title {
        margin: 0 auto 1.5rem;
        font-family: 'Roboto', Arial, Helvetica, sans-serif;
        font-size: 1.75rem;
        font-weight: 700;
        letter-spacing: -0.01em;
        text-align: center;
        color: #1a1a1a;
    }

    .lx-legal-document-license .lx-license-file {
        position: relative;
        display: flex;
        align-items: center;
        gap: 1rem;
        width: 100%;
        margin: 0.75rem auto;
        background-color: #ffffff;
        border: 1px solid #e6ebf1;
        border-left: 4px solid #1eb1c2;
        border-radius: 0.75rem;
        padding: 1rem 2.5rem 1rem 1.25rem;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
        transition:
            transform 0.25s ease,
            box-shadow 0.25s ease,
            border-color 0.25s ease,
            background-color 0.25s ease;
    }

    .lx-license-file::after {
        content: "";
        position: absolute;
        top: 50%;
        right: 1.25rem;
        width: 0.5rem;
        height: 0.5rem;
        border-top: 2px solid #b5bdc9;
        border-right: 2px solid #b5bdc9;
        transform: translateY(-50%) rotate(45deg);
        transition: border-color 0.25s ease, right 0.25s ease;
    }

    .lx-license-file:hover {
        background-color: #fbfdff;
        border-color: #cfeef2;
        border-left-color: #199caa;
        transform: translateY(-3px);
        box-shadow: 0 12px 24px rgba(31, 192, 208, 0.15);
    }

    .lx-license-file:hover::after {
        border-color: #199caa;
        right: 1rem;
    }

    .lx-license-file i {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.25rem;
        color: #d32f2f;
        background-color: rgba(211, 47, 47, 0.1);
        border-radius: 0.5rem;
        flex-shrink: 0;
        margin: 0;
        transition: background-color 0.25s ease;
    }

    .lx-license-file:hover i {
        background-color: rgba(211, 47, 47, 0.18);
    }

    .lx-legal-document-license-documents {
        flex: 1;
        font-family: 'Roboto', Arial, Helvetica, sans-serif;
        font-size: 1.05rem;
        font-weight: 500;
        color: #1a1a1a;
        text-decoration: none;
        line-height: 1.4;
        transition: color 0.25s ease;
    }

    .lx-license-file:hover .lx-legal-document-license-documents {
        color: #199caa;
        font-weight: 600;
    }
}
/* END Desktop view */

/* START Tablet view */
@media (min-width: 768px) and (max-width: 1200px) {
    .lx-banner-legal-document {
        position: relative;
        padding: 6rem 0 8rem 0;
        border-bottom-left-radius: 2rem;
        border-bottom-right-radius: 2rem;
        overflow: hidden;
        background-blend-mode: overlay;
        background-color: #157f8b;
        background-image:
            radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.18) 0%, transparent 35%),
            radial-gradient(circle at 85% 80%, rgba(255, 255, 255, 0.12) 0%, transparent 40%),
            radial-gradient(circle at center center, #1eb1c2 0%, #157f8b 70%, #0f6470 100%);
        font-family: 'Roboto', Arial, Helvetica, sans-serif;
        isolation: isolate;
    }

    .lx-banner-legal-document::before,
    .lx-banner-legal-document::after {
        content: "";
        position: absolute;
        border-radius: 50%;
        filter: blur(60px);
        pointer-events: none;
        z-index: 0;
    }

    .lx-banner-legal-document::before {
        top: -100px;
        left: -60px;
        width: 280px;
        height: 280px;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.25), transparent 70%);
        animation: lxOrbDriftA 15s ease-in-out infinite;
        will-change: transform;
    }

    .lx-banner-legal-document::after {
        bottom: -120px;
        right: -80px;
        width: 320px;
        height: 320px;
        background: radial-gradient(circle, rgba(30, 177, 194, 0.45), transparent 70%);
        animation: lxOrbDriftB 19s ease-in-out infinite;
        will-change: transform;
    }

    .lx-banner-legal-document .lx-banner-legal-document-title {
        position: relative;
        z-index: 1;
        margin: 0 auto;
    }

    .lx-banner-legal-document .lx-banner-legal-document-title .legal-document-title {
        font-family: 'Roboto', Arial, Helvetica, sans-serif;
        font-weight: 800;
        text-align: center;
        margin: 2rem 1.25rem 0;
        font-size: 2.2rem;
        letter-spacing: -0.02em;
        line-height: 1.1;
        background: linear-gradient(
            110deg,
            #ffffff 0%,
            #eaf9fb 30%,
            #ffffff 42%,
            #d5f6fa 50%,
            #ffffff 58%,
            #eaf9fb 70%,
            #ffffff 100%
        );
        background-size: 300% auto;
        -webkit-background-clip: text;
                background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: lxTitleShimmer 7s ease-in-out infinite;
        text-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
    }

    .lx-banner-legal-document .lx-banner-legal-document-title .legal-document-subtitle {
        font-family: 'Roboto', Arial, Helvetica, sans-serif;
        text-align: center;
        color: #f0f6f8;
        font-size: 1rem;
        font-weight: 400;
        margin: 1rem auto 0;
        max-width: 600px;
        letter-spacing: 0.01em;
        opacity: 0.95;
    }

    .lx-legal-document-content {
        padding: 3rem 0;
    }

    .lx-legal-document-content .lx-legal-document-description h3 {
        margin: 0 auto 1.2rem;
        padding: 0 2rem;
        font-family: 'Roboto', Arial, Helvetica, sans-serif;
        font-size: 1.1rem;
        font-weight: 400;
        line-height: 1.5;
        color: #5d5c5c;
        text-align: center;
    }

    .lx-legal-document-license {
        padding: 0 1rem 4rem;
        font-family: 'Roboto', Arial, Helvetica, sans-serif;
    }

    .lx-legal-document-license .lx-legal-document-license-title {
        margin: 0 auto 2rem;
        font-family: 'Roboto', Arial, Helvetica, sans-serif;
        font-size: 1.5rem;
        font-weight: 700;
        letter-spacing: -0.01em;
        text-align: center;
        color: #1a1a1a;
    }

    .lx-legal-document-license .lx-license-file {
        position: relative;
        display: flex;
        align-items: center;
        gap: 0.85rem;
        width: 100%;
        margin: 0.65rem auto;
        background-color: #ffffff;
        border: 1px solid #e6ebf1;
        border-left: 4px solid #1eb1c2;
        border-radius: 0.75rem;
        padding: 0.9rem 2.25rem 0.9rem 1.1rem;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
        transition:
            transform 0.25s ease,
            box-shadow 0.25s ease,
            border-color 0.25s ease,
            background-color 0.25s ease;
    }

    .lx-license-file::after {
        content: "";
        position: absolute;
        top: 50%;
        right: 1.1rem;
        width: 0.45rem;
        height: 0.45rem;
        border-top: 2px solid #b5bdc9;
        border-right: 2px solid #b5bdc9;
        transform: translateY(-50%) rotate(45deg);
        transition: border-color 0.25s ease, right 0.25s ease;
    }

    .lx-license-file:hover {
        background-color: #fbfdff;
        border-color: #cfeef2;
        border-left-color: #199caa;
        transform: translateY(-3px);
        box-shadow: 0 10px 22px rgba(31, 192, 208, 0.15);
    }

    .lx-license-file:hover::after {
        border-color: #199caa;
        right: 0.85rem;
    }

    .lx-license-file i {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.3rem;
        height: 2.3rem;
        font-size: 1.15rem;
        color: #d32f2f;
        background-color: rgba(211, 47, 47, 0.1);
        border-radius: 0.5rem;
        flex-shrink: 0;
        margin: 0;
        transition: background-color 0.25s ease;
    }

    .lx-license-file:hover i {
        background-color: rgba(211, 47, 47, 0.18);
    }

    .lx-legal-document-license-documents {
        flex: 1;
        font-family: 'Roboto', Arial, Helvetica, sans-serif;
        font-size: 1rem;
        font-weight: 500;
        color: #1a1a1a;
        text-decoration: none;
        line-height: 1.4;
        transition: color 0.25s ease;
    }

    .lx-license-file:hover .lx-legal-document-license-documents {
        color: #199caa;
        font-weight: 600;
    }
}
/* END Tablet view */

/* START Mobile view */
@media (max-width: 767px) {
    .lx-banner-legal-document {
        position: relative;
        padding: 3rem 0 4rem 0;
        border-bottom-left-radius: 1rem;
        border-bottom-right-radius: 1rem;
        overflow: hidden;
        background-blend-mode: overlay;
        background-color: #157f8b;
        background-image:
            radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.18) 0%, transparent 35%),
            radial-gradient(circle at 85% 80%, rgba(255, 255, 255, 0.12) 0%, transparent 40%),
            radial-gradient(circle at center center, #1eb1c2 0%, #157f8b 70%, #0f6470 100%);
        font-family: 'Roboto', Arial, Helvetica, sans-serif;
        isolation: isolate;
    }

    .lx-banner-legal-document::before,
    .lx-banner-legal-document::after {
        content: "";
        position: absolute;
        border-radius: 50%;
        filter: blur(50px);
        pointer-events: none;
        z-index: 0;
    }

    .lx-banner-legal-document::before {
        top: -80px;
        left: -50px;
        width: 200px;
        height: 200px;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.25), transparent 70%);
        animation: lxOrbDriftA 16s ease-in-out infinite;
        will-change: transform;
    }

    .lx-banner-legal-document::after {
        bottom: -90px;
        right: -60px;
        width: 220px;
        height: 220px;
        background: radial-gradient(circle, rgba(30, 177, 194, 0.45), transparent 70%);
        animation: lxOrbDriftB 20s ease-in-out infinite;
        will-change: transform;
    }

    .lx-banner-legal-document .lx-banner-legal-document-title {
        position: relative;
        z-index: 1;
        margin: 0 auto;
    }

    .lx-banner-legal-document .lx-banner-legal-document-title .legal-document-title {
        font-family: 'Roboto', Arial, Helvetica, sans-serif;
        font-weight: 800;
        text-align: center;
        margin: 2.5rem 0 0;
        font-size: 2rem;
        letter-spacing: -0.02em;
        line-height: 1.15;
        background: linear-gradient(
            110deg,
            #ffffff 0%,
            #eaf9fb 30%,
            #ffffff 42%,
            #d5f6fa 50%,
            #ffffff 58%,
            #eaf9fb 70%,
            #ffffff 100%
        );
        background-size: 300% auto;
        -webkit-background-clip: text;
                background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: lxTitleShimmer 7s ease-in-out infinite;
        text-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    }

    .lx-banner-legal-document .lx-banner-legal-document-title .legal-document-subtitle {
        font-family: 'Roboto', Arial, Helvetica, sans-serif;
        text-align: center;
        color: #f0f6f8;
        font-size: 0.9rem;
        font-weight: 400;
        margin: 0.85rem auto 0;
        max-width: 480px;
        padding: 0 0.5rem;
        letter-spacing: 0.01em;
        opacity: 0.95;
    }

    .lx-legal-document-content {
        padding-top: 2rem;
    }

    .lx-legal-document-content .lx-legal-document-description h3 {
        font-family: 'Roboto', Arial, Helvetica, sans-serif;
        font-size: 1rem;
        font-weight: 400;
        line-height: 1.5;
        color: #5d5c5c;
        text-align: center;
    }

    .lx-legal-document-license {
        padding: 1rem 0 4rem;
        font-family: 'Roboto', Arial, Helvetica, sans-serif;
    }

    .lx-legal-document-license .lx-legal-document-license-title {
        margin: 1rem auto;
        font-family: 'Roboto', Arial, Helvetica, sans-serif;
        font-size: 1.25rem;
        font-weight: 700;
        letter-spacing: -0.01em;
        text-align: center;
        color: #1a1a1a;
    }

    .lx-legal-document-license .lx-license-file {
        position: relative;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        width: 100%;
        margin: 0.5rem auto;
        background-color: #ffffff;
        border: 1px solid #e6ebf1;
        border-left: 4px solid #1eb1c2;
        border-radius: 0.75rem;
        padding: 0.85rem 2rem 0.85rem 1rem;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
        transition:
            transform 0.25s ease,
            box-shadow 0.25s ease,
            border-color 0.25s ease,
            background-color 0.25s ease;
    }

    .lx-license-file::after {
        content: "";
        position: absolute;
        top: 50%;
        right: 1rem;
        width: 0.4rem;
        height: 0.4rem;
        border-top: 2px solid #b5bdc9;
        border-right: 2px solid #b5bdc9;
        transform: translateY(-50%) rotate(45deg);
        transition: border-color 0.25s ease, right 0.25s ease;
    }

    .lx-license-file:hover {
        background-color: #fbfdff;
        border-color: #cfeef2;
        border-left-color: #199caa;
        transform: translateY(-2px);
        box-shadow: 0 8px 18px rgba(31, 192, 208, 0.15);
    }

    .lx-license-file:hover::after {
        border-color: #199caa;
        right: 0.75rem;
    }

    .lx-license-file i {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.2rem;
        height: 2.2rem;
        font-size: 1.1rem;
        color: #d32f2f;
        background-color: rgba(211, 47, 47, 0.1);
        border-radius: 0.5rem;
        flex-shrink: 0;
        margin: 0;
        transition: background-color 0.25s ease;
    }

    .lx-license-file:hover i {
        background-color: rgba(211, 47, 47, 0.18);
    }

    .lx-legal-document-license-documents {
        flex: 1;
        font-family: 'Roboto', Arial, Helvetica, sans-serif;
        font-size: 0.95rem;
        font-weight: 500;
        color: #1a1a1a;
        text-decoration: none;
        line-height: 1.4;
        transition: color 0.25s ease;
    }

    .lx-license-file:hover .lx-legal-document-license-documents {
        color: #199caa;
        font-weight: 600;
    }
}
/* END Mobile view */

/* START Banner animations (shared across breakpoints) */
@keyframes lxTitleShimmer {
    0%   { background-position: 150% center; }
    100% { background-position: -150% center; }
}

@keyframes lxOrbDriftA {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(60px, 40px) scale(1.15); }
}

@keyframes lxOrbDriftB {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-70px, -40px) scale(1.18); }
}

@keyframes lxFadeInUp {
    from { opacity: 0; transform: translateY(45px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Banner load-in — fire immediately with staggered delay */
.legal-document-page .anim-banner-1,
.legal-document-page .anim-banner-2 {
    opacity: 0;
}
.legal-document-page .anim-banner-1 { animation: lxFadeInUp 1.4s cubic-bezier(0.22,1,0.36,1) 0.15s both; }
.legal-document-page .anim-banner-2 { animation: lxFadeInUp 1.4s cubic-bezier(0.22,1,0.36,1) 0.45s both; }

/* Title needs both fade-in entry + ongoing shimmer; this override beats the
   3-class banner title rule above so neither animation gets dropped. */
.lx-banner-legal-document .lx-banner-legal-document-title .legal-document-title.anim-banner-1 {
    animation:
        lxFadeInUp 1.4s cubic-bezier(0.22,1,0.36,1) 0.15s both,
        lxTitleShimmer 7s ease-in-out infinite;
}

/* Scroll-triggered base states */
.legal-document-page .anim-up,
.legal-document-page .anim-left,
.legal-document-page .anim-right,
.legal-document-page .anim-scale {
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.22,1,0.36,1),
                transform 1.2s cubic-bezier(0.22,1,0.36,1);
    will-change: opacity, transform;
}
.legal-document-page .anim-up    { transform: translateY(38px); }
.legal-document-page .anim-left  { transform: translateX(-42px); }
.legal-document-page .anim-right { transform: translateX(42px); }
.legal-document-page .anim-scale { transform: scale(0.94); }

.legal-document-page .anim-d1 { transition-delay: 0.15s; }
.legal-document-page .anim-d2 { transition-delay: 0.30s; }
.legal-document-page .anim-d3 { transition-delay: 0.45s; }
.legal-document-page .anim-d4 { transition-delay: 0.60s; }

.legal-document-page .anim-up.is-visible,
.legal-document-page .anim-left.is-visible,
.legal-document-page .anim-right.is-visible,
.legal-document-page .anim-scale.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .legal-document-page .anim-banner-1,
    .legal-document-page .anim-banner-2 {
        animation: none;
        opacity: 1;
    }
    .legal-document-page .anim-up,
    .legal-document-page .anim-left,
    .legal-document-page .anim-right,
    .legal-document-page .anim-scale {
        transition: none;
        opacity: 1;
        transform: none;
    }
    .lx-banner-legal-document::before,
    .lx-banner-legal-document::after,
    .lx-banner-legal-document .lx-banner-legal-document-title .legal-document-title {
        animation: none !important;
    }
}
/* END Banner animations */