.lp-legal-document-link {
    color: #1e3a8a;
    font-weight: 900;
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 2px;
    cursor: pointer;
}
.lp-legal-document-link:hover { color: #172554; }
.lp-legal-document-link:focus-visible { outline: 3px solid rgba(30,58,138,.22); outline-offset: 2px; border-radius: 4px; }
.lp-legal-inline-version { font-size: .78em; opacity: .72; white-space: nowrap; }
.lp-legal-document-unavailable { color: #b91c1c; font-weight: 900; text-decoration: underline dotted; text-underline-offset: 2px; }

.lp-legal-dialog {
    width: min(920px, calc(100vw - 28px));
    max-height: min(86vh, 900px);
    padding: 0;
    border: 0;
    border-radius: 22px;
    box-shadow: 0 30px 90px rgba(15,23,42,.28);
    color: #0f172a;
    background: #fff;
}
.lp-legal-dialog::backdrop { background: rgba(15,23,42,.62); backdrop-filter: blur(3px); }
.lp-legal-dialog-shell { display: flex; flex-direction: column; max-height: min(86vh, 900px); }
.lp-legal-dialog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-bottom: 1px solid #e2e8f0; background: #f8fafc; }
.lp-legal-dialog-kicker { color: #64748b; font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.lp-legal-dialog-close { appearance: none !important; width: 38px !important; height: 38px !important; padding: 0 !important; margin: 0 !important; border: 1px solid #cbd5e1 !important; border-radius: 999px !important; background: #fff !important; color: #334155 !important; font: 700 25px/1 system-ui, sans-serif !important; cursor: pointer !important; box-shadow: none !important; }
.lp-legal-dialog-close:hover { background: #f1f5f9 !important; color: #0f172a !important; }
.lp-legal-dialog-content { overflow-y: auto; overscroll-behavior: contain; padding: 26px; }
.lp-legal-loading { padding: 54px 20px; text-align: center; color: #64748b; font-weight: 800; }
.lp-legal-modal-heading { padding-bottom: 20px; border-bottom: 1px solid #e2e8f0; }
.lp-legal-modal-heading h2 { margin: 8px 0 6px !important; color: #0f172a !important; font-size: clamp(24px, 4vw, 34px) !important; line-height: 1.1 !important; letter-spacing: -.035em !important; }
.lp-legal-modal-heading p { margin: 0 !important; color: #64748b !important; font-size: 14px !important; }
.lp-legal-modal-prose { padding-top: 22px; }
.lp-legal-modal-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 28px; padding-top: 20px; border-top: 1px solid #e2e8f0; }
.lp-legal-modal-error { padding: 28px 10px; }
.lp-legal-modal-error h2 { margin: 0 0 8px; }
.lp-legal-modal-error p { color: #64748b; margin: 0 0 18px; }
.lp-legal-hash-short { color: #64748b; font: 700 12px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.lp-legal-page-body { margin: 0; min-height: 100vh; background: #f8fafc; color: #0f172a; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.lp-legal-page-container { width: min(1040px, calc(100% - 36px)); margin-inline: auto; }
.lp-legal-site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); border-bottom: 1px solid #e2e8f0; }
.lp-legal-header-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.lp-legal-brand { color: #0f172a; font-size: 18px; font-weight: 950; text-decoration: none; }
.lp-legal-index-link { color: #1e3a8a; font-weight: 850; text-decoration: none; }
.lp-legal-main { padding-block: 52px 72px; }
.lp-legal-hero { max-width: 760px; margin-bottom: 34px; }
.lp-legal-eyebrow, .lp-legal-status { display: inline-flex; align-items: center; border-radius: 999px; background: #eff6ff; color: #1e3a8a; padding: 6px 10px; font-size: 12px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.lp-legal-hero h1, .lp-legal-document-heading h1 { margin: 12px 0 12px; font-size: clamp(36px, 7vw, 58px); line-height: 1; letter-spacing: -.055em; }
.lp-legal-hero p { color: #64748b; font-size: 17px; line-height: 1.7; }
.lp-legal-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.lp-legal-card, .lp-legal-document-page, .lp-legal-empty { background: #fff; border: 1px solid #e2e8f0; border-radius: 24px; box-shadow: 0 18px 55px rgba(15,23,42,.06); }
.lp-legal-card { padding: 24px; display: flex; flex-direction: column; }
.lp-legal-card h2 { margin: 14px 0 8px; font-size: 23px; letter-spacing: -.025em; }
.lp-legal-card p { margin: 0; color: #64748b; line-height: 1.6; flex: 1; }
.lp-legal-card-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 20px 0; color: #475569; font-size: 13px; font-weight: 750; }
.lp-legal-primary-link { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 14px; border-radius: 11px; background: #1e3a8a; color: #fff !important; font-weight: 900; text-decoration: none !important; }
.lp-legal-primary-link:hover { background: #172554; }
.lp-legal-document-page { padding: clamp(24px, 5vw, 52px); }
.lp-legal-document-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding-bottom: 28px; border-bottom: 1px solid #e2e8f0; }
.lp-legal-version-line { margin: 0; color: #64748b; font-weight: 700; }
.lp-legal-print-button { flex: 0 0 auto; border: 1px solid #cbd5e1; border-radius: 12px; background: #fff; color: #1e293b; padding: 11px 14px; font-weight: 850; cursor: pointer; }
.lp-legal-print-button:hover { background: #f8fafc; }
.lp-legal-prose { color: #1e293b; font-size: 16px; line-height: 1.75; overflow-wrap: anywhere; }
.lp-legal-prose h1, .lp-legal-prose h2, .lp-legal-prose h3, .lp-legal-prose h4 { color: #0f172a; line-height: 1.2; letter-spacing: -.02em; margin: 1.6em 0 .65em; }
.lp-legal-prose h2 { font-size: 1.65em; }
.lp-legal-prose h3 { font-size: 1.3em; }
.lp-legal-prose p { margin: 1em 0; }
.lp-legal-prose ul, .lp-legal-prose ol { padding-left: 1.5em; }
.lp-legal-prose li { margin: .4em 0; }
.lp-legal-prose a { color: #1e3a8a; font-weight: 750; }
.lp-legal-prose blockquote { margin: 1.4em 0; padding: 12px 18px; border-left: 4px solid #93c5fd; background: #f8fafc; }
.lp-legal-prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.lp-legal-prose th, .lp-legal-prose td { border: 1px solid #cbd5e1; padding: 9px 11px; text-align: left; }
.lp-legal-prose img { max-width: 100%; height: auto; }
.lp-legal-integrity { margin-top: 34px; padding: 16px 18px; border: 1px solid #e2e8f0; border-radius: 14px; background: #f8fafc; }
.lp-legal-integrity summary { font-weight: 900; cursor: pointer; }
.lp-legal-integrity p { color: #64748b; line-height: 1.55; }
.lp-legal-integrity code { display: block; max-width: 100%; overflow-x: auto; padding: 10px; border-radius: 8px; background: #e2e8f0; font-size: 12px; }
.lp-legal-page-actions { margin-top: 28px; }
.lp-legal-page-actions a { color: #1e3a8a; font-weight: 900; }
.lp-legal-empty { padding: 32px; }
.lp-legal-empty h2 { margin-top: 0; }
.lp-legal-empty p { color: #64748b; margin-bottom: 0; }
.lp-legal-footer { padding-block: 24px 38px; border-top: 1px solid #e2e8f0; display: flex; justify-content: space-between; gap: 20px; color: #64748b; font-size: 13px; }
.lp-legal-footer a { color: #1e3a8a; font-weight: 800; }

@media (max-width: 680px) {
    .lp-legal-dialog-content { padding: 20px; }
    .lp-legal-main { padding-block: 34px 52px; }
    .lp-legal-document-heading { flex-direction: column; }
    .lp-legal-print-button { width: 100%; }
    .lp-legal-footer { flex-direction: column; }
}

@media print {
    .lp-legal-site-header, .lp-legal-footer, .lp-legal-print-button, .lp-legal-page-actions { display: none !important; }
    .lp-legal-page-body { background: #fff; }
    .lp-legal-main { padding: 0; }
    .lp-legal-page-container { width: 100%; }
    .lp-legal-document-page { border: 0; box-shadow: none; padding: 0; }
    .lp-legal-integrity { break-inside: avoid; }
}

/* --------------------------------------------------------------------------
   D.6.1 · Página pública del catálogo legal (aislada de modales y consentimientos)
   Diseño oficial: #010736, #ABD2FA, #22396F, #FCF1D0 y #FFFFFF.
   -------------------------------------------------------------------------- */
.lp-legal-page-body {
    background: radial-gradient(circle at 90% 8%, rgba(171,210,250,.25), transparent 27%), #f4f7fd;
    color: #010736;
}
.lp-legal-page-shell { min-height: 100vh; display: flex; flex-direction: column; }
.lp-legal-page-container { width: min(1180px, calc(100% - 40px)); }
/* D.6.1 FIX2: la navbar debe usar EXACTAMENTE el ancho del contenedor
   del hero y las tarjetas, sin sumar padding/borde a ese ancho. La altura y
   los espacios siguen la proporción del encabezado público del portal. */
.lp-legal-site-header {
    position: relative; top: auto; padding: 12px 0 0;
    border: 0; background: transparent; backdrop-filter: none;
}
.lp-legal-header-inner {
    box-sizing: border-box;
    min-height: 70px; padding: 9px 10px 9px 17px; border-radius: 22px;
    background: #fff; border: 1px solid #e2e9f5;
    box-shadow: 0 12px 32px rgba(1,7,54,.08);
}
.lp-legal-brand { display: inline-flex; align-items: center; line-height: 1; border-radius: 10px; }
.lp-legal-brand img { display: block; width: 96px; height: 50px; object-fit: contain; }
.lp-legal-top-nav { display: flex; align-items: center; gap: 9px; }
.lp-legal-nav-link, .lp-legal-index-link {
    display: inline-flex; min-height: 40px; align-items: center; justify-content: center;
    padding: 8px 16px; border-radius: 999px; font-size: 13px;
    color: #22396F; font-weight: 800; text-decoration: none;
    transition: background-color .16s ease, color .16s ease;
}
.lp-legal-nav-link:hover, .lp-legal-index-link:hover { background: #edf4fd; color: #010736; }
.lp-legal-index-link[aria-current="page"] { background: #010736; color: #fff; }
.lp-legal-index-link[aria-current="page"]:hover { background: #22396F; color: #fff; }
.lp-legal-skip-link {
    position: absolute; left: 16px; top: -100px; z-index: 100;
    background: #fff; color: #010736; padding: 11px 16px;
    border: 2px solid #22396F; border-radius: 12px; font-weight: 800;
}
.lp-legal-skip-link:focus { top: 9px; }
.lp-legal-page-body :is(a,button,summary):focus-visible { outline: 3px solid #568fdb; outline-offset: 3px; }
.lp-legal-main { flex: 1; padding-block: 24px 64px; }
.lp-legal-hero {
    position: relative; isolation: isolate; overflow: hidden;
    display: flex; align-items: center; justify-content: space-between; gap: 40px;
    max-width: none; min-height: 260px; padding: clamp(26px, 4.3vw, 52px);
    margin: 0 0 38px; border-radius: 26px;
    background: linear-gradient(112deg,#010736 0%,#132657 67%,#22396F 100%);
    color: #fff; box-shadow: 0 20px 48px rgba(1,7,54,.13);
}
.lp-legal-hero::after {
    content: ''; position: absolute; z-index: -1; width: 290px; height: 290px;
    border: 36px solid rgba(171,210,250,.075); border-radius: 50%;
    right: -110px; bottom: -185px; pointer-events: none;
}
.lp-legal-hero-copy { max-width: 700px; }
.lp-legal-hero .lp-legal-eyebrow {
    display: inline-flex; gap: 8px; align-items: center;
    background: rgba(171,210,250,.13); color: #C8E4FF;
    border: 1px solid rgba(171,210,250,.24); font-size: 11px;
    padding: 8px 12px; letter-spacing: .09em;
}
.lp-legal-hero h1 { max-width: 690px; margin: 15px 0 13px; font-size: clamp(32px, 4.8vw, 52px); line-height: 1.09; letter-spacing: -.045em; }
.lp-legal-hero p { margin: 0; color: #D9E5FF; font-size: 15px; line-height: 1.7; }
.lp-legal-hero-count { display: inline-flex; align-items: center; gap: 8px; margin-top: 17px; font-size: 12px; color: #ABD2FA; font-weight: 800; }
.lp-legal-hero-count::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #FCF1D0; }
.lp-legal-hero-art {
    width: 190px; height: 185px; flex: 0 0 190px; display: grid; place-items: center;
    border: 1px solid rgba(171,210,250,.22); border-radius: 22px;
    background: rgba(255,255,255,.07);
}
.lp-legal-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin: 0 3px 20px; }
.lp-legal-section-heading h2 { margin: 4px 0 0; font-size: clamp(23px, 2.8vw, 31px); letter-spacing: -.035em; }
.lp-legal-section-eyebrow { color: #22396F; font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.lp-legal-section-heading p { max-width: 340px; margin: 0; color: #526282; font-size: 13px; line-height: 1.6; }
.lp-legal-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.lp-legal-card {
    min-width: 0; padding: 21px; border: 1px solid #dce5f5; border-radius: 20px;
    box-shadow: 0 12px 26px rgba(1,7,54,.04);
    transition: border-color .18s ease, box-shadow .18s ease;
}
.lp-legal-card:hover { border-color: #ABD2FA; box-shadow: 0 16px 35px rgba(1,7,54,.085); }
.lp-legal-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lp-legal-card-icon { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 13px; background: #EDF4FF; color: #22396F; }
.lp-legal-card-icon svg { width: 24px; height: 24px; }
.lp-legal-card .lp-legal-status { display: inline-flex; gap: 7px; align-items: center; font-size: 10px; letter-spacing: .075em; color: #22396F; background: #EDF4FF; }
.lp-legal-status-dot { width: 6px; height: 6px; border-radius: 50%; background: #22396F; }
.lp-legal-card-content { flex: 1; padding-top: 12px; }
.lp-legal-card-content h3 { margin: 0 0 9px; color: #010736; font-size: 21px; line-height: 1.3; letter-spacing: -.035em; }
.lp-legal-card-content p { font-size: 13px; line-height: 1.7; color: #526282; }
.lp-legal-card-bottom { padding-top: 21px; }
.lp-legal-card-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding: 15px 0;
    margin: 0 0 14px; border-top: 1px solid #e6edf8; color: #22396F; }
.lp-legal-card-meta span { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.lp-legal-card-meta small { font-size: 11px; color: #667798; font-weight: 650; }
.lp-legal-card-meta strong { font-size: 13px; color: #010736; font-weight: 850; overflow-wrap: anywhere; }
.lp-legal-page-body .lp-legal-card .lp-legal-primary-link {
    display: inline-flex; gap: 10px; width: 100%; box-sizing: border-box; min-height: 46px;
    background: #22396F; color: #fff; font-size: 12px;
    border-radius: 11px; box-shadow: 0 4px 12px rgba(34,57,111,.14);
}
.lp-legal-page-body .lp-legal-card .lp-legal-primary-link:hover { background: #010736; }
.lp-legal-empty { padding: 44px 30px; text-align: center; border-color: #dce5f5; }
.lp-legal-empty-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #22396F; background: #edf4ff; font-weight: 900; }
.lp-legal-empty h3 { margin: 16px 0 8px; font-size: 23px; }
.lp-legal-empty p { margin: 0; }
.lp-legal-index-note { margin: 19px 3px 0; color: #667798; font-size: 12px; line-height: 1.6; }
.lp-legal-footer {
    align-items: center; padding-block: 21px 31px;
    border-color: #dce5f5; color: #526282;
}
.lp-legal-footer-brand { display: flex; flex-direction: column; gap: 3px; }
.lp-legal-footer-name { font-weight: 900; color: #010736; font-size: 13px; }
.lp-legal-footer-note { font-size: 11px; }
.lp-legal-footer-links { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.lp-legal-footer-links a { font-size: 12px; color: #22396F; font-weight: 800; text-decoration: none; }
.lp-legal-footer-links a:hover { text-decoration: underline; }
/* La lectura individual y los modales siguen con sus reglas originales hasta D.6.2. */
@media (max-width: 940px) {
    .lp-legal-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lp-legal-section-heading p { display: none; }
    .lp-legal-hero-art { flex-basis: 138px; width: 138px; }
}
@media (max-width: 620px) {
    .lp-legal-page-container { width: min(1180px, calc(100% - 24px)); }
    .lp-legal-site-header { padding-top: 8px; }
    .lp-legal-header-inner { min-height: 64px; padding: 7px 8px 7px 13px; border-radius: 19px; }
    .lp-legal-brand img { width: 72px; height: 46px; }
    .lp-legal-top-nav { gap: 2px; }
    .lp-legal-nav-link, .lp-legal-index-link { font-size: 11px; padding: 8px 10px; }
    .lp-legal-main { padding-block: 14px 40px; }
    .lp-legal-hero { padding: 26px 20px; border-radius: 19px; min-height: 0; margin-bottom: 28px; }
    .lp-legal-hero-art { display: none; }
    .lp-legal-hero h1 { font-size: clamp(30px, 8.2vw, 40px); }
    .lp-legal-hero p { font-size: 13px; }
    .lp-legal-card-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .lp-legal-section-heading { margin-bottom: 16px; }
    .lp-legal-card { padding: 20px; }
    .lp-legal-footer { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
    .lp-legal-page-body .lp-legal-card, .lp-legal-page-body .lp-legal-nav-link,
    .lp-legal-page-body .lp-legal-index-link { transition: none; }
}
@media print {
    .lp-legal-page-body { background: #fff; }
    .lp-legal-hero { color: #010736; background: #fff; box-shadow: none; border: 1px solid #dce5f5; }
    .lp-legal-hero p, .lp-legal-hero-count { color: #22396F; }
    .lp-legal-hero-art { display: none; }
    .lp-legal-card { break-inside: avoid; box-shadow: none; }
}

/* --------------------------------------------------------------------------
   D.6.2 · Lectura individual de un documento legal público.
   Solo se aplican estilos a la página de lectura: NO a fragmentos ni modales.
   La navbar y el catálogo aprobados en D.6.1/FIX2 permanecen sin cambios.
   -------------------------------------------------------------------------- */
.lp-legal-page-body .lp-legal-document-page {
    padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none;
}
.lp-legal-page-body .lp-legal-reader-hero {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
    padding: clamp(25px, 4vw, 46px); border-radius: 25px;
    background: linear-gradient(112deg, #010736 0%, #14285a 69%, #22396F 100%);
    color: #fff; box-shadow: 0 18px 44px rgba(1,7,54,.12);
}
.lp-legal-page-body .lp-legal-reader-intro { min-width: 0; flex: 1; }
.lp-legal-page-body .lp-legal-reader-back {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 21px;
    color: #D8EAFB; font-size: 12px; font-weight: 800; text-decoration: none;
    text-underline-offset: 3px;
}
.lp-legal-page-body .lp-legal-reader-back:hover { color: #fff; text-decoration: underline; }
.lp-legal-page-body .lp-legal-reader-eyebrow {
    display: table; padding: 8px 12px; border: 1px solid rgba(171,210,250,.3);
    border-radius: 999px; background: rgba(171,210,250,.12); color: #D8EAFB;
    font-size: 11px; letter-spacing: .09em;
}
.lp-legal-page-body .lp-legal-reader-eyebrow svg { vertical-align: middle; margin-right: 5px; }
.lp-legal-page-body .lp-legal-reader-hero h1 {
    margin: 16px 0 10px; max-width: 820px;
    font-size: clamp(29px, 4vw, 47px); line-height: 1.13;
    letter-spacing: -.04em; color: #fff; overflow-wrap: anywhere;
}
.lp-legal-page-body .lp-legal-reader-lead {
    max-width: 650px; margin: 0; color: #D9E5FF; font-size: 14px; line-height: 1.65;
}
.lp-legal-page-body .lp-legal-reader-meta {
    display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 24px 0 0;
}
.lp-legal-page-body .lp-legal-reader-meta div { min-width: 125px; }
.lp-legal-page-body .lp-legal-reader-meta dt {
    color: #B9D7F4; font-size: 11px; font-weight: 700; letter-spacing: .02em;
}
.lp-legal-page-body .lp-legal-reader-meta dd {
    margin: 4px 0 0; color: #fff; font-size: 13px; font-weight: 850;
    overflow-wrap: anywhere;
}
.lp-legal-page-body .lp-legal-reader-tools {
    display: flex; flex: 0 0 222px; flex-direction: column; align-items: stretch;
    gap: 9px; padding-bottom: 2px;
}
.lp-legal-page-body .lp-legal-reader-print {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    min-height: 47px; padding: 12px 14px; border-radius: 12px;
    border: 1px solid #D7E9FE; background: #fff; color: #010736;
    font-family: inherit; font-size: 12px; line-height: 1.3; font-weight: 850;
    cursor: pointer; transition: background-color .16s ease;
}
.lp-legal-page-body .lp-legal-reader-print:hover { background: #EDF4FF; }
.lp-legal-page-body .lp-legal-reader-print-note {
    text-align: center; color: #B9D7F4; font-size: 11px; line-height: 1.55;
}
.lp-legal-page-body .lp-legal-reader-sheet {
    margin-top: 22px; padding: clamp(25px, 4.2vw, 54px);
    border: 1px solid #dce5f5; border-radius: 22px; background: #fff;
    box-shadow: 0 12px 28px rgba(1,7,54,.04);
}
.lp-legal-page-body .lp-legal-reader-sheet-head {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 8px 16px; padding-bottom: 18px; margin-bottom: 19px;
    border-bottom: 1px solid #e6edf8; color: #526282;
    font-size: 11px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase;
}
.lp-legal-page-body .lp-legal-reader-sheet-status {
    display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px;
    border-radius: 999px; background: #EDF4FF; color: #22396F;
    font-size: 10px; font-weight: 850; letter-spacing: .03em;
}
.lp-legal-page-body .lp-legal-reader-sheet .lp-legal-prose {
    max-width: 82ch; color: #26354c; font-size: 15px; line-height: 1.85;
}
.lp-legal-page-body .lp-legal-reader-sheet .lp-legal-prose :is(h1,h2,h3,h4) { color: #010736; }
.lp-legal-page-body .lp-legal-reader-sheet .lp-legal-prose a { color: #22396F; }
.lp-legal-page-body .lp-legal-reader-integrity {
    margin-top: 17px; padding: 20px 24px; border: 1px solid #dce5f5;
    border-radius: 18px; background: #fff;
}
.lp-legal-page-body .lp-legal-reader-integrity summary { color: #010736; font-size: 14px; }
.lp-legal-page-body .lp-legal-reader-integrity code {
    color: #22396F; background: #EDF4FF; white-space: normal; overflow-wrap: anywhere;
}
.lp-legal-page-body .lp-legal-reader-bottom-actions { margin-top: 23px; }
.lp-legal-page-body .lp-legal-reader-bottom-actions a {
    display: inline-flex; align-items: center; gap: 8px;
    color: #22396F; font-size: 13px; text-decoration: none;
}
.lp-legal-page-body .lp-legal-reader-bottom-actions a:hover { text-decoration: underline; }

@media (max-width: 820px) {
    .lp-legal-page-body .lp-legal-reader-hero { align-items: stretch; flex-direction: column; gap: 22px; }
    .lp-legal-page-body .lp-legal-reader-tools { flex: 0 0 auto; max-width: 310px; }
    .lp-legal-page-body .lp-legal-reader-print-note { text-align: left; }
}
@media (max-width: 620px) {
    .lp-legal-page-body .lp-legal-reader-hero { padding: 25px 21px; border-radius: 19px; }
    .lp-legal-page-body .lp-legal-reader-hero h1 { font-size: clamp(28px, 8vw, 39px); }
    .lp-legal-page-body .lp-legal-reader-meta { gap: 13px 22px; }
    .lp-legal-page-body .lp-legal-reader-tools { max-width: none; }
    .lp-legal-page-body .lp-legal-reader-print-note { text-align: center; }
    .lp-legal-page-body .lp-legal-reader-sheet { margin-top: 14px; padding: 23px 19px; border-radius: 18px; }
    .lp-legal-page-body .lp-legal-reader-sheet .lp-legal-prose { font-size: 14px; line-height: 1.8; }
    .lp-legal-page-body .lp-legal-reader-integrity { padding: 18px 19px; }
}
@media (prefers-reduced-motion: reduce) {
    .lp-legal-page-body .lp-legal-reader-print { transition: none; }
}
@media print {
    .lp-legal-page-body .lp-legal-reader-back,
    .lp-legal-page-body .lp-legal-reader-tools,
    .lp-legal-page-body .lp-legal-reader-bottom-actions,
    .lp-legal-page-body .lp-legal-reader-sheet-status { display: none !important; }
    .lp-legal-page-body .lp-legal-reader-hero {
        display: block; padding: 0 0 16px; border-radius: 0;
        color: #010736; background: #fff; box-shadow: none;
        border-bottom: 1px solid #dce5f5;
    }
    .lp-legal-page-body .lp-legal-reader-eyebrow { display: none; }
    .lp-legal-page-body .lp-legal-reader-hero h1 { color: #010736; font-size: 26px; }
    .lp-legal-page-body .lp-legal-reader-lead { display: none; }
    .lp-legal-page-body .lp-legal-reader-meta { margin-top: 10px; }
    .lp-legal-page-body .lp-legal-reader-meta dt,
    .lp-legal-page-body .lp-legal-reader-meta dd { color: #010736; }
    .lp-legal-page-body .lp-legal-reader-sheet {
        margin-top: 0; padding: 20px 0 0; border: 0;
        border-radius: 0; box-shadow: none;
    }
    .lp-legal-page-body .lp-legal-reader-sheet-head { display: none; }
    .lp-legal-page-body .lp-legal-reader-sheet .lp-legal-prose { max-width: none; color: #111827; }
    .lp-legal-page-body .lp-legal-reader-integrity {
        border: 1px solid #dce5f5; padding: 14px 16px; box-shadow: none;
        break-inside: avoid;
    }
}

/* D.8.5.2B.3B.3.2B FIX1 visual — misma anchura que la navbar legal.
   Estilos exclusivos de la pantalla de seguimiento, sin alterar catálogo ni lector. */
.lp-attribution-preference {
    width: 100%; min-width: 0;
    color: #010736;
}
.lp-attribution-preference__hero { margin-bottom: 36px; }
.lp-attribution-preference__back {
    display: inline-flex; align-items: center; gap: 7px; width: fit-content;
    margin-bottom: 22px; color: #D9E5FF; font-size: 12px; font-weight: 800;
    text-decoration: none; text-underline-offset: 3px;
}
.lp-attribution-preference__back:hover { color: #fff; text-decoration: underline; }
.lp-attribution-preference__hero h1 { max-width: 740px; }
.lp-attribution-preference__hero p { max-width: 680px; }
.lp-attribution-preference__hero-note {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 20px;
    color: #ABD2FA; font-size: 12px; font-weight: 800;
}
.lp-attribution-preference__art svg { max-width: 100%; height: auto; }
.lp-attribution-preference__section-heading { margin-bottom: 19px; }
.lp-attribution-preference__section-heading p { display: block; }
.lp-attribution-preference__grid {
    display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
    gap: 16px; align-items: stretch;
}
.lp-attribution-preference__panel, .lp-attribution-preference__aside {
    min-width: 0; box-sizing: border-box; background: #fff;
    border: 1px solid #dce5f5; border-radius: 20px;
    box-shadow: 0 12px 26px rgba(1,7,54,.04);
}
.lp-attribution-preference__panel { padding: clamp(22px, 3.2vw, 32px); }
.lp-attribution-preference__panel-top { display: flex; align-items: center; gap: 12px; margin-bottom: 21px; }
.lp-attribution-preference__panel-icon, .lp-attribution-preference__aside-icon {
    display: inline-grid; flex: 0 0 auto; place-items: center;
    width: 45px; height: 45px; border-radius: 13px;
    color: #22396F; background: #EDF4FF;
}
.lp-attribution-preference__state-label {
    color: #526282; font-size: 11px; font-weight: 900;
    letter-spacing: .075em; text-transform: uppercase;
}
.lp-attribution-preference__status {
    display: flex; align-items: flex-start; gap: 13px; padding: 17px 18px;
    border: 1px solid #dce5f5; border-radius: 14px; background: #F7FAFF;
}
.lp-attribution-preference__state-mark {
    display: grid; place-items: center; flex: 0 0 30px;
    width: 30px; height: 30px; border-radius: 10px;
    color: #22396F; background: #E9F2FF;
}
.lp-attribution-preference__status--disabled {
    background: #F1F7FF; border-color: #ABD2FA;
}
.lp-attribution-preference__status--disabled .lp-attribution-preference__state-mark {
    background: #DDEEFF; color: #010736;
}
.lp-attribution-preference__status strong {
    display: block; margin: 2px 0 6px; color: #010736;
    font-size: 16px; line-height: 1.35; letter-spacing: -.015em;
}
.lp-attribution-preference__status p {
    margin: 0; color: #526282; font-size: 13px; line-height: 1.7;
}
.lp-attribution-preference__form { margin-top: 19px; }
.lp-attribution-preference__choices { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lp-attribution-preference__button--outline { background: #fff; color: #22396F; border: 1px solid #b6c9e4; box-shadow: none; }
.lp-attribution-preference__button--outline:hover { color: #fff; background: #22396F; }
.lp-attribution-preference__button {
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    max-width: 100%; box-sizing: border-box; min-height: 48px;
    padding: 13px 20px; border: 0; border-radius: 11px;
    background: #22396F; color: #fff; box-shadow: 0 4px 12px rgba(34,57,111,.14);
    font: inherit; font-size: 13px; font-weight: 850; line-height: 1.35;
    text-align: center; cursor: pointer;
    transition: background-color .16s ease, box-shadow .16s ease;
}
.lp-attribution-preference__button:hover {
    background: #010736; box-shadow: 0 6px 16px rgba(1,7,54,.19);
}
.lp-attribution-preference__button svg { flex: 0 0 auto; }
.lp-attribution-preference__aside {
    display: flex; flex-direction: column; align-items: flex-start;
    padding: clamp(22px, 3vw, 30px);
}
.lp-attribution-preference__aside h3 {
    margin: 17px 0 8px; font-size: 19px; line-height: 1.3;
    letter-spacing: -.035em; color: #010736;
}
.lp-attribution-preference__aside p,
.lp-attribution-preference__aside li { color: #526282; font-size: 13px; line-height: 1.7; }
.lp-attribution-preference__aside p { margin: 0 0 9px; }
.lp-attribution-preference__aside ul { margin: 0; padding: 0; list-style: none; }
.lp-attribution-preference__aside li { position: relative; padding-left: 20px; margin-top: 9px; }
.lp-attribution-preference__aside li::before {
    content: ''; position: absolute; top: .72em; left: 2px;
    width: 7px; height: 7px; border-radius: 50%; background: #ABD2FA;
}
.lp-attribution-preference__footnote {
    display: flex; align-items: flex-start; gap: 14px;
    margin: 27px 2px 0; padding: 23px 3px 4px; border-top: 1px solid #dce5f5;
}
.lp-attribution-preference__footnote-icon { flex: 0 0 auto; color: #22396F; margin-top: 1px; }
.lp-attribution-preference__footnote h3 { margin: 0 0 8px; color: #010736; font-size: 14px; }
.lp-attribution-preference__disclaimer {
    max-width: 97ch; margin: 0; font-size: 12px; line-height: 1.75;
    color: #526282;
}
.lp-attribution-preference__privacy-link {
    display: inline-flex; align-items: center; gap: 7px;
    margin-top: 11px; color: #22396F; font-size: 12px;
    font-weight: 850; text-decoration: none;
}
.lp-attribution-preference__privacy-link:hover { color: #010736; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 800px) {
    .lp-attribution-preference__grid { grid-template-columns: minmax(0, 1fr); }
    .lp-attribution-preference__aside { padding: 23px; }
}
@media (max-width: 620px) {
    .lp-attribution-preference__hero { margin-bottom: 28px; }
    .lp-attribution-preference__back { margin-bottom: 17px; }
    .lp-attribution-preference__hero h1 { font-size: clamp(29px, 8vw, 40px); }
    .lp-attribution-preference__hero-note { margin-top: 16px; }
    .lp-attribution-preference__section-heading p { display: block; max-width: 100%; }
    .lp-attribution-preference__panel, .lp-attribution-preference__aside { padding: 20px; border-radius: 18px; }
    .lp-attribution-preference__status { padding: 15px 13px; gap: 10px; }
    .lp-attribution-preference__status strong { font-size: 14px; }
    .lp-attribution-preference__button { width: 100%; }
    .lp-attribution-preference__footnote { gap: 10px; margin-top: 22px; padding-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .lp-attribution-preference__button { transition: none; }
}
@media print {
    .lp-attribution-preference__form { display: none; }
    .lp-attribution-preference__hero { break-inside: avoid; }
    .lp-attribution-preference__panel, .lp-attribution-preference__aside { box-shadow: none; break-inside: avoid; }
}
