/* =========================================================
   TERMS & CONDITIONS
   Amit Basak — Legal Pages
========================================================= */


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

.legal-hero {
    position: relative;
    min-height: 470px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 12% 25%,
            rgba(11, 92, 255, 0.10),
            transparent 32%
        ),
        radial-gradient(
            circle at 88% 70%,
            rgba(126, 87, 255, 0.08),
            transparent 34%
        ),
        #f8faff;
}

.legal-grid {
    position: absolute;
    inset: 0;
    opacity: 0.38;
    pointer-events: none;

    background-image:
        linear-gradient(
            rgba(20, 40, 80, 0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(20, 40, 80, 0.035) 1px,
            transparent 1px
        );

    background-size: 52px 52px;

    mask-image: linear-gradient(
        to bottom,
        black,
        transparent 90%
    );

    -webkit-mask-image: linear-gradient(
        to bottom,
        black,
        transparent 90%
    );
}

.legal-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
}

.legal-glow-one {
    width: 240px;
    height: 240px;
    top: 70px;
    right: 8%;
    background: rgba(11, 92, 255, 0.06);
}

.legal-glow-two {
    width: 180px;
    height: 180px;
    bottom: -40px;
    left: 12%;
    background: rgba(188, 104, 255, 0.05);
}

.legal-hero .container {
    position: relative;
    z-index: 2;
}

.legal-hero-content {
    max-width: 900px;
    padding: 90px 0;
    padding-top: 120px;
}

.legal-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 24px;
    padding: 8px 13px;

    border: 1px solid rgba(11, 92, 255, 0.12);
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.68);

    color: #61708a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;

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

.legal-eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #0b5cff;
    box-shadow: 0 0 0 4px rgba(11, 92, 255, 0.08);
}

.legal-hero-content h1 {
    margin: 0;

    color: #101828;

    font-size: clamp(4rem, 8vw, 6.5rem);
    font-weight: 800;
    line-height: 0.92;
    letter-spacing: -0.075em;
}

.legal-hero-content h1 span {
    display: block;

    background: linear-gradient(
        100deg,
        #0b5cff 0%,
        #426cff 48%,
        #7657ff 100%
    );

    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.legal-hero-content p {
    max-width: 690px;
    margin: 32px 0 0;

    color: #69778d;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.8;
}


/* =========================================================
   CONTENT SECTION
========================================================= */

.legal-content-section {
    position: relative;
    padding: 100px 0 130px;
    background: #ffffff;
}


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

.legal-sidebar {
    position: sticky;
    top: 100px;

    padding: 20px;

    border: 1px solid rgba(16, 24, 40, 0.07);
    border-radius: 18px;

    background: rgba(255, 255, 255, 0.76);

    box-shadow:
        0 15px 40px rgba(16, 24, 40, 0.045);

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

.legal-sidebar-title {
    margin-bottom: 12px;
    padding: 0 10px;

    color: #a0aabc;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.legal-navigation {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.legal-navigation a {
    display: flex;
    align-items: center;
    gap: 11px;

    padding: 10px;

    border-radius: 9px;

    color: #68768b;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;

    transition:
        color 160ms ease,
        background 160ms ease,
        transform 160ms ease;
}

.legal-navigation a span {
    min-width: 20px;

    color: #a7b0bf;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.legal-navigation a:hover {
    color: #0b5cff;
    background: rgba(11, 92, 255, 0.055);
    transform: translateX(2px);
}

.legal-navigation a:hover span {
    color: #0b5cff;
}


/* =========================================================
   DOCUMENT
========================================================= */

.legal-document {
    max-width: 850px;
}

.legal-introduction {
    display: flex;
    align-items: flex-start;
    gap: 18px;

    margin-bottom: 75px;
    padding: 23px;

    border: 1px solid rgba(11, 92, 255, 0.10);
    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            rgba(11, 92, 255, 0.045),
            rgba(111, 91, 255, 0.025)
        );
}

.legal-introduction-icon {
    flex: 0 0 48px;

    width: 48px;
    height: 48px;

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

    border-radius: 13px;

    background: rgba(11, 92, 255, 0.09);

    color: #0b5cff;
    font-size: 20px;
}

.legal-label {
    display: block;
    margin-bottom: 7px;

    color: #0b5cff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.legal-introduction p {
    margin: 0;

    color: #65738a;
    font-size: 14px;
    line-height: 1.8;
}

.legal-introduction strong {
    color: #344054;
    font-weight: 700;
}


/* =========================================================
   SECTIONS
========================================================= */

.legal-section {
    position: relative;

    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 24px;

    padding-bottom: 68px;
    margin-bottom: 68px;

    border-bottom: 1px solid #edf0f5;
    scroll-margin-top: 100px;
}

.legal-section-number {
    width: 42px;
    height: 42px;

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

    border: 1px solid rgba(11, 92, 255, 0.11);
    border-radius: 12px;

    background: #f5f8ff;

    color: #0b5cff;
    font-size: 11px;
    font-weight: 800;
}

.legal-section-content h2 {
    margin: 0 0 22px;

    color: #172033;

    font-size: 27px;
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: -0.035em;
}

.legal-section-content p {
    margin: 0 0 17px;

    color: #66758a;

    font-size: 14px;
    font-weight: 450;
    line-height: 1.95;
}

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

.legal-section-content strong {
    color: #344054;
    font-weight: 700;
}


/* =========================================================
   LIST CARDS
========================================================= */

.legal-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;

    margin-top: 25px;
}

.legal-list-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    min-height: 100%;

    padding: 15px;

    border: 1px solid #edf0f5;
    border-radius: 13px;

    background: #fbfcfe;

    color: #66758a;
    font-size: 13px;
    line-height: 1.7;

    transition:
        border-color 160ms ease,
        background 160ms ease,
        transform 160ms ease;
}

.legal-list-item:hover {
    border-color: rgba(11, 92, 255, 0.12);
    background: #f9fbff;
    transform: translateY(-1px);
}

.legal-list-icon {
    flex: 0 0 29px;

    width: 29px;
    height: 29px;

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

    border-radius: 9px;

    background: rgba(11, 92, 255, 0.07);

    color: #0b5cff;
    font-size: 12px;
}


/* =========================================================
   HIGHLIGHT
========================================================= */

.legal-highlight {
    display: flex;
    align-items: flex-start;
    gap: 15px;

    margin-bottom: 20px;
    padding: 19px;

    border: 1px solid rgba(11, 92, 255, 0.12);
    border-radius: 14px;

    background: rgba(11, 92, 255, 0.045);
}

.legal-highlight-icon {
    flex: 0 0 36px;

    width: 36px;
    height: 36px;

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

    border-radius: 10px;

    background: rgba(11, 92, 255, 0.09);

    color: #0b5cff;
}

.legal-highlight strong {
    display: block;
    margin-bottom: 6px;

    color: #344054;
    font-size: 13px;
}

.legal-highlight p {
    margin: 0;

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


/* =========================================================
   SEBI REGISTRATION
========================================================= */

.legal-registration {
    display: flex;
    align-items: flex-start;
    gap: 15px;

    margin-top: 20px;
    padding: 20px;

    border: 1px solid rgba(11, 92, 255, 0.10);
    border-radius: 15px;

    background:
        linear-gradient(
            135deg,
            #f8fbff,
            #fbfaff
        );
}

.legal-registration-icon {
    flex: 0 0 40px;

    width: 40px;
    height: 40px;

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

    border-radius: 11px;

    background: rgba(11, 92, 255, 0.08);

    color: #0b5cff;
    font-size: 17px;
}

.legal-registration span {
    display: block;
    margin-bottom: 5px;

    color: #0b5cff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.legal-registration strong {
    display: block;

    color: #344054;
    font-size: 13px;
    line-height: 1.65;
}

.legal-registration p {
    margin: 7px 0 0;

    font-size: 12px;
    line-height: 1.7;
}


/* =========================================================
   LAW CARD
========================================================= */

.legal-law-card {
    display: flex;
    align-items: center;
    gap: 17px;

    padding: 21px;

    border: 1px solid rgba(11, 92, 255, 0.10);
    border-radius: 15px;

    background: #f8faff;
}

.legal-law-icon {
    flex: 0 0 43px;

    width: 43px;
    height: 43px;

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

    border-radius: 12px;

    background: rgba(11, 92, 255, 0.08);

    color: #0b5cff;
    font-size: 18px;
}

.legal-law-card p {
    margin: 0;
}

.legal-muted-text {
    margin-top: 18px !important;

    color: #98a2b3 !important;
    font-size: 12px !important;
}


/* =========================================================
   PRIVACY POLICY
========================================================= */

.legal-privacy-section {
    padding-top: 5px;
}

.privacy-heading {
    margin-bottom: 22px;
}

.privacy-heading .legal-label {
    margin-bottom: 10px;
}

.legal-section-content h3 {
    margin: 38px 0 15px;

    color: #344054;
    font-size: 18px;
    font-weight: 750;
    line-height: 1.35;
    letter-spacing: -0.02em;
}


/* =========================================================
   FINAL NOTICE
========================================================= */

.legal-final-notice {
    display: flex;
    align-items: flex-start;
    gap: 18px;

    margin-top: 10px;
    padding: 27px;

    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            #102a68,
            #163b91
        );

    box-shadow:
        0 18px 45px rgba(16, 42, 104, 0.14);
}

.legal-final-icon {
    flex: 0 0 42px;

    width: 42px;
    height: 42px;

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

    border-radius: 12px;

    background: rgba(255, 255, 255, 0.11);

    color: #ffffff;
    font-size: 18px;
}

.legal-final-notice h3 {
    margin: 0 0 8px;

    color: #ffffff;

    font-size: 17px;
    font-weight: 750;
}

.legal-final-notice p {
    margin: 0;

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

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


/* =========================================================
   RESPONSIVE — LARGE TABLET
========================================================= */

@media (max-width: 991.98px) {

    .legal-hero {
        min-height: 430px;
    }

    .legal-hero-content {
        padding: 80px 0;
    }

    .legal-sidebar {
        position: relative;
        top: auto;
        margin-bottom: 10px;
    }

    .legal-navigation {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px;
    }

    .legal-content-section {
        padding-top: 80px;
    }

}


/* =========================================================
   RESPONSIVE — TABLET
========================================================= */

@media (max-width: 767.98px) {

    .legal-hero {
        min-height: 390px;
    }

    .legal-hero-content {
        padding: 70px 0;
    }

    .legal-hero-content h1 {
        font-size: clamp(3.5rem, 14vw, 5.2rem);
    }

    .legal-hero-content p {
        margin-top: 25px;
        font-size: 16px;
    }

    .legal-content-section {
        padding: 70px 0 90px;
    }

    .legal-introduction {
        margin-bottom: 55px;
    }

    .legal-section {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 17px;

        padding-bottom: 55px;
        margin-bottom: 55px;
    }

    .legal-section-number {
        width: 38px;
        height: 38px;
    }

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

    .legal-list {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */

@media (max-width: 575.98px) {

    .legal-hero {
        min-height: 360px;
    }

    .legal-hero-content {
        padding: 60px 0;
    }

    .legal-eyebrow {
        margin-bottom: 20px;
        font-size: 10px;
    }

    .legal-hero-content h1 {
        font-size: clamp(3.1rem, 15vw, 4.3rem);
        letter-spacing: -0.065em;
    }

    .legal-hero-content p {
        font-size: 15px;
        line-height: 1.7;
    }

    .legal-content-section {
        padding: 55px 0 75px;
    }

    .legal-sidebar {
        padding: 15px;
        border-radius: 15px;
    }

    .legal-navigation {
        grid-template-columns: 1fr;
    }

    .legal-navigation a {
        padding: 9px;
    }

    .legal-introduction {
        flex-direction: column;
        padding: 18px;
        margin-bottom: 45px;
    }

    .legal-section {
        grid-template-columns: 1fr;
        gap: 14px;

        padding-bottom: 45px;
        margin-bottom: 45px;
    }

    .legal-section-number {
        width: 36px;
        height: 36px;
    }

    .legal-section-content h2 {
        margin-bottom: 18px;
        font-size: 22px;
    }

    .legal-section-content h3 {
        font-size: 17px;
    }

    .legal-section-content p {
        font-size: 13.5px;
        line-height: 1.85;
    }

    .legal-highlight,
    .legal-registration,
    .legal-law-card,
    .legal-final-notice {
        padding: 17px;
    }

    .legal-final-notice {
        flex-direction: column;
    }

}