/* ============================================================
   TERMS & CONDITIONS PAGE
   ============================================================ */

.terms-page {
    padding-bottom: 40px;
    margin: 100px;
    background: var(--bg-primary);
    position: relative;
}

/* ── Sticky Header ── */
.terms-sticky-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px 0;
    flex-wrap: wrap;
}
.terms-back-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1.5px solid var(--border-color);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    flex-shrink: 0;
    transition: all 0.18s;
}
.terms-back-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.terms-sticky-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    flex: 1;
}
.terms-progress-bar {
    width: 100%;
    height: 2px;
    background: var(--border-light);
    margin-top: 10px;
    border-radius: 2px;
    overflow: hidden;
}
.terms-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), #ff9040);
    border-radius: 2px;
    transition: width 0.1s linear;
}

/* ── Hero Banner ── */
.terms-hero {
    padding: 28px 20px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 0;
}
.terms-hero-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    border: 1.5px solid rgba(255,95,31,0.20);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    color: var(--primary);
}
.terms-hero-title {
    font-size: 20px;
    font-weight: 900;
    color: var(--text-primary);
    margin: 0 0 4px;
    letter-spacing: -0.3px;
}
.terms-hero-sub {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 0 14px;
}
.terms-hero-meta {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.terms-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    font-size: 10px;
    font-weight: 600;
    color: var(--text-secondary);
}
.terms-meta-chip svg { stroke: var(--text-tertiary); }

/* ── Table of Contents ── */
.terms-toc {
    margin: 16px 16px 0;
    background: var(--bg-card);
    border: 1.5px solid var(--border-light);
    border-radius: 14px;
    padding: 14px 16px;
}
.terms-toc-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-tertiary);
    margin-bottom: 10px;
}
.terms-toc-title svg { stroke: var(--primary); }
.terms-toc-list {
    margin: 0;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.terms-toc-list li {
    font-size: 12px;
    color: var(--text-secondary);
}
.terms-toc-list a {
    color: #b0b0a2;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
}
.terms-toc-list a:hover { text-decoration: underline; }

/* ── Content sections ── */
.terms-content {
    padding: 8px 16px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.tc-section {
    background: var(--bg-card);
    border: 1.5px solid var(--border-light);
    border-radius: 14px;
    overflow: hidden;
    margin-top: 12px;
    scroll-margin-top: 70px;        /* offset for sticky header */
}

/* Section header */
.tc-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-secondary);
}
.tc-num {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary) 0%, #e04800 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.tc-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.1px;
}

/* Body text */
.tc-body {
    padding: 16px;
}
.tc-body p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.75;
    margin: 0 0 12px;
}
.tc-body p:last-child { margin-bottom: 0; }

/* Bullet list */
.tc-list {
    margin: 0 0 12px;
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.tc-list li {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.tc-list li::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    margin-top: 6px;
    flex-shrink: 0;
}

/* Note / callout box */
.tc-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255,95,31,0.07);
    border: 1px solid rgba(255,95,31,0.18);
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-primary);
    line-height: 1.6;
}
.tc-note svg { stroke: var(--primary); flex-shrink: 0; margin-top: 1px; }
.tc-note.warning {
    background: rgba(255,152,0,0.08);
    border-color: rgba(255,152,0,0.22);
}
.tc-note.warning svg { stroke: #ff9800; }

/* Contact buttons */
.tc-contact-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
}
.tc-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: 10px;
    background: var(--bg-secondary);
    border: 1.5px solid var(--border-color);
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.18s;
}
.tc-contact-btn svg { stroke: var(--text-secondary); }
.tc-contact-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.tc-contact-btn:hover svg { stroke: var(--primary); }

/* ── Agreement Footer ── */
.terms-agreement-footer {
    margin: 20px 16px 0;
    background: var(--bg-card);
    border: 1.5px solid var(--border-light);
    border-radius: 14px;
    padding: 18px 16px;
    text-align: center;
}
.terms-agree-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(76,175,80,0.10);
    border: 1.5px solid rgba(76,175,80,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: #4caf50;
}
.terms-agreement-footer p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 8px;
}
.terms-version {
    font-size: 10px;
    color: var(--text-tertiary);
    font-weight: 600;
    letter-spacing: 0.5px;
}
@media (max-width: 768px) {
    .terms-page {
        margin: 90px 0 0 0;
    }
}