/* ===================
1. Term and Privacy page
====================== */

/* hero */
.hero-center-bg {
    min-height: 450px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    text-align: center;
    padding: 6rem 1rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.terms-hero-center {
    background: linear-gradient(135deg, #0a1c2b, #1bb1dc, #413e66);
}

/* Dark overlay for readability */
.hero-dark-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
    border-radius: 12px;
}

/* Hero content */
.terms-hero-center .hero-content {
    position: relative;
    z-index: 2;
    padding: 2.5rem 1rem;
}

.terms-hero-center h1 {
    text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.6);
    line-height: 1.2;
}

.terms-hero-center .lead {
    text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.45);
    max-width: 780px;
    margin: 0 auto 1rem;

}

/* Last Updated Badge */
.last-updated-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.45rem 0.85rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #fff;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.5);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(90deg, #1bb1dc, #ff7a18);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Floating Shapes */
.hero-shapes {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(30px);
    opacity: 0.35;
    animation: floatShape 6s ease-in-out infinite alternate;
}

.shape1 {
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, #1bb1dc, #00e0ff);
    top: 10%;
    left: 10%;
}

.shape2 {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #413e66, #8b7fff);
    top: 20%;
    right: 12%;
    animation-delay: 1.5s;
}

.shape3 {
    width: 110px;
    height: 110px;
    background: linear-gradient(135deg, #ff4081, #ff7a18);
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 2.5s;
}

.shape4 {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #ffdc42, #ff7a18);
    bottom: 20%;
    right: 20%;
    animation-delay: 3s;
}

@keyframes floatShape {
    0% {
        transform: translateY(0px) scale(1);
        opacity: 0.35;
    }

    50% {
        transform: translateY(-18px) scale(1.05);
        opacity: 0.55;
    }

    100% {
        transform: translateY(0px) scale(1);
        opacity: 0.35;
    }
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .hero-center-bg {
        padding: 5rem 1rem;
        min-height: auto
    }

    .hero-content {

        padding: 2rem .7rem;
    }

    .last-updated-badge {
        font-size: .75rem;
    }

    .hero-shapes {
        display: none;
    }
}

/* ===== Terms Page Styles ===== */
.terms-page {
    font-family: 'Inter', sans-serif;
    color: #333;
    background: #f5f6fa;
}

/* Sidebar */
.terms-sidebar {
    flex: 0 0 260px;
    background: linear-gradient(180deg, #1bb1dc, #413e66);
    padding: 2rem;
    border-radius: 18px;
    color: #fff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    height: fit-content;
    position: sticky;
    top: 5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.terms-sidebar:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.terms-sidebar h2 {
    font-size: 1.35rem;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.terms-sidebar ul li a {
    display: block;
    padding: 0.45rem 0;
    color: #fff;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: all 0.3s;
    margin-bottom: 0.4rem;
}

.terms-sidebar ul li a:hover,
.terms-sidebar ul li a.active {
    padding-left: 0.6rem;
    color: #ffd166;
    border-left-color: #ffd166;
    text-shadow: 0 0 5px #ffd16688;

}

/* Content */
.terms-content {
    flex: 1;
}

.term-block {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(14px);
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.08);
    border-left: 6px solid #1bb1dc;
    cursor: pointer;
    transition: 0.3s;
}

/* TOC links */
.terms-sidebar ul li a {
    display: block;
    padding: 0.7rem 0;
    color: #fff;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: all 0.3s;
}

.terms-sidebar ul li a:hover,
.terms-sidebar ul li a.active {
    padding-left: 0.6rem;
    color: #ffd166;
    border-left-color: #ffd166;
}


.term-block:hover {
    transform: translateY(-6px);
    border-left-color: #ff7a18;
}

.term-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    gap: .5rem;
}

.term-title {
    font-size: 1.65rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    line-height: 1.3;
}

.term-title i {
    font-size: 1.9rem;
}

.animated-gradient {
    background: linear-gradient(90deg, #1bb1dc, #ff7a18);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientMove 3s infinite alternate;
}

@keyframes gradientMove {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 100% 0;
    }
}

/* Badges */
.badge-important {
    background: #ff3b3b;
}

.badge-info {
    background: #1bb1dc;
}

.badge-warning {
    background: #ff7a18;
}

.badge-important,
.badge-info,
.badge-warning {
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    transition: 0.3s;
}

.badge-important:hover {
    transform: scale(1.05);
}

/* Collapse Content */
.collapse-content {
    display: block;
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.collapse-content ul li {
    margin-bottom: 0.55rem;
}

/* Toggle button (mobile only) */
.toc-toggle {
    background: #ffd166;
    color: #333;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    text-align: left;
    transition: 0.3s;
}

.toc-toggle:hover {
    background: #ffb347;
}

/* Hide contents on mobile until toggled */
.toc-content {
    display: block;
}

/* Responsive */
@media (max-width: 991px) {
    .terms-page .d-flex {
        flex-direction: column;
    }

    .terms-sidebar {
        flex: 1 1 auto;
        width: 100%;
        position: relative;
        margin-bottom: .5rem;
        top: auto;
        border-radius: 12px;
        padding: 1.25rem;
    }

    .toc-content {
        display: none;
    }

    .term-block {
        padding: 1.8rem;
    }

    .term-title {
        font-size: 1.45rem;
    }

    .terms-sidebar.open .toc-content {
        display: block;
        margin-top: 1rem;
    }
}



@media(max-width:576px) {
    .term-block {
        padding: 1.2rem;
        border-radius: 12px;
    }

    .term-title {
        font-size: 1.2rem;
    }

    .collapse-content ul li {
        font-size: 14px;
    }

    .term-title i {
        font-size: 1.4rem;
    }

    .badge-important,
    .badge-info,
    .badge-warning {
        padding: 0.25rem 0.70rem;
        font-size: 0.8rem;
    }

    .terms-sidebar ul li a {
        padding: 0.4rem 0;
    }
}


/* ===================
2. Privacy page extra different vibe
====================== */

.privacy-hero-center {
    background: linear-gradient(135deg, #00c8ff, #413e66, #1bb1dc);
}

.privacy-hero-center .hero-dark-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
    border-radius: 12px;
}

.privacy-hero-center .hero-content {
    position: relative;
    z-index: 2;
    padding: 2.5rem 1rem;
}

.privacy-hero-center .hero-content h1 .gradient-text {
    background: linear-gradient(90deg, #00ffe0, #00c8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.privacy-page .animated-gradient {
    background: linear-gradient(90deg, #0a74da, #5a4fa0, #00c8ff, #00bfa6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientMove 3s infinite alternate;
}

.privacy-page .term-block {
    border-left: 6px solid #5a4fa0;
}

.privacy-page .terms-sidebar {
    background: linear-gradient(135deg, #00c8ff, #5a4fa0, #413e66, #1bb1dc);
}

.privacy-page .terms-sidebar ul li a:hover,
.privacy-page .terms-sidebar ul li a.active {
    color: #00f5e6;
    border-left-color: #00f5e6;
}

.privacy-page .term-block:hover {
    transform: translateY(-6px);
    border-left-color: #00f5e6;
}