/* app/static/css/terms_page.css
   Page-specific styles for the Math Help Terms and Conditions page.
   Scoped exclusively to avoid any global CSS impact.
*/

.terms-page-wrapper {
    max-width: 860px;
    margin: 0 auto;
    padding: 10px 0 30px 0;
}

.terms-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 0.5rem 0;
    line-height: 1.25;
}

.terms-meta {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0 0 2rem 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.terms-section {
    margin-bottom: 2.5rem;
}

.terms-section-heading {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 2rem 0 0.75rem 0;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border-color);
    letter-spacing: -0.01em;
}

.terms-subsection-heading {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 1.25rem 0 0.4rem 0;
}

.terms-page-wrapper p {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-main);
    margin: 0 0 1rem 0;
}

.terms-page-wrapper ul,
.terms-page-wrapper ol {
    margin: 0 0 1.25rem 0;
    padding-left: 1.5rem;
    color: var(--text-main);
}

.terms-page-wrapper li {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.terms-page-wrapper strong {
    color: var(--text-main);
}

.terms-page-wrapper a {
    color: var(--link-color);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.terms-page-wrapper a:hover {
    color: var(--link-hover);
}

.terms-notice-box {
    background-color: var(--bg-sidebar);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--link-color);
    border-radius: 6px;
    padding: 1rem 1.25rem;
    margin: 1.25rem 0;
}

.terms-notice-box p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.terms-notice-box p + p {
    margin-top: 0.5rem;
}

.terms-toc {
    background-color: var(--bg-sidebar);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
}

.terms-toc-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0 0 0.75rem 0;
}

.terms-toc ol {
    margin: 0;
    padding-left: 1.25rem;
    columns: 2;
    column-gap: 2rem;
}

.terms-toc li {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.35rem;
}

.terms-toc a {
    text-decoration: none;
    color: var(--link-color);
}

.terms-toc a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .terms-title {
        font-size: 1.75rem;
    }
    .terms-section-heading {
        font-size: 1.2rem;
    }
    .terms-page-wrapper p,
    .terms-page-wrapper li {
        font-size: 0.95rem;
    }
    .terms-toc ol {
        columns: 1;
    }
}

