/* CGM legal documents only. Shared header/footer, consent UI and Rigby are outside this scope. */
.cgm-legal-page #theme-main {
    background: #fafbf9;
    color: #303030;
}
.cgm-legal-page #theme-main > section > .container {
    max-width: 860px;
    padding-inline: 20px;
}
.cgm-legal-page #theme-main > section > .container > .row {
    --bs-gutter-x: 0;
    margin-inline: 0;
}
.cgm-legal-page #theme-main > section > .container > .row > .col-md-8 {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    padding-inline: 0;
}
.cgm-legal-page #theme-main .lc-block {
    padding-top: 256px !important;
    padding-bottom: 80px !important;
}
.cgm-legal-page #theme-main h1 {
    font-size: 36px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -.02em;
    margin: 0 0 24px;
    overflow-wrap: anywhere;
}
.cgm-legal-page #theme-main .cgm-legal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    padding-bottom: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid #dfe5d8;
    font-size: 16px;
    line-height: 1.6;
}
.cgm-legal-page #theme-main .cgm-legal-nav a {
    color: var(--bs-secondary, #6c3783);
    text-decoration: none;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
}
.cgm-legal-page #theme-main .cgm-legal-nav a[aria-current="page"] {
    color: #303030;
    font-weight: 600;
    border-bottom-color: var(--bs-primary, #8eb747);
}
.cgm-legal-page #theme-main .live-shortcode {
    margin-top: 0 !important;
}
.cgm-legal-page #theme-main #cmplz-document {
    max-width: none;
    width: 100%;
    font-family: inherit;
    font-size: 17.5px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}
.cgm-legal-page #theme-main #cmplz-document :is(p, li, td, th, a, label, .cmplz-subtitle) {
    font-size: inherit;
    line-height: inherit;
}
.cgm-legal-page #theme-main #cmplz-document p {
    margin: 0 0 1.15em;
}
.cgm-legal-page #theme-main #cmplz-document > p:empty,
.cgm-legal-page #theme-main #cmplz-document > p:first-child > br {
    display: none;
}
.cgm-legal-page #theme-main #cmplz-document :is(h2, h3, h4, h5, h6) {
    color: #303030;
    font-family: inherit;
    font-weight: 600;
    line-height: 1.4;
    text-transform: none;
    letter-spacing: normal;
    padding-bottom: 0;
}
.cgm-legal-page #theme-main #cmplz-document h2 {
    font-size: 25px;
    margin: 2em 0 .75em;
}
.cgm-legal-page #theme-main #cmplz-document h3 {
    font-size: 20px;
    margin: 1.5em 0 .65em;
}
.cgm-legal-page #theme-main #cmplz-document :is(h4, h5, h6) {
    font-size: 18px;
    margin: 1.25em 0 .5em;
}
.cgm-legal-page #theme-main #cmplz-document :is(ul, ol) {
    padding-left: 1.5em;
    margin: .5em 0 1.25em;
}
.cgm-legal-page #theme-main #cmplz-document li {
    margin-bottom: .45em;
}
.cgm-legal-page #theme-main #cmplz-document .cmplz-subtitle {
    font-weight: 600;
    margin-top: 1.5em;
}
.cgm-legal-page #theme-main #cmplz-document .cmplz-indent {
    margin-left: 1.25em;
}
.cgm-legal-page #theme-main #cmplz-document a {
    color: var(--bs-secondary, #6c3783);
    text-underline-offset: .2em;
    overflow-wrap: anywhere;
}
.cgm-legal-page #theme-main :is(.cgm-legal-nav a, #cmplz-document a):hover {
    color: #4b265b;
    text-decoration: underline;
}
.cgm-legal-page #theme-main :is(.cgm-legal-nav a, #cmplz-document a, #cmplz-document summary):focus-visible {
    outline: 2px solid var(--bs-secondary, #6c3783);
    outline-offset: 4px;
}
.cgm-legal-page #theme-main #cmplz-document details {
    margin: 1em 0;
    border: 1px solid #dfe5d8;
    border-radius: 8px;
    background: #fff;
}
.cgm-legal-page #theme-main #cmplz-document details summary {
    padding: 14px 16px;
    margin: 0;
    border-radius: 8px;
    background: #f0f3ec;
    min-height: 48px;
}
.cgm-legal-page #theme-main #cmplz-document details summary :is(h3, p) {
    font-size: 17.5px;
    line-height: 1.55;
    margin: 0;
}
.cgm-legal-page #theme-main #cmplz-document details > h3 {
    padding-inline: 16px;
}
.cgm-legal-page #theme-main #cmplz-document .cookies-per-purpose {
    min-width: 0;
}
.cgm-legal-page #theme-main #cmplz-document .cookies-per-purpose > div {
    min-width: 0;
    overflow-wrap: anywhere;
}
.cgm-legal-page #theme-main #cmplz-document table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    margin: 1em 0;
}
.cgm-legal-page #theme-main #cmplz-document :is(td, th) {
    padding: .65em;
    vertical-align: top;
    overflow-wrap: anywhere;
    border-bottom: 1px solid #dfe5d8;
}
@media (max-width: 767px) {
    .cgm-legal-page #theme-main .lc-block {padding-top: 224px !important;padding-bottom: 48px !important;}
    .cgm-legal-page #theme-main h1 {font-size: 30px;margin-bottom: 20px;}
    .cgm-legal-page #theme-main #cmplz-document {font-size: 16.5px;}
    .cgm-legal-page #theme-main #cmplz-document h2 {font-size: 22px;}
    .cgm-legal-page #theme-main #cmplz-document h3 {font-size: 19px;}
    .cgm-legal-page #theme-main #cmplz-document details summary :is(h3, p) {font-size: 16.5px;}
    .cgm-legal-page #theme-main #cmplz-document .cmplz-dropdown-cookiepolicy summary div {
        grid-template: "heading chevron" "paragraph chevron" "label checkbox";
        grid-template-columns: minmax(0, 1fr) 25px;
        gap: 6px 10px;
    }
    .cgm-legal-page #theme-main #cmplz-document .cmplz-dropdown-cookiepolicy summary p {text-align: left;}
    .cgm-legal-page #theme-main #cmplz-document .cookies-per-purpose {grid-template-columns: minmax(80px, 1fr) minmax(0, 2fr);}
}
