/* Informational and legal pages: one readable layout with consistent headings, whatever HTML the page body holds. */
.content-page-layout {
    display: grid;
    gap: 24px;
    align-items: start;
}
@media (min-width: 992px) {
    .content-page-layout.has-aside {
        grid-template-columns: minmax(0, 860px) 280px;
        justify-content: center;
        gap: 32px;
    }
}

.site-content-page {
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.75;
    color: #334155;
    padding: 40px 48px;
    border-radius: 16px;
}
.content-page-layout .site-content-page {
    max-width: 860px;
    width: 100%;
}
.content-page-layout:not(.has-aside) .site-content-page {
    margin-inline: auto;
}
.site-content-page :where(h1, h2, h3, h4, h5, h6, p, li, span, a, strong, label, input, textarea, button) {
    font-family: inherit !important;
}
/* Stored bodies sometimes carry inline justify/colour/size styles from the editor. */
.site-content-page :where(div, p, span, li) {
    text-align: start !important;
}
.site-content-page span {
    font-size: inherit !important;
    color: inherit !important;
    background: none !important;
}

.site-content-page :where(h2, h3, h4, h5, h6) {
    color: #0f172a;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -.015em;
    scroll-margin-top: 96px;
}
.site-content-page h2 {
    font-size: 1.375rem;
    margin: 2.5rem 0 1rem;
    padding-top: 2rem;
    border-top: 1px solid #eef0f3;
}
.site-content-page h3 {
    font-size: 1.125rem;
    margin: 1.75rem 0 .625rem;
}
.site-content-page :where(h4, h5, h6) {
    font-size: 1rem;
    margin: 1.5rem 0 .5rem;
}
.site-content-page :where(h2, h3, h4):first-child,
.site-content-page > div > :where(h2, h3, h4):first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}
.site-content-page > :first-child { margin-top: 0; }
.site-content-page > :last-child { margin-bottom: 0; }

.site-content-page p { margin: 0 0 1rem; }
.site-content-page strong { color: #0f172a; font-weight: 600; }
.site-content-page :where(ul, ol) { padding-inline-start: 1.375rem; margin: 0 0 1.25rem; }
.site-content-page li { padding-inline-start: .25rem; }
.site-content-page li + li { margin-top: .4rem; }
.site-content-page ul li::marker { color: rgb(var(--primary_color)); }
.site-content-page ol li::marker { color: rgb(var(--primary_color)); font-weight: 600; }
.site-content-page a {
    color: rgb(var(--primary_color));
    text-decoration: underline;
    text-underline-offset: 3px;
    word-break: break-word;
}
.site-content-page a:hover { text-decoration-thickness: 2px; }
.site-content-page img { max-width: 100%; height: auto; border-radius: 12px; }
.site-content-page table { width: 100%; margin-bottom: 1.25rem; border-collapse: collapse; }
.site-content-page :where(th, td) { padding: .6rem .75rem; border: 1px solid #e5e7eb; }

/* Sidebar: section list + links between legal pages */
.content-page-aside {
    display: grid;
    gap: 16px;
}
.content-page-card {
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 16px;
    padding: 20px;
}
.content-page-card-title {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #64748b;
    margin: 0 0 12px;
}
.content-page-card :where(ol, ul) {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 2px;
}
.content-page-card a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: .875rem;
    line-height: 1.4;
    color: #334155;
    text-decoration: none;
}
.content-page-card a:hover { background: #f8f6f1; color: rgb(var(--primary_color)); }
.content-page-card a.active {
    background: rgba(var(--primary_color), .12);
    color: rgb(var(--primary_color));
    font-weight: 600;
}
.content-page-legal i { width: 14px; text-align: center; color: rgb(var(--primary_color)); }
/* The section list only helps on wide screens; phones get the legal links below the text. */
@media (max-width: 991.98px) {
    .content-page-toc { display: none; }
}

@media (max-width: 767.98px) {
    .site-content-page { padding: 24px 20px; font-size: .9375rem; }
    .site-content-page h2 { font-size: 1.1875rem; margin-top: 2rem; padding-top: 1.5rem; }
    .site-content-page h3 { font-size: 1.0625rem; }
}
