/* ==========================================================================
   PAGE: TERMS AND CONDITIONS (terms.css)
   Modern, SEO-Friendly, Glassmorphism & High-Contrast Design
   ========================================================================== */

/* Top Reading Progress Indicator */
#readingProgressBar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-orange), #ff7b00, var(--accent-cyan));
    z-index: 100000;
    transition: width 0.1s linear;
}

/* Hero Header */
.terms-header {
    padding: 5.5rem 0 3rem;
    text-align: center;
    position: relative;
}

.terms-meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 1.25rem;
}

.terms-meta-badge strong {
    color: var(--accent-orange);
}

/* Page Layout Container */
.terms-container {
    padding-bottom: 5.5rem;
}

/* Plain English Summary Callout Banner */
.terms-summary-card {
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.08) 0%, rgba(20, 24, 33, 0.9) 100%);
    border: 1px solid rgba(255, 69, 0, 0.3);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(14px);
}

.terms-summary-card h4 {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
}

.terms-summary-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1rem;
}

.summary-bullet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.85rem;
    margin-top: 1rem;
}

.summary-bullet-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    font-size: 0.88rem;
    color: #e2e8f0;
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}

.summary-bullet-item i {
    color: #10b981;
    font-size: 1.1rem;
    margin-top: 1px;
    flex-shrink: 0;
}

/* Action Controls (Print & Share) */
.terms-action-bar {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.btn-doc-action {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
    padding: 0.45rem 1.1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-doc-action:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

/* Sticky Sidebar Table of Contents */
.terms-toc-card {
    background: var(--bg-card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 1.6rem;
    position: sticky;
    top: 96px;
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.terms-toc-title {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.terms-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.terms-toc-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.86rem;
    padding: 0.42rem 0.75rem;
    border-radius: var(--radius-sm);
    display: block;
    transition: all var(--transition-fast);
    line-height: 1.4;
}

.terms-toc-link:hover,
.terms-toc-link.active {
    color: #ffffff;
    background: rgba(255, 69, 0, 0.12);
    border-left: 2px solid var(--accent-orange);
    padding-left: 0.95rem;
}

/* Legal Content Body */
.terms-content-card {
    background: var(--bg-card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 2.75rem;
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
}

.terms-section-block {
    margin-bottom: 3rem;
    scroll-margin-top: 110px;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terms-section-block:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.terms-section-block h2 {
    font-size: 1.45rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.3px;
}

.terms-section-block h3 {
    font-size: 1.12rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-top: 1.35rem;
    margin-bottom: 0.65rem;
}

.terms-section-block p {
    color: var(--text-secondary);
    font-size: 0.97rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.terms-section-block ul {
    color: var(--text-secondary);
    font-size: 0.96rem;
    line-height: 1.75;
    padding-left: 1.25rem;
    margin-bottom: 1.25rem;
}

.terms-section-block ul li {
    margin-bottom: 0.6rem;
}

.terms-section-block strong {
    color: #ffffff;
}

/* Highlight Box for Critical Clauses */
.terms-callout {
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--accent-orange);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 1.1rem 1.4rem;
    margin: 1.3rem 0;
    color: #cbd5e1;
    font-size: 0.93rem;
    line-height: 1.65;
}

/* Footer Cross-Links Card */
.terms-crosslink-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-top: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.terms-crosslink-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.terms-crosslink-btn {
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all var(--transition-fast);
}

.terms-crosslink-btn:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Print Optimization */
@media print {
    body {
        background: #ffffff !important;
        color: #000000 !important;
    }
    .hh-navbar, .hh-footer, .terms-action-bar, .legal-toc-card, #readingProgressBar, #hhToast {
        display: none !important;
    }
    .terms-content-card, .terms-summary-card {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        color: #000000 !important;
    }
    .terms-section-block h2, .terms-section-block p, .terms-section-block strong {
        color: #000000 !important;
    }
    a {
        text-decoration: underline !important;
        color: #000000 !important;
    }
}
