/* Terms-specific styles (extends style.css) */

.terms-header {
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
}

.back-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--cyan);
}

.terms-hero {
    padding: 80px 0 60px;
    text-align: center;
}

.terms-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.terms-hero .terms-updated {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-top: 12px;
}

.terms-content {
    padding: 0 0 120px;
}

.terms-body {
    max-width: 780px;
    margin: 0 auto;
}

.terms-body h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 48px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.terms-body h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-top: 32px;
    margin-bottom: 12px;
}

.terms-body p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.terms-body ul,
.terms-body ol {
    margin: 12px 0 20px 24px;
}

.terms-body li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 8px;
}

.terms-body a {
    color: var(--cyan);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}

.terms-body a:hover {
    color: var(--text);
}

.terms-body strong {
    color: var(--text);
    font-weight: 600;
}

.terms-toc {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 24px 28px;
    margin-bottom: 48px;
}

.terms-toc-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}

.terms-toc ol {
    margin: 0;
    padding-left: 20px;
}

.terms-toc li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
    line-height: 1.6;
}

.terms-toc a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.terms-toc a:hover {
    color: var(--cyan);
}

@media (max-width: 768px) {
    .terms-hero {
        padding: 60px 0 40px;
    }

    .terms-body h2 {
        font-size: 1.15rem;
        margin-top: 36px;
    }
}
