/* ===== Terms & Conditions Page ===== */
.terms-page {
    padding: 40px 0 80px;
    background: linear-gradient(180deg, #f8f9fb 0%, #fff 40%);
    min-height: 70vh;
}

.terms-hero {
    text-align: center;
    padding: 48px 20px 36px;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #1a2a6c, #2d3a8c, #ff6b00);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.terms-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.terms-hero-icon {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
    display: block;
    position: relative;
}

.terms-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
    position: relative;
}

.terms-hero p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin: 0;
    position: relative;
}

/* Table of Contents */
.terms-toc {
    background: #fff;
    border-radius: 16px;
    padding: 28px 32px;
    margin-bottom: 32px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid #eef1f6;
}

.terms-toc-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a2a6c;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.terms-toc-title i {
    color: #ff6b00;
}

.terms-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.terms-toc-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    color: #374151;
    text-decoration: none;
    font-size: 0.92rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.terms-toc-list li a:hover {
    background: #f0f4ff;
    color: #1a2a6c;
    border-color: #dbe4ff;
}

.terms-toc-list li a .toc-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: linear-gradient(135deg, #1a2a6c, #2d3a8c);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* Section Cards */
.terms-section {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid #eef1f6;
    transition: box-shadow 0.3s ease;
    scroll-margin-top: 100px;
}

.terms-section:hover {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.terms-section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f4ff;
}

.terms-section-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1a2a6c, #2d3a8c);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
    flex-shrink: 0;
}

.terms-section-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a2a6c;
    margin: 0;
}

.terms-section-body {
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.85;
}

.terms-section-body p {
    margin: 0 0 12px;
}

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

/* Sub-items */
.terms-sub-item {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    margin: 10px 0;
    background: #f8fafc;
    border-radius: 12px;
    border-left: 3px solid #ff6b00;
}

.terms-sub-num {
    color: #ff6b00;
    font-weight: 700;
    flex-shrink: 0;
    min-width: 36px;
}

.terms-sub-content {
    flex: 1;
}

/* Highlight box */
.terms-highlight {
    background: linear-gradient(135deg, #fff7ed, #fef3c7);
    border: 1px solid #fed7aa;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 16px 0;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.terms-highlight i {
    color: #f59e0b;
    font-size: 1.2rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.terms-highlight-danger {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border-color: #fca5a5;
}

.terms-highlight-danger i {
    color: #ef4444;
}

/* Last updated */
.terms-updated {
    text-align: center;
    color: #9ca3af;
    font-size: 0.85rem;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.terms-updated i {
    margin-right: 6px;
}

/* Back link */
.terms-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1a2a6c;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 24px;
    padding: 8px 0;
    transition: color 0.2s;
}

.terms-back-link:hover {
    color: #ff6b00;
}

/* Responsive */
@media (max-width: 768px) {
    .terms-page {
        padding: 20px 0 60px;
    }

    .terms-hero {
        padding: 32px 16px 28px;
        border-radius: 14px;
        margin-bottom: 28px;
    }

    .terms-hero h1 {
        font-size: 1.5rem;
    }

    .terms-toc {
        padding: 20px;
    }

    .terms-toc-list {
        grid-template-columns: 1fr;
    }

    .terms-section {
        padding: 22px 18px;
        margin-bottom: 16px;
    }

    .terms-section-header h2 {
        font-size: 1.1rem;
    }

    .terms-sub-item {
        padding: 12px;
        flex-direction: column;
        gap: 4px;
    }
}
