body.stitch-entry-page.stitch-legal-page {
    background: var(--entry-bg);
}

body.stitch-entry-page.stitch-legal-page::before,
body.stitch-entry-page.stitch-legal-page .ambient-light {
    display: none;
}

body.stitch-entry-page.stitch-legal-page .legal-page-shell {
    width: 100%;
}

body.stitch-entry-page.stitch-legal-page .legal-document-shell {
    padding: clamp(0px, 2vw, 24px);
    border: 0;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    overflow-wrap: anywhere;
}

html[data-dashboard-theme="light"] body.stitch-entry-page.stitch-legal-page {
    --entry-bg: #e6ecf6;
    --entry-text: #172033;
    --entry-text-muted: #45485f;
    --entry-primary: #4d52b8;
    --brand-white: #172033;
}

html[data-dashboard-theme="light"] .stitch-legal-page .brand-mark-icon {
    filter: brightness(0);
    opacity: 0.85;
}

html[data-dashboard-theme="light"] .stitch-legal-page .space-y-8 > section {
    border-top-color: rgba(54, 59, 94, 0.15);
}

html[data-dashboard-theme="light"] .stitch-legal-page :is(.text-white, .text-slate-300) {
    color: var(--entry-text);
}

html[data-dashboard-theme="light"] .stitch-legal-page :is(.text-slate-400, .text-slate-500) {
    color: var(--entry-text-muted);
}

/* Match the quieter workspace palette without changing policy content. */
html[data-dashboard-theme="light"] body.stitch-entry-page.stitch-legal-page {
    --entry-bg: #f6f7f9;
    --entry-text: #202633;
    --entry-text-muted: #566074;
}
@media (max-width: 700px) {
    body.stitch-entry-page.stitch-legal-page .legal-document-shell { line-height: 1.8; }
    body.stitch-entry-page.stitch-legal-page .space-y-8 > section { padding-top: 1.25rem; margin-top: 1.25rem; }
}
