/* =========================================================
   IKXEL PREMIUM TERMS PAGE
   Page-specific stylesheet
   Color scheme: Royal Blue + Navy + Teal
========================================================= */

:root {
    --terms-primary: #2563eb;
    --terms-primary-dark: #1d4ed8;
    --terms-teal: #14b8a6;
    --terms-navy: #0b1220;
    --terms-navy-soft: #111c31;
    --terms-heading: #0f172a;
    --terms-text: #64748b;
    --terms-border: #e2e8f0;
    --terms-soft: #f6f8fc;
    --terms-white: #ffffff;
    --terms-shadow-sm: 0 10px 30px rgba(15, 23, 42, 0.08);
    --terms-shadow-md: 0 20px 50px rgba(15, 23, 42, 0.12);
    --terms-shadow-lg: 0 30px 80px rgba(15, 23, 42, 0.18);
}

.ikxel-terms-page {
    overflow-x: hidden;
    color: var(--terms-heading);
    background: var(--terms-white);
}

.pb-lg-6 {
    padding-bottom: 5.5rem !important;
}

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

.terms-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(
            circle at 8% 8%,
            rgba(37, 99, 235, 0.38),
            transparent 31%
        ),
        radial-gradient(
            circle at 92% 12%,
            rgba(20, 184, 166, 0.2),
            transparent 29%
        ),
        linear-gradient(
            135deg,
            var(--terms-navy),
            var(--terms-navy-soft)
        );
}

.terms-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.08;
    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.35) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.35) 1px,
            transparent 1px
        );
    background-size: 48px 48px;
    pointer-events: none;
}

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

.terms-breadcrumb {
    --bs-breadcrumb-divider: "›";
}

.terms-breadcrumb a {
    color: rgba(255, 255, 255, 0.58);
    text-decoration: none;
}

.terms-breadcrumb .active {
    color: rgba(255, 255, 255, 0.88);
}

.terms-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 0.65rem 0.95rem;
    color: #a5f3fc;
    background: rgba(20, 184, 166, 0.12);
    border: 1px solid rgba(94, 234, 212, 0.18);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 750;
    backdrop-filter: blur(10px);
}

.terms-hero-title {
    max-width: 880px;
    color: #ffffff;
    letter-spacing: -0.055em;
}

.terms-hero-title span {
    display: block;
    color: transparent;
    background: linear-gradient(
        100deg,
        #93c5fd,
        #c4b5fd 55%,
        #5eead4
    );
    -webkit-background-clip: text;
    background-clip: text;
}

.terms-hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
}

.terms-hero-points span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.75rem;
    font-weight: 650;
}

.terms-hero-points i {
    color: #5eead4;
}

/* Summary card */

.terms-summary-card {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1.3rem;
    box-shadow: var(--terms-shadow-lg);
    backdrop-filter: blur(16px);
}

.terms-summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.terms-summary-header small {
    display: block;
    color: #5eead4;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.terms-summary-header h2 {
    margin: 0.2rem 0 0;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 800;
}

.terms-summary-header > span {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ffffff;
    background: linear-gradient(
        135deg,
        var(--terms-primary),
        #4f46e5
    );
    border-radius: 0.9rem;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.24);
}

.terms-summary-list {
    display: grid;
    gap: 0.7rem;
}

.terms-summary-list > div {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.85rem;
}

.terms-summary-list > div > span {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #5eead4;
    background: rgba(20, 184, 166, 0.12);
    border-radius: 0.7rem;
    font-size: 0.7rem;
}

.terms-summary-list strong,
.terms-summary-list small {
    display: block;
}

.terms-summary-list strong {
    color: #ffffff;
    font-size: 0.77rem;
}

.terms-summary-list small {
    color: rgba(255, 255, 255, 0.44);
    font-size: 0.63rem;
}

.terms-summary-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1rem;
    padding-top: 1rem;
    color: rgba(255, 255, 255, 0.58);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.67rem;
    text-decoration: none;
}

.terms-summary-link > i {
    color: #93c5fd;
}

.terms-summary-link > span {
    margin-left: auto;
    color: #ffffff;
    font-weight: 750;
}

/* =========================================================
   CONTENT AREA
========================================================= */

.terms-content-section {
    background:
        linear-gradient(
            180deg,
            #f8fafc,
            #ffffff
        );
}

/* Sidebar */

.terms-sidebar {
    position: sticky;
    top: 174px;
    padding: 1.25rem;
    background: #ffffff;
    border: 1px solid var(--terms-border);
    border-radius: 1.1rem;
    box-shadow: var(--terms-shadow-md);
}

.terms-sidebar-heading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--terms-border);
}

.terms-sidebar-heading > span {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ffffff;
    background: linear-gradient(
        135deg,
        var(--terms-primary),
        #4f46e5
    );
    border-radius: 0.8rem;
}

.terms-sidebar-heading small {
    display: block;
    color: var(--terms-primary);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.terms-sidebar-heading h2 {
    margin: 0.15rem 0 0;
    color: var(--terms-heading);
    font-size: 1rem;
    font-weight: 800;
}

.terms-nav {
    display: grid;
    gap: 0.35rem;
    margin-top: 1rem;
}

.terms-nav a {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.65rem;
    color: #475569;
    border-radius: 0.7rem;
    font-size: 0.7rem;
    font-weight: 650;
    text-decoration: none;
    transition: 0.2s ease;
}

.terms-nav a:hover,
.terms-nav a.active {
    color: var(--terms-primary);
    background: #eff6ff;
}

.terms-nav a > span {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--terms-primary);
    background: #dbeafe;
    border-radius: 0.55rem;
    font-size: 0.55rem;
    font-weight: 800;
}

.terms-nav a.active > span {
    color: #ffffff;
    background: var(--terms-primary);
}

.terms-sidebar-help {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.7rem;
    margin-top: 1rem;
    padding: 0.85rem;
    background: var(--terms-soft);
    border: 1px solid var(--terms-border);
    border-radius: 0.85rem;
}

.terms-sidebar-help > span {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--terms-teal);
    background: #ccfbf1;
    border-radius: 0.7rem;
}

.terms-sidebar-help strong {
    display: block;
    color: var(--terms-heading);
    font-size: 0.7rem;
}

.terms-sidebar-help p {
    margin: 0.2rem 0 0.45rem;
    color: var(--terms-text);
    font-size: 0.61rem;
    line-height: 1.55;
}

.terms-sidebar-help a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--terms-primary);
    font-size: 0.62rem;
    font-weight: 750;
    text-decoration: none;
}

/* Mobile nav */

.terms-mobile-nav {
    display: none;
    padding: 0.85rem;
    background: #ffffff;
    border: 1px solid var(--terms-border);
    border-radius: 0.85rem;
    box-shadow: var(--terms-shadow-sm);
}

.terms-mobile-nav label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--terms-heading);
    font-size: 0.68rem;
    font-weight: 750;
}

.terms-mobile-nav select {
    width: 100%;
    min-height: 44px;
    padding: 0 0.75rem;
    color: var(--terms-heading);
    background: var(--terms-soft);
    border: 1px solid var(--terms-border);
    border-radius: 0.7rem;
    outline: 0;
    font-size: 0.72rem;
}

/* Document */

.terms-document {
    display: grid;
    gap: 1rem;
}

.terms-document-intro {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.85rem;
    padding: 1.3rem;
    background: #ffffff;
    border: 1px solid var(--terms-border);
    border-radius: 1rem;
    box-shadow: var(--terms-shadow-sm);
}

.terms-document-intro > span {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(
        135deg,
        var(--terms-primary),
        var(--terms-teal)
    );
    border-radius: 0.9rem;
}

.terms-document-intro small {
    display: block;
    color: var(--terms-primary);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.terms-document-intro h2 {
    margin: 0.15rem 0 0.35rem;
    color: var(--terms-heading);
    font-size: 1.35rem;
    font-weight: 850;
}

.terms-document-intro p {
    margin: 0;
    color: var(--terms-text);
    font-size: 0.75rem;
    line-height: 1.7;
}

.terms-section-card {
    scroll-margin-top: 190px;
    padding: 1.4rem;
    background: #ffffff;
    border: 1px solid var(--terms-border);
    border-radius: 1rem;
    box-shadow: var(--terms-shadow-sm);
    transition:
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}

.terms-section-card:hover {
    border-color: #bfdbfe;
    box-shadow: var(--terms-shadow-md);
}

.terms-section-heading {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: 0.7rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--terms-border);
}

.terms-section-number {
    color: #94a3b8;
    font-size: 0.68rem;
    font-weight: 800;
}

.terms-section-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--terms-primary);
    background: #eff6ff;
    border-radius: 0.75rem;
}

.terms-section-heading h2 {
    margin: 0;
    color: var(--terms-heading);
    font-size: 1rem;
    font-weight: 800;
}

.terms-section-content {
    padding-top: 1rem;
    color: var(--terms-text);
    font-size: 0.82rem;
    line-height: 1.85;
}

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

.terms-section-content a {
    color: var(--terms-primary);
    font-weight: 700;
    text-decoration: none;
}

.terms-contact-block {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0.7rem;
    margin-top: 0.85rem;
    padding: 0.85rem;
    background: var(--terms-soft);
    border: 1px solid var(--terms-border);
    border-radius: 0.8rem;
}

.terms-contact-block > span {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--terms-teal);
    background: #ccfbf1;
    border-radius: 0.7rem;
}

.terms-contact-block strong,
.terms-contact-block a {
    display: block;
}

.terms-contact-block strong {
    color: var(--terms-heading);
    font-size: 0.74rem;
}

.terms-contact-block a {
    margin-top: 0.1rem;
    font-size: 0.68rem;
}

/* =========================================================
   CTA
========================================================= */

.terms-cta-section {
    background: #ffffff;
}

.terms-cta-card {
    overflow: hidden;
    padding: 3.25rem;
    color: #ffffff;
    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(20, 184, 166, 0.28),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            var(--terms-primary),
            #4f46e5
        );
    border-radius: 1.4rem;
    box-shadow: 0 28px 65px rgba(37, 99, 235, 0.24);
}

.terms-cta-card > .row > div:first-child > span {
    color: #a5f3fc;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.terms-cta-card h2 {
    max-width: 820px;
    margin: 0.85rem 0 1rem;
    color: #ffffff;
    font-size: clamp(2.05rem, 4vw, 3.35rem);
    font-weight: 850;
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.terms-cta-card p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.8;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1199.98px) {
    .terms-sidebar {
        top: 163px;
    }
}

@media (max-width: 991.98px) {
    .terms-hero-title {
        font-size: 3.6rem;
    }

    .terms-summary-card {
        max-width: 720px;
        margin-inline: auto;
    }

    .terms-sidebar {
        display: none;
    }

    .terms-mobile-nav {
        display: block;
    }

    .terms-section-card {
        scroll-margin-top: 110px;
    }

    .terms-cta-card {
        padding: 2.5rem;
    }
}

@media (max-width: 767.98px) {
    .terms-hero-title {
        font-size: 3rem;
    }

    .terms-cta-card {
        padding: 2rem;
    }
}

@media (max-width: 575.98px) {
    .pb-lg-6 {
        padding-bottom: 4rem !important;
    }

    .terms-hero-title {
        font-size: 2.35rem;
    }

    .terms-summary-card {
        padding: 1.1rem;
        border-radius: 1.05rem;
    }

    .terms-content-section .container {
        padding-top: 3.5rem !important;
        padding-bottom: 3.5rem !important;
    }

    .terms-document-intro,
    .terms-section-card {
        padding: 1rem;
    }

    .terms-document-intro {
        grid-template-columns: 1fr;
    }

    .terms-section-heading {
        grid-template-columns: auto auto 1fr;
    }

    .terms-section-heading h2 {
        font-size: 0.9rem;
    }

    .terms-section-content {
        font-size: 0.76rem;
    }

    .terms-cta-card {
        padding: 1.75rem 1.25rem;
        border-radius: 1.1rem;
    }

    .terms-cta-card h2 {
        font-size: 2rem;
    }
}