/**
 * xvancedLegal – Optional minimal frontend stylesheet (&includeCss=`1`)
 * Uses CSS custom properties so host themes can override spacing and colors cleanly.
 */
.xlegal {
    --xlegal-gap: 1.5rem;
    --xlegal-border: rgba(128, 128, 128, 0.25);
    --xlegal-surface: rgba(128, 128, 128, 0.05);
    --xlegal-muted: rgba(100, 100, 100, 0.9);
    --xlegal-error-bg: rgba(185, 28, 28, 0.08);
    --xlegal-error-border: rgba(185, 28, 28, 0.35);
    --xlegal-error-text: #991b1b;
    --xlegal-max-width: 85ch;
    line-height: 1.65;
}

.xlegal__toc {
    margin: 0 0 calc(var(--xlegal-gap) * 1.25);
    padding: 1.15rem 1.35rem;
    border: 1px solid var(--xlegal-border);
    border-radius: 0.375rem;
    background: var(--xlegal-surface);
}

.xlegal__toc-list {
    margin: 0;
    padding-left: 1.5rem;
    list-style-type: decimal;
    columns: 2 20rem;
    column-gap: 2.5rem;
}

.xlegal__toc-group {
    margin-bottom: 0.95rem;
    break-inside: avoid;
    font-weight: 600;
}

.xlegal__toc-group-link {
    color: inherit;
    text-decoration: none;
}

.xlegal__toc-group-link:hover {
    text-decoration: underline;
}

.xlegal__toc-sublist {
    margin: 0.35rem 0 0;
    padding-left: 1.15rem;
    list-style-type: disc;
    font-size: 0.875em;
    font-weight: normal;
    line-height: 1.45;
}

.xlegal__toc-sublist li {
    margin-bottom: 0.25rem;
    break-inside: avoid;
}

.xlegal__toc-sublist a {
    color: var(--xlegal-muted);
    text-decoration: none;
}

.xlegal__toc-sublist a:hover {
    color: inherit;
    text-decoration: underline;
}

.xlegal h2 {
    margin-top: 2em;
}

.xlegal__section {
    max-width: var(--xlegal-max-width, 85ch);
    margin-bottom: var(--xlegal-gap);
    scroll-margin-top: 2rem;
}

.xlegal__provider-card {
    margin-bottom: var(--xlegal-gap);
}

.xlegal__provider-card p {
    margin: 0 0 1em;
}

.xlegal__provider-card p:last-child {
    margin-bottom: 0;
}

.xlegal__agency-bottom {
    max-width: var(--xlegal-max-width, 85ch);
    margin-top: calc(var(--xlegal-gap) * 1.25);
}

.xlegal__agency-bottom p {
    margin: 0;
}

.xlegal__custom {
    max-width: var(--xlegal-max-width, 85ch);
    margin-bottom: var(--xlegal-gap);
}

.xlegal__updated {
    margin-top: calc(var(--xlegal-gap) * 1.5);
    padding-top: 0.75rem;
    border-top: 1px solid var(--xlegal-border);
    font-size: 0.875em;
    color: var(--xlegal-muted);
}

.xlegal__error {
    padding: 0.875rem 1rem;
    border: 1px solid var(--xlegal-error-border);
    border-radius: 0.375rem;
    background: var(--xlegal-error-bg);
    color: var(--xlegal-error-text);
}
