/* Strong, page-scoped overrides for Terms page - load AFTER main CSS */

/* Reduce global section spacing on this page */
body .terms-page section,
body .terms-page .section {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    scroll-margin-top: 60px !important;
}

/* Section title: much tighter */
body .terms-page .section-title {
    text-align: left !important;
    padding-bottom: 8px !important;
    margin-bottom: 6px !important;
}
body .terms-page .section-title h2 {
    font-size: 30px !important;
    margin: 0 0 6px 0 !important;
    padding-bottom: 0 !important;
}

/* Page header & lead paragraph spacing */
body .terms-page .terms-content h1 {
    font-size: 32px !important;
    margin: 0 0 6px 0 !important;
}
body .terms-page .terms-content .lead {
    margin-bottom: 8px !important;
    color: #6b7280 !important;
}

/* Section headings and paragraphs (tight) */
body .terms-page .terms-content h2 {
    font-size: 17px !important;
    margin: 12px 0 6px 0 !important;
}
body .terms-page .terms-content p {
    margin: 0 0 8px 0 !important;
    line-height: 1.4 !important;
    font-size: 15px !important;
}

/* Lists */
body .terms-page .terms-content ul {
    margin: 6px 0 8px 20px !important;
    padding: 0 !important;
}

/* Shorten Bootstrap utility .mb-4 items on this page */
body .terms-page .mb-4 {
    margin-bottom: 10px !important;
}

/* Reduce container vertical padding */
body .terms-page .container {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}

/* Sidebar / TOC spacing */
body .terms-page .terms-sidebar {
    top: 18px !important;
    max-height: calc(100vh - 36px) !important;
    padding-right: 8px !important;
}
body .terms-page .terms-toc li {
    margin: 4px 0 !important;
}
body .terms-page .terms-toc a {
    padding: 5px 6px !important;
    font-size: 14px !important;
}

/* Make columns sit closer */
body .terms-page .container > .row > [class*="col-"] {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* if some theme selectors still override, raise specificity further */
html body .terms-page .terms-content p { margin-bottom: 8px !important; }
