/* =========================================================
   terms.css - VisualNex Terms of Use Page Styles
========================================================= */

/* ─────────────────────────────────────────────────────
   TERMS HERO
───────────────────────────────────────────────────── */
.terms-hero {
    position: relative;
    background: linear-gradient(135deg, #f8f9fc 0%, #ffffff 100%);
    padding: 80px 0 60px;
    overflow: hidden;
}

.terms-hero::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 70%;
    height: 150%;
    background: radial-gradient(circle, rgba(252,52,52,0.04) 0%, transparent 70%);
    pointer-events: none;
}

.terms-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.terms-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 20px 0 20px;
    color: var(--text);
}

.terms-hero-sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-soft);
    max-width: 700px;
    margin: 0 auto 20px;
}

.last-updated {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-soft);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 13px;
    color: var(--blue);
    font-weight: 500;
}

.last-updated i {
    font-size: 12px;
}

/* ─────────────────────────────────────────────────────
   TERMS CONTENT WRAPPER
───────────────────────────────────────────────────── */
.terms-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

/* Table of Contents */
.terms-toc {
    position: sticky;
    top: 100px;
    background: var(--gradient-soft);
    border-radius: 20px;
    padding: 24px;
    height: fit-content;
}

.terms-toc h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--text);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}

.terms-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.terms-toc ul li {
    margin-bottom: 12px;
}

.terms-toc ul li a {
    color: var(--text-soft);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
    display: block;
    padding: 4px 0;
}

.terms-toc ul li a:hover {
    color: var(--blue);
    transform: translateX(4px);
}

/* Terms Sections */
.terms-sections {
    flex: 1;
}

.terms-section {
    margin-bottom: 40px;
    scroll-margin-top: 100px;
}

.terms-section:last-child {
    margin-bottom: 0;
}

.terms-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gradient);
    display: inline-block;
}

.terms-section p {
    color: var(--text-soft);
    line-height: 1.8;
    margin-bottom: 16px;
}

.terms-section ul {
    margin: 16px 0 16px 24px;
}

.terms-section ul li {
    color: var(--text-soft);
    line-height: 1.8;
    margin-bottom: 8px;
}

.terms-section ul li {
    color: var(--text-soft);
    line-height: 1.8;
    margin-bottom: 8px;
}

.terms-section ul li i {
    color: var(--blue);
    width: 20px;
    margin-right: 8px;
}

.terms-section strong {
    color: var(--text);
}

/* Contact Info Box */
.contact-info-box {
    background: var(--gradient-soft);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    margin-top: 20px;
}

.contact-info-box p {
    margin-bottom: 12px;
}

.contact-info-box p:last-child {
    margin-bottom: 0;
}

.contact-info-box i {
    width: 24px;
    color: var(--blue);
    margin-right: 8px;
}

.contact-info-box a {
    color: var(--blue);
    text-decoration: none;
    transition: var(--transition);
}

.contact-info-box a:hover {
    color: var(--red);
    text-decoration: underline;
}

/* CTA Section */
.terms-cta {
    padding-bottom: 100px;
}

.terms-cta .cta-box {
    background: linear-gradient(135deg, #f8f9fc 0%, #ffffff 100%);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.terms-cta .cta-box h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.terms-cta .cta-box p {
    color: var(--text-soft);
    margin-bottom: 25px;
}

/* ─────────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────────── */
@media (max-width: 991px) {
    .terms-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px;
    }

    .terms-toc {
        position: static;
        margin-bottom: 20px;
    }

    .terms-toc ul {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
    }

    .terms-toc ul li {
        margin-bottom: 0;
    }

    .terms-toc ul li a {
        background: #fff;
        padding: 6px 14px;
        border-radius: 50px;
        border: 1px solid var(--border);
        font-size: 12px;
    }

    .terms-toc ul li a:hover {
        transform: none;
    }
}

@media (max-width: 767px) {
    .terms-hero {
        padding: 50px 0 40px;
    }

    .terms-wrapper {
        padding: 20px;
    }

    .terms-section h2 {
        font-size: 20px;
    }

    .terms-section ul {
        margin-left: 16px;
    }

    .contact-info-box {
        padding: 18px;
    }

    .terms-cta .cta-box {
        padding: 35px 25px;
    }

    .terms-cta .cta-box h3 {
        font-size: 22px;
    }
}

@media (max-width: 575px) {
    .terms-toc ul {
        flex-direction: column;
        gap: 8px;
    }

    .terms-toc ul li a {
        display: inline-block;
    }
}