.terms-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
}

/* Header */
.terms-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}
.terms-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 1.5rem;
}
.terms-header h1 {
     font-family: var(--bsuite-heading-font);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
}
.terms-header h1 .highlight {
    background: var(--gradient-green);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.terms-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 1.5rem;
    line-height: 1.7;
}
.terms-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.meta-item strong {
    color: var(--text-secondary);
}

/* Key Terms Banner */
.key-terms-banner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 3rem;
}
.key-term-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
}
.key-term-card:hover {
    border-color: rgba(74, 222, 128, 0.3);
    transform: translateY(-4px);
}
.key-term-icon {
    width: 48px;
    height: 48px;
    background: rgba(74, 222, 128, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 0.75rem;
}
.key-term-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.key-term-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

/* Agreement Notice */
.agreement-notice {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(249, 115, 22, 0.08);
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: 16px;
    margin-bottom: 3rem;
}
.notice-icon {
    width: 48px;
    height: 48px;
    background: rgba(249, 115, 22, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.notice-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--warning);
}
.notice-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* Table of Contents */
.toc {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    margin-bottom: 3rem;
}
.toc-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-muted);
}
.toc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem 2rem;
}
.toc-grid a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.3s;
}
.toc-grid a:hover {
    background: rgba(74, 222, 128, 0.1);
    color: var(--accent);
}
.toc-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--bg-secondary);
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent);
}

/* Sections */
.terms-section {
    margin-bottom: 3rem;
    scroll-margin-top: 100px;
}
.terms-section h2 {
     font-family: var(--bsuite-heading-font);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}
.section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--accent);
}
.terms-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
    color: var(--text);
}
.terms-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}
.terms-section ul,
.terms-section ol {
    color: var(--text-secondary);
    margin: 1rem 0 1rem 1.5rem;
    line-height: 1.8;
}
.terms-section li {
    margin-bottom: 0.5rem;
}
.terms-section li strong {
    color: var(--text);
}

/* Info Box */
.info-box {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(74, 222, 128, 0.05);
    border: 1px solid rgba(74, 222, 128, 0.15);
    border-radius: 16px;
    margin: 1.5rem 0;
}
.info-box.warning {
    background: rgba(249, 115, 22, 0.08);
    border-color: rgba(249, 115, 22, 0.2);
}
.info-box.blue {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.2);
}
.info-box.danger {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.2);
}
.info-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}
.info-content strong {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--text);
}
.info-content p {
    font-size: 0.9rem;
    margin: 0;
}

/* Permitted/Prohibited Grid */
.usage-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0;
}
.usage-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.5rem;
}
.usage-card.permitted {
    border-color: rgba(74, 222, 128, 0.2);
}
.usage-card.prohibited {
    border-color: rgba(239, 68, 68, 0.2);
}
.usage-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}
.usage-header-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}
.usage-card.permitted .usage-header-icon {
    background: rgba(74, 222, 128, 0.15);
}
.usage-card.prohibited .usage-header-icon {
    background: rgba(239, 68, 68, 0.15);
}
.usage-header h4 {
    font-size: 1rem;
    font-weight: 600;
}
.usage-card.permitted .usage-header h4 {
    color: var(--success);
}
.usage-card.prohibited .usage-header h4 {
    color: var(--danger);
}
.usage-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.usage-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
    line-height: 1.5;
}
.usage-list li::before {
    content: "✓";
    color: var(--success);
    font-weight: 700;
    flex-shrink: 0;
}
.usage-card.prohibited .usage-list li::before {
    content: "✕";
    color: var(--danger);
}

/* Subscription Tiers */
.tiers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin: 1.5rem 0;
}
.tier-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.75rem;
    position: relative;
    transition: all 0.3s;
}
.tier-card:hover {
    border-color: rgba(74, 222, 128, 0.2);
}
.tier-card.featured {
    border-color: rgba(74, 222, 128, 0.3);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(74, 222, 128, 0.05) 100%);
}
.tier-name {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 0.5rem;
}
.tier-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.tier-card > p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.tier-features {
    list-style: none;
    margin: 0;
    padding: 0;
}
.tier-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}
.tier-features li::before {
    content: "✓";
    color: var(--accent);
    font-weight: 700;
}

/* Liability Table */
.liability-table-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    margin: 1.5rem 0;
}
.liability-table {
    width: 100%;
    border-collapse: collapse;
}
.liability-table th,
.liability-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.liability-table th {
    background: var(--bg-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}
.liability-table tr:last-child td {
    border-bottom: none;
}
.liability-table td {
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.liability-table td:first-child {
    font-weight: 600;
    color: var(--text);
}
.liability-table tr:hover td {
    background: rgba(74, 222, 128, 0.03);
}
.cap-badge {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    background: rgba(74, 222, 128, 0.1);
    border-radius: 6px;
    font-weight: 600;
    color: var(--accent);
    font-size: 0.85rem;
}

/* Termination Grid */
.termination-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}
.termination-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
}
.termination-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.termination-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}
.termination-card h4 {
    font-size: 1rem;
    font-weight: 600;
}
.termination-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

/* Governing Law */
.jurisdiction-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}
.jurisdiction-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
}
.jurisdiction-flag {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}
.jurisdiction-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}
.jurisdiction-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 1.5rem;
}
.contact-card {
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s;
}
.contact-card:hover {
    border-color: rgba(74, 222, 128, 0.2);
}
.contact-icon {
    width: 56px;
    height: 56px;
    background: rgba(74, 222, 128, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}
.contact-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}
.contact-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}
.contact-card a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}
.contact-card a:hover {
    text-decoration: underline;
}
.contact-card address {
    font-style: normal;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 1024px) {
    .key-terms-banner {
        grid-template-columns: repeat(2, 1fr);
    }
    .tiers-grid {
        grid-template-columns: 1fr;
    }
    .jurisdiction-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .terms-page {
        padding: 6rem 1rem 3rem;
    }
    .toc-grid {
        grid-template-columns: 1fr;
    }
    .key-terms-banner {
        grid-template-columns: 1fr;
    }
    .usage-grid {
        grid-template-columns: 1fr;
    }
    .termination-grid {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .terms-meta {
        gap: 1rem;
    }
    .liability-table-wrapper {
        overflow-x: auto;
    }
    .liability-table {
        min-width: 500px;
    }
    .agreement-notice {
        flex-direction: column;
        text-align: center;
    }
    .notice-icon {
        margin: 0 auto;
    }
}
