/* ============================================
   Terms Page Styles
   ============================================ */
.terms-nav {
    position: sticky;
    top: 100px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.terms-nav h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.terms-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.terms-nav-links li {
    margin-bottom: 0.5rem;
}

.terms-nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    display: block;
    border-radius: 8px;
    transition: var(--transition);
}

.terms-nav-links a:hover,
.terms-nav-links a.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
}

.terms-section {
    scroll-margin-top: 120px;
    margin-bottom: 3rem;
}

.terms-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.terms-section-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.terms-section-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.terms-item {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
    max-width: 100%;
}

.terms-item:hover {
    background: var(--bg-card-hover);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateX(4px);
}

.terms-item-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.terms-item-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--bg-gradient);
    border-radius: 2px;
}

.terms-item-content {
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0;
}

.terms-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
    align-items: start;
}

.terms-content {
    max-width: 100%;
}

.contact-box {
    background: var(--bg-gradient);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    text-align: center;
    color: white;
    margin-top: 3rem;
}

.contact-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.contact-box p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin: 0;
}

.contact-box a {
    color: white;
    text-decoration: underline;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .terms-nav {
        position: relative;
        top: 0;
        margin-bottom: 2rem;
    }

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

    .terms-layout {
        grid-template-columns: 1fr !important;
    }

    .terms-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .terms-section-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .terms-section-title {
        font-size: 1.75rem;
    }

    .terms-item {
        padding: 1.25rem;
    }

    .terms-item-title {
        font-size: 1.125rem;
    }

    .terms-item-content {
        font-size: 0.95rem;
    }

    .contact-box {
        padding: 2rem 1.5rem;
    }

    .contact-box h3 {
        font-size: 1.25rem;
    }

    .terms-nav-links a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .terms-item {
        padding: 1rem;
    }

    .terms-item-title {
        font-size: 1rem;
    }

    .terms-item-content {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .terms-section-title {
        font-size: 1.5rem;
    }

    .contact-box {
        padding: 1.5rem 1rem;
    }

    .contact-box h3 {
        font-size: 1.125rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .terms-nav {
        padding: 1rem;
    }

    .terms-nav h3 {
        font-size: 0.9rem;
    }

    .terms-nav-links a {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
    }
}

