﻿/* =========================================================
   END USER LICENSE AGREEMENT (EULA) CSS
========================================================= */

.eula-page {
    --eula-primary: #0047ff;
    --eula-primary-dark: #0038c7;
    --eula-light: #eff6ff;
    --eula-dark: #0f172a;
    --eula-text: #334155;
    --eula-muted: #64748b;
    --eula-border: #e2e8f0;
    --eula-bg: #f8fafc;

    color: var(--eula-text);
    background: #ffffff;
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
}

.eula-page *,
.eula-page *::before,
.eula-page *::after {
    box-sizing: border-box;
}


/* =========================================================
   CONTAINER
========================================================= */

.eula-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}


/* =========================================================
   HERO SECTION
   Matching Disclaimer / Refund page style
========================================================= */

.eula-hero {
    position: relative;
    width: 100%;
    overflow: hidden;

    padding: 64px 0 70px;

    background:
        radial-gradient(
            circle at 88% 20%,
            rgba(37, 99, 235, 0.35),
            transparent 38%
        ),
        radial-gradient(
            circle at 15% 90%,
            rgba(30, 64, 175, 0.18),
            transparent 42%
        ),
        linear-gradient(
            135deg,
            #071a3d 0%,
            #0b2554 45%,
            #1d4ed8 100%
        );

    border: 0;
}

.eula-hero::before {
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(3, 15, 38, 0.18),
            transparent 55%
        );

    pointer-events: none;
}

.eula-hero-content {
    position: relative;
    z-index: 1;

    max-width: 900px;
}


/* =========================================================
   HERO BADGE
========================================================= */

.eula-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 0;

    margin: 0 0 22px;
    padding: 9px 14px;

    color: #dbeafe;

    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);

    border-radius: 999px;

    font-size: 11px;
    font-weight: 800;
    line-height: 1;

    letter-spacing: 1.5px;
    text-transform: uppercase;

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.eula-eyebrow::before {
    display: none;
}


/* =========================================================
   HERO TITLE
========================================================= */

.eula-hero h1 {
    margin: 0 0 18px;

    color: #ffffff;

    font-size: clamp(40px, 5vw, 64px);
    font-weight: 700;

    line-height: 1.08;
    letter-spacing: -1.8px;
}

.eula-hero h1 span {
    color: #ffffff;
}


/* =========================================================
   HERO DESCRIPTION
========================================================= */

.eula-hero p {
    max-width: 760px;

    margin: 0;

    color: rgba(255, 255, 255, 0.88);

    font-size: 16px;
    font-weight: 400;

    line-height: 1.7;
}


/* =========================================================
   HERO META
========================================================= */

.eula-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 8px 18px;

    margin-top: 18px;
}

.eula-meta-item {
    padding: 0;

    background: transparent;
    border: 0;
    border-radius: 0;

    color: rgba(255, 255, 255, 0.92);

    font-size: 13px;
    font-weight: 600;

    line-height: 1.6;

    backdrop-filter: none;
}

.eula-meta-item strong {
    margin-right: 5px;

    color: #ffffff;

    font-weight: 700;
}


/* =========================================================
   CONTENT LAYOUT
========================================================= */

.eula-content-section {
    padding: 60px 0 100px;
    background: #ffffff;
}

.eula-layout {
    display: grid;

    grid-template-columns: 280px 1fr;

    gap: 50px;

    align-items: start;
}


/* =========================================================
   SIDEBAR NAVIGATION
========================================================= */

.eula-sidebar {
    position: sticky;

    top: 110px;

    align-self: start;

    max-height: calc(100vh - 130px);

    overflow-y: auto;

    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;

    z-index: 10;
}

.eula-sidebar-inner {
    padding: 22px 18px;

    border: 1px solid var(--eula-border);
    border-radius: 14px;

    background: #f8fafc;
}

.eula-sidebar-title {
    margin-bottom: 14px;

    color: var(--eula-dark);

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.eula-sidebar nav {
    display: flex;
    flex-direction: column;

    gap: 2px;
}

.eula-sidebar nav a {
    display: block;

    padding: 8px 10px;

    border-left: 2px solid transparent;
    border-radius: 0 6px 6px 0;

    color: var(--eula-muted);

    font-size: 13px;
    font-weight: 500;

    line-height: 1.4;

    text-decoration: none;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        padding-left 0.2s ease;
}

.eula-sidebar nav a:hover {
    color: var(--eula-primary);

    background: #eff6ff;

    border-left-color: var(--eula-primary);

    padding-left: 14px;
}

.eula-sidebar nav a.active {
    color: var(--eula-primary);

    background: #eff6ff;

    border-left-color: var(--eula-primary);
    border-left-width: 3px;

    font-weight: 700;

    padding-left: 14px;
}


/* =========================================================
   MAIN ARTICLE & CONTENT CARDS
========================================================= */

.eula-article {
    display: flex;
    flex-direction: column;

    gap: 30px;
}


/* =========================================================
   NOTICE BOX
========================================================= */

.eula-notice-box {
    padding: 24px 28px;

    background: linear-gradient(
        135deg,
        #eff6ff 0%,
        #f8fbff 100%
    );

    border: 1px solid #bfdbfe;
    border-left: 5px solid #0047ff;

    border-radius: 14px;

    color: #1e3a8a;
}

.eula-notice-box h3 {
    display: flex;
    align-items: center;

    gap: 10px;

    margin: 0 0 12px;

    color: #0f172a;

    font-size: 18px;
    font-weight: 700;
}

.eula-notice-box h3 i {
    color: #0047ff;
}

.eula-notice-box p {
    margin: 0 0 12px;

    color: #334155;

    font-size: 14px;
    line-height: 1.75;
}

.eula-notice-box p:last-child {
    margin-bottom: 0;
}

.eula-notice-box strong {
    color: #0f172a;
}


/* =========================================================
   POLICY SECTION CARD
   Numbered layout — big faint number top-right,
   eyebrow + heading + body text on the left.
========================================================= */

.eula-section {
    position: relative;

    padding: 34px 36px;

    border: 1px solid var(--eula-border);
    border-radius: 14px;

    background: #ffffff;

    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);

    overflow: hidden;

    scroll-margin-top: 120px;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.eula-section:hover {
    border-color: #cbd5e1;

    box-shadow:
        0 6px 25px rgba(15, 23, 42, 0.06);
}

.section-number {
    position: absolute;
    top: 14px;
    right: 26px;

    color: #e2e8f0;

    font-size: 46px;
    font-weight: 800;
    line-height: 1;

    letter-spacing: -1px;

    pointer-events: none;
    user-select: none;
}

.section-content {
    position: relative;
    z-index: 1;

    padding-right: 64px;
}

.section-eyebrow {
    display: inline-block;

    margin-bottom: 10px;

    color: var(--eula-primary);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.section-content h2,
.section-content h3 {
    margin: 0 0 16px;

    color: var(--eula-dark);

    font-size: 22px;
    font-weight: 700;

    line-height: 1.3;
}

.section-content p {
    margin: 0 0 16px;

    color: var(--eula-text);

    font-size: 14px;
    line-height: 1.8;
}

.section-content p:last-child {
    margin-bottom: 0;
}

.section-content a {
    color: var(--eula-primary);

    text-decoration: none;

    font-weight: 600;

    transition: color 0.2s ease;
}

.section-content a:hover {
    color: var(--eula-primary-dark);

    text-decoration: underline;
}

.section-content strong {
    color: var(--eula-dark);
}

/* Optional highlighted callout row inside a section
   (e.g. "If you do not agree to these Terms, do not use
   the Services."), matching the light-blue checklist box
   used across the other policy pages. */
.highlight-label {
    position: relative;

    display: flex;
    align-items: center;

    gap: 12px;

    margin: 18px 0;
    padding: 14px 18px 14px 46px;

    background: var(--eula-light);
    border-radius: 10px;

    color: var(--eula-dark);

    font-size: 14px;
    line-height: 1.6;
}

.highlight-label::before {
    content: "\2713";

    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);

    width: 20px;
    height: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--eula-primary);
    color: #ffffff;

    font-size: 11px;
    font-weight: 700;
}


/* =========================================================
   RESPONSIVE - TABLET
========================================================= */

@media (max-width: 1024px) {

    .eula-container {
        width: min(100% - 32px, 1180px);
    }

    .eula-layout {
        grid-template-columns: 1fr;

        gap: 40px;
    }

    .eula-sidebar {
        position: static;

        max-height: none;

        overflow: visible;
    }

    .eula-sidebar nav {
        display: grid;

        grid-template-columns:
            repeat(
                auto-fill,
                minmax(220px, 1fr)
            );

        gap: 6px;
    }

    .eula-sidebar nav a {
        border-left: none;

        border-bottom: 2px solid transparent;

        border-radius: 6px;
    }

    .eula-sidebar nav a:hover,
    .eula-sidebar nav a.active {
        border-left: none;

        border-bottom-color: var(--eula-primary);

        padding-left: 10px;
    }
}


/* =========================================================
   RESPONSIVE - MOBILE
========================================================= */

@media (max-width: 640px) {

    .eula-container {
        width: calc(100% - 28px);
    }

    .eula-hero {
        padding: 48px 0 46px;
    }

    .eula-hero-content {
        max-width: 100%;
    }

    .eula-eyebrow {
        margin-bottom: 18px;

        padding: 8px 12px;

        font-size: 10px;

        letter-spacing: 1.2px;
    }

    .eula-hero h1 {
        margin-bottom: 16px;

        font-size: clamp(34px, 10vw, 46px);

        letter-spacing: -1.2px;
    }

    .eula-hero p {
        font-size: 14px;

        line-height: 1.65;
    }

    .eula-meta {
        flex-direction: column;
        align-items: flex-start;

        gap: 5px;

        margin-top: 18px;
    }

    .eula-meta-item {
        font-size: 12px;
    }

    .eula-content-section {
        padding: 40px 0 70px;
    }

    .eula-sidebar nav {
        grid-template-columns: 1fr;
    }

    .eula-section {
        padding: 26px 22px;
    }

    .section-number {
        font-size: 34px;
        top: 12px;
        right: 18px;
    }

    .section-content {
        padding-right: 44px;
    }

    .section-content h2,
    .section-content h3 {
        font-size: 19px;
    }

    .eula-notice-box {
        padding: 20px;
    }

    .eula-notice-box h3 {
        font-size: 16px;
    }

    .eula-notice-box p {
        font-size: 13px;
    }
}


/* =========================================================
   EXTRA SMALL DEVICES
========================================================= */

@media (max-width: 420px) {

    .eula-hero {
        padding: 42px 0 40px;
    }

    .eula-hero h1 {
        font-size: 34px;
    }

    .eula-meta-item {
        font-size: 11px;
    }

    .section-content p {
        font-size: 13px;

        line-height: 1.75;
    }

    .section-number {
        font-size: 28px;
    }
}