/*==============================================================
TERMS OF SERVICE
==============================================================*/

html {
    scroll-behavior: smooth;
}


/*==============================================================
LEGAL HERO
==============================================================*/

.legal-hero {
    position: relative;
    min-height: 430px;
    display: flex;
    align-items: center;
    justify-content: center;

    background-image:
        linear-gradient(
            135deg,
            rgba(8, 17, 31, 0.94),
            rgba(12, 30, 48, 0.88)
        ),
        url("/assets/images/legal/legal-bg.jpg");

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

    overflow: hidden;
}

.legal-hero::after {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    border: 1px solid rgba(201, 162, 39, 0.12);
    border-radius: 50%;
    right: -170px;
    top: -180px;
}

.legal-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at 20% 40%,
            rgba(201, 162, 39, 0.10),
            transparent 35%
        );
}

.legal-hero .container {
    position: relative;
    z-index: 2;
}

.legal-hero-content {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
    padding: 70px 20px;
}

.legal-tag {
    display: inline-block;
    margin-bottom: 18px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #d6b65c;
}

.legal-hero h1 {
    margin: 0 0 20px;
    color: #ffffff;
    font-size: clamp(42px, 6vw, 70px);
    line-height: 1.08;
    font-weight: 700;
}

.legal-hero-content > p {
    max-width: 680px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.76);
    font-size: 17px;
    line-height: 1.8;
}


/*==============================================================
BREADCRUMB
==============================================================*/

.legal-breadcrumb {
    margin-top: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 14px;
}

.legal-breadcrumb a {
    color: #d6b65c;
    text-decoration: none;
    transition: 0.3s ease;
}

.legal-breadcrumb a:hover {
    color: #ffffff;
}

.legal-breadcrumb span {
    color: rgba(255, 255, 255, 0.58);
}


/*==============================================================
LEGAL CONTENT
==============================================================*/

.legal-content {
    background: #f7f8fa;
    padding: 90px 0 110px;
}

.legal-layout {
    display: grid;
    grid-template-columns: 285px minmax(0, 1fr);
    gap: 65px;
    align-items: start;
}


/*==============================================================
SIDEBAR
==============================================================*/

.legal-sidebar {
    position: sticky;
    top: 110px;
}

.legal-sidebar-card {
    background: #ffffff;
    border: 1px solid #e8e9ec;
    border-radius: 14px;
    padding: 30px 25px;
    box-shadow: 0 10px 40px rgba(20, 31, 46, 0.06);
}

.sidebar-label {
    display: block;
    margin-bottom: 7px;
    color: #b38b2d;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.legal-sidebar-card h3 {
    margin: 0 0 24px;
    color: #101d2c;
    font-size: 22px;
    font-weight: 700;
}

.legal-nav {
    display: flex;
    flex-direction: column;
}

.legal-nav a {
    position: relative;
    display: block;
    padding: 11px 8px 11px 15px;
    border-left: 2px solid #e5e7eb;
    color: #66707c;
    font-size: 13px;
    line-height: 1.45;
    text-decoration: none;
    transition: all 0.25s ease;
}

.legal-nav a:hover {
    color: #b38b2d;
    border-left-color: #c9a227;
    background: #fbf8ef;
    padding-left: 20px;
}


/*==============================================================
MAIN LEGAL AREA
==============================================================*/

.legal-main {
    min-width: 0;
}

.legal-intro {
    position: relative;
    margin-bottom: 35px;
    padding: 38px 40px;
    background: #ffffff;
    border: 1px solid #e8e9ec;
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(20, 31, 46, 0.05);
}

.last-updated {
    display: inline-flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 7px 13px;
    border-radius: 50px;
    background: #f6f0df;
    color: #9b7724;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.legal-intro p {
    margin: 0 0 14px;
    color: #53606d;
    font-size: 16px;
    line-height: 1.85;
}

.legal-intro p:last-child {
    margin-bottom: 0;
}


/*==============================================================
INDIVIDUAL LEGAL SECTIONS
==============================================================*/

.legal-section {
    position: relative;
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 24px;
    margin-bottom: 24px;
    padding: 42px 40px;
    background: #ffffff;
    border: 1px solid #e8e9ec;
    border-radius: 14px;
    scroll-margin-top: 125px;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.legal-section:hover {
    transform: translateY(-2px);
    border-color: rgba(201, 162, 39, 0.30);
    box-shadow: 0 15px 45px rgba(20, 31, 46, 0.07);
}

.section-number {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 12px;
    background: #101d2c;
    color: #d6b65c;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
}

.section-body h2 {
    margin: 2px 0 18px;
    color: #101d2c;
    font-size: 27px;
    line-height: 1.3;
    font-weight: 700;
}

.section-body p {
    margin: 0 0 17px;
    color: #5d6874;
    font-size: 15.5px;
    line-height: 1.85;
}

.section-body p:last-child {
    margin-bottom: 0;
}


/*==============================================================
LEGAL LISTS
==============================================================*/

.section-body ul {
    margin: 20px 0 22px;
    padding: 0;
    list-style: none;
}

.section-body ul li {
    position: relative;
    margin-bottom: 13px;
    padding-left: 28px;
    color: #5d6874;
    font-size: 15px;
    line-height: 1.75;
}

.section-body ul li::before {
    content: "\f00c";
    position: absolute;
    left: 0;
    top: 3px;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #b38b2d;
    font-size: 12px;
}

.section-body ul li:last-child {
    margin-bottom: 0;
}


/*==============================================================
INVESTMENT RISK NOTICE
==============================================================*/

.legal-notice {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-top: 28px;
    padding: 24px;
    background: #fff9e9;
    border: 1px solid #ead9a1;
    border-left: 4px solid #c9a227;
    border-radius: 10px;
}

.notice-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    border-radius: 50%;
    background: #c9a227;
    color: #ffffff;
    font-size: 17px;
}

.legal-notice strong {
    display: block;
    margin-bottom: 7px;
    color: #332a13;
    font-size: 15px;
}

.legal-notice p {
    margin: 0;
    color: #6d6041;
    font-size: 14px;
    line-height: 1.7;
}


/*==============================================================
INLINE LEGAL LINK
==============================================================*/

.legal-inline-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 5px;
    color: #a77e20;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s ease;
}

.legal-inline-link i {
    font-size: 11px;
    transition: transform 0.3s ease;
}

.legal-inline-link:hover {
    color: #101d2c;
}

.legal-inline-link:hover i {
    transform: translateX(5px);
}


/*==============================================================
CONTACT BUTTON
==============================================================*/

.legal-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    padding: 14px 24px;
    border-radius: 6px;
    background: #101d2c;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.legal-contact-btn i {
    font-size: 11px;
    transition: transform 0.3s ease;
}

.legal-contact-btn:hover {
    background: #c9a227;
    color: #ffffff;
    transform: translateY(-2px);
}

.legal-contact-btn:hover i {
    transform: translateX(4px);
}


/*==============================================================
ACKNOWLEDGMENT
==============================================================*/

.legal-acknowledgment {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    margin-top: 35px;
    padding: 38px 40px;
    background:
        linear-gradient(
            135deg,
            #0e1b2a,
            #172b3e
        );
    border-radius: 14px;
    box-shadow: 0 15px 45px rgba(9, 20, 32, 0.14);
}

.ack-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 64px;
    border-radius: 50%;
    background: rgba(201, 162, 39, 0.13);
    border: 1px solid rgba(214, 182, 92, 0.30);
    color: #d6b65c;
    font-size: 24px;
}

.legal-acknowledgment span {
    display: block;
    margin-bottom: 7px;
    color: #d6b65c;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.legal-acknowledgment h3 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 25px;
    font-weight: 700;
}

.legal-acknowledgment p {
    margin: 0;
    color: rgba(255, 255, 255, 0.70);
    font-size: 15px;
    line-height: 1.8;
}


/*==============================================================
TABLET
==============================================================*/

@media (max-width: 991px) {

    .legal-content {
        padding: 70px 0 90px;
    }

    .legal-layout {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .legal-sidebar {
        position: relative;
        top: auto;
    }

    .legal-sidebar-card {
        padding: 25px;
    }

    .legal-nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 5px 15px;
    }

    .legal-nav a {
        border-left: 0;
        border-bottom: 1px solid #eeeeee;
        padding: 10px 5px;
    }

    .legal-nav a:hover {
        padding-left: 5px;
        border-left: 0;
        border-bottom-color: #c9a227;
    }

}


/*==============================================================
MOBILE
==============================================================*/

@media (max-width: 767px) {

    .legal-hero {
        min-height: 360px;
    }

    .legal-hero-content {
        padding: 60px 5px;
    }

    .legal-hero h1 {
        font-size: 40px;
    }

    .legal-hero-content > p {
        font-size: 15px;
        line-height: 1.7;
    }

    .legal-content {
        padding: 55px 0 70px;
    }

    .legal-nav {
        grid-template-columns: 1fr;
    }

    .legal-intro {
        padding: 28px 23px;
    }

    .legal-section {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 30px 23px;
    }

    .section-number {
        width: 50px;
        height: 50px;
    }

    .section-body h2 {
        font-size: 23px;
    }

    .section-body p,
    .section-body ul li {
        font-size: 14.5px;
    }

    .legal-notice {
        flex-direction: column;
        padding: 20px;
    }

    .legal-acknowledgment {
        flex-direction: column;
        padding: 30px 24px;
    }

    .legal-acknowledgment h3 {
        font-size: 22px;
    }

}


/*==============================================================
SMALL MOBILE
==============================================================*/

@media (max-width: 420px) {

    .legal-hero h1 {
        font-size: 34px;
    }

    .legal-sidebar-card {
        padding: 22px 18px;
    }

    .legal-section {
        padding: 27px 20px;
    }

    .legal-intro {
        padding: 25px 20px;
    }

    .legal-contact-btn {
        width: 100%;
    }

}