﻿
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    color: #333;
    background: #fff;
    line-height: 1.7;
}

h1, h2, h3, h4, h5 {
    font-family: 'Nunito', sans-serif;
    line-height: 1.3;
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
}

/* ===== NAVBAR ===== */
nav {
    background: #fff;
    border-bottom: 2px solid #f0f0f0;
    padding: 0 5%;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 68px;
}

.logo {
    font-family: 'Nunito', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: #1a4fa0;
}

    .logo span {
        color: #e05c00;
    }

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
}

    .nav-links a {
        color: #555;
        font-size: 0.95rem;
        font-weight: 600;
        transition: color 0.2s;
    }

        .nav-links a:hover {
            color: #1a4fa0;
        }

.nav-btn {
    background: #e05c00;
    color: #fff;
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    font-family: 'Nunito', sans-serif;
    transition: background 0.2s;
}

    .nav-btn:hover {
        background: #c44f00;
    }

/* ===== PAGE HEADER ===== */
.page-header {
    background: linear-gradient(135deg, #1a4fa0 0%, #1e5bc4 60%, #1a4fa0 100%);
    color: #fff;
    padding: 50px 24px 50px;
    text-align: center;
}

    .page-header h1 {
        font-size: clamp(2rem, 4vw, 2.5rem);
        font-weight: 800;
        margin-bottom: 12px;
        line-height: 1.25;
    }

    .page-header p {
        font-size: 1rem;
        color: rgba(255,255,255,0.85);
        max-width: 580px;
        margin: 0 auto;
    }

.last-updated {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 100px;
    margin-top: 16px;
}

/* ===== TERMS CONTENT ===== */
.terms-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 60px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

/* ===== SIDEBAR TABLE OF CONTENTS ===== */
.sidebar-toc {
    position: sticky;
    top: 88px;
    background: #fff;
    border: 1.5px solid #e4ecff;
    border-radius: 12px;
    padding: 24px 20px;
}

.toc-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e4ecff;
}

    .toc-header::before {
        content: '';
        display: inline-block;
        width: 3px;
        height: 18px;
        background: #e05c00;
    }

    .toc-header h2 {
        font-size: 0.875rem;
        font-weight: 700;
        color: #e05c00;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        margin: 0;
    }

.toc-list {
    list-style: none;
}

    .toc-list li {
        margin-bottom: 4px;
    }

        .toc-list li a {
            display: block;
            color: #555;
            font-size: 0.9rem;
            font-weight: 500;
            padding: 10px 14px;
            border-radius: 8px;
            transition: all 0.2s;
            position: relative;
        }

            .toc-list li a:hover {
                background: #f7f9ff;
                color: #1a4fa0;
                padding-left: 18px;
            }

            .toc-list li a.active {
                background: #e8f0ff;
                color: #1a4fa0;
                font-weight: 600;
            }

/* ===== MAIN CONTENT AREA ===== */
.main-content {
    min-width: 0;
}

.intro-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.intro-card {
    background: #fff;
    border: 1.5px solid #e4ecff;
    border-radius: 12px;
    padding: 20px;
}

.intro-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.intro-card-icon {
    font-size: 1.5rem;
}

.intro-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.intro-card p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.intro-text {
    background: #f7f9ff;
    border: 1.5px solid #e4ecff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.8;
}

    .intro-text strong {
        color: #1a4fa0;
        font-weight: 700;
    }

/* ===== SECTIONS ===== */
.terms-section {
    margin-bottom: 24px;
    scroll-margin-top: 88px;
    background: #fff;
    border: 1.5px solid #e4ecff;
    border-radius: 12px;
    overflow: hidden;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    cursor: pointer;
    transition: background 0.2s;
}

    .section-header:hover {
        background: #f7f9ff;
    }

.section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #1a4fa0;
    color: #fff;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 800;
    flex-shrink: 0;
}

.section-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    flex: 1;
}

.section-toggle {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a4fa0;
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.terms-section.collapsed .section-toggle {
    transform: rotate(-90deg);
}

.section-content {
    padding: 0 24px 24px;
    max-height: 5000px;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.terms-section.collapsed .section-content {
    max-height: 0;
    padding: 0 24px;
}

.terms-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 24px 0 12px;
}

.terms-section p {
    color: #555;
    font-size: 0.975rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.terms-section ul {
    margin: 16px 0 24px 0;
    padding-left: 0;
    list-style: none;
}

    .terms-section ul li {
        position: relative;
        padding-left: 32px;
        margin-bottom: 10px;
        color: #555;
        font-size: 0.975rem;
        line-height: 1.7;
    }

        .terms-section ul li::before {
            content: '✓';
            position: absolute;
            left: 0;
            color: #e05c00;
            font-weight: 700;
            font-size: 1.1rem;
        }

/* ===== HIGHLIGHT BOXES ===== */
.info-box {
    background: #f7f9ff;
    border-left: 4px solid #1a4fa0;
    border-radius: 0 10px 10px 0;
    padding: 20px 24px;
    margin: 24px 0;
}

    .info-box.warning {
        background: #fff8f0;
        border-left-color: #e05c00;
    }

    .info-box p {
        margin: 0;
        font-size: 0.95rem;
        color: #333;
    }

    .info-box strong {
        color: #1a4fa0;
        font-weight: 700;
    }

    .info-box.warning strong {
        color: #e05c00;
    }

/* ===== PLATFORMS LIST ===== */
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.platform-item {
    background: #fff;
    border: 1.5px solid #e4ecff;
    border-radius: 10px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #1a4fa0;
    font-size: 0.9rem;
}

.platform-icon {
    font-size: 1.3rem;
}

/* ===== CONTACT BOX ===== */
.contact-box {
    background: #1a4fa0;
    color: #fff;
    border-radius: 14px;
    padding: 36px;
    text-align: center;
    margin-top: 60px;
}

    .contact-box h2 {
        color: #fff;
        font-size: 1.6rem;
        margin-bottom: 12px;
    }

    .contact-box p {
        color: rgba(255,255,255,0.85);
        font-size: 1rem;
        margin-bottom: 24px;
    }

.contact-details {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
}

.contact-icon {
    font-size: 1.2rem;
}

.contact-btn {
    display: inline-block;
    background: #fff;
    color: #1a4fa0;
    padding: 13px 30px;
    border-radius: 7px;
    font-weight: 700;
    font-size: 1rem;
    font-family: 'Nunito', sans-serif;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

    .contact-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    }

/* ===== FOOTER ===== */
footer {
    background: #1a1a2e;
    color: rgba(255,255,255,0.5);
    padding: 28px 5%;
    text-align: center;
    font-size: 0.85rem;
}

    footer .f-logo {
        font-family: 'Nunito', sans-serif;
        font-size: 1.2rem;
        font-weight: 800;
        color: #fff;
        margin-bottom: 8px;
    }

        footer .f-logo span {
            color: #e05c00;
        }

    footer a {
        color: rgba(255,255,255,0.5);
    }

        footer a:hover {
            color: #fff;
        }

/* ===== ANIMATIONS ===== */
.fade-up {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

    .fade-up.in {
        opacity: 1;
        transform: translateY(0);
    }

/* ===== RESPONSIVE ===== */
@media (max-width: 820px) {
    .terms-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .sidebar-toc {
        position: relative;
        top: 0;
    }

    .intro-cards {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .nav-links {
        display: none;
    }

    .platforms-grid {
        grid-template-columns: 1fr;
    }

    .contact-details {
        flex-direction: column;
        gap: 16px;
    }
}

