/* Cohete CW · Punto Fisio | Documentos legales v1.1.131
   Editorial clínico; contenido jurídico intacto, sin dependencias externas. */
body.cw-legal-page {
  --cw-legal-accent: var(--cw-pf-primary, var(--e-global-color-primary, #00CFAB));
  --cw-legal-ink: var(--cw-pf-text, var(--e-global-color-text, #333333));
  --cw-legal-muted: color-mix(in srgb, var(--cw-legal-ink) 66%, transparent);
  --cw-legal-line: color-mix(in srgb, var(--cw-legal-ink) 12%, transparent);
  --cw-legal-soft: color-mix(in srgb, var(--cw-legal-accent) 9%, transparent);
  --cw-legal-paper: var(--cw-pf-background, #fff);
  --cw-legal-panel: color-mix(in srgb, var(--cw-legal-ink) 3%, var(--cw-legal-paper));
  color: var(--cw-legal-ink);
}
html[data-theme="dark"] body.cw-legal-page,
body.cw-legal-page[data-theme="dark"] {
  --cw-legal-ink: var(--cw-pf-text, #ecf4f3);
  --cw-legal-line: color-mix(in srgb, var(--cw-legal-ink) 16%, transparent);
  --cw-legal-soft: color-mix(in srgb, var(--cw-legal-accent) 17%, transparent);
  --cw-legal-paper: var(--cw-pf-background, #10282a);
  --cw-legal-panel: color-mix(in srgb, var(--cw-legal-ink) 5%, var(--cw-legal-paper));
}
.cw-legal, .cw-legal *, .cw-legal *::before, .cw-legal *::after { box-sizing: border-box; }
.cw-legal {
  color: var(--cw-legal-ink);
  background: var(--cw-legal-paper);
  min-height: 75vh;
  padding: 66px 0 92px;
  font-family: var(--e-global-typography-text-font-family, inherit);
}
/* 1300 px de contenido REAL, sin padding interior. En viewports más pequeños
   dejamos un margen exterior uniforme de 30 px por lado. */
.cw-legal-shell { width: min(1300px, calc(100% - 60px)); max-width: 1300px; margin-inline: auto; padding: 0; }
.cw-legal-breadcrumb {
  display: flex; align-items: center; gap: 10px; min-width: 0;
  margin: 0 0 35px; color: var(--cw-legal-muted);
  font-size: 12px; line-height: 1.45; font-weight: 550;
}
.cw-legal-breadcrumb a { color: var(--cw-legal-muted); text-decoration: none; }
.cw-legal-breadcrumb a:hover { color: var(--cw-legal-accent); }
.cw-legal-breadcrumb svg { width: 13px; height: 13px; stroke: currentColor; fill: none; flex: 0 0 auto; stroke-width: 1.8; }
.cw-legal-breadcrumb span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cw-legal-hero {
  position: relative;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: clamp(28px, 6vw, 85px);
  padding: 0 0 clamp(36px, 5vw, 58px);
  border-bottom: 1px solid var(--cw-legal-line);
}
.cw-legal-hero::before { content: ""; position: absolute; left: 0; bottom: -1px; width: 82px; height: 2px; background: var(--cw-legal-accent); }
.cw-legal-hero-copy { min-width: 0; max-width: 800px; }
.cw-legal-eyebrow {
  display: flex; align-items: center; gap: 11px;
  margin: 0 0 23px; color: var(--cw-legal-accent);
  font-size: 11px; font-weight: 740; letter-spacing: .13em; text-transform: uppercase;
}
.cw-legal-eyebrow > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--cw-legal-soft); flex: 0 0 auto; }
.cw-legal-eyebrow svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cw-legal-hero h1 {
  margin: 0; color: var(--cw-legal-ink);
  font-family: var(--e-global-typography-primary-font-family, inherit);
  font-size: clamp(38px, 5.1vw, 69px); font-weight: 720;
  letter-spacing: -.048em; line-height: 1.065; overflow-wrap: break-word;
}
.cw-legal-intro {
  max-width: 650px; margin: 21px 0 0;
  color: var(--cw-legal-muted); font-size: clamp(15px, 1.45vw, 18px);
  line-height: 1.65; font-weight: 430;
}
.cw-legal-updated {
  display: flex; align-items: center; gap: 12px;
  flex: 0 0 auto; padding: 14px 0 14px 18px;
  border-left: 1px solid var(--cw-legal-line);
}
.cw-legal-updated-icon { display: grid !important; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 12px; background: var(--cw-legal-soft); color: var(--cw-legal-accent); }
.cw-legal-updated-icon svg { width: 19px; height: 19px; }
.cw-legal-updated div { min-width: 0; }
.cw-legal-updated div > span, .cw-legal-updated strong { display: block; }
.cw-legal-updated div > span { margin: 0 0 4px; font-size: 10px; font-weight: 740; line-height: 1.4; letter-spacing: .065em; color: var(--cw-legal-muted); text-transform: uppercase; }
.cw-legal-updated strong { color: var(--cw-legal-ink); font-size: 13px; font-weight: 680; white-space: nowrap; }
.cw-legal-layout {
  display: grid; grid-template-columns: 245px minmax(0, 1fr);
  align-items: start; column-gap: clamp(40px, 6vw, 90px);
  margin-top: 55px;
}
.cw-legal-layout--single { grid-template-columns: minmax(0, 860px); justify-content: center; }
.cw-legal-aside { position: sticky; top: 114px; min-width: 0; }
.cw-legal-toc {
  padding: 20px 0 20px 18px;
  border-left: 1px solid var(--cw-legal-line);
}
.cw-legal-toc-title {
  margin: 0 0 18px; color: var(--cw-legal-ink);
  font-size: 12px; line-height: 1.4; font-weight: 750;
  letter-spacing: .05em; text-transform: uppercase;
}
.cw-legal-toc ol { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.cw-legal-toc li { min-width: 0; margin: 0; }
.cw-legal-toc a {
  display: block; padding: 8px 10px;
  border-radius: 8px; color: var(--cw-legal-muted); font-size: 12.5px;
  font-weight: 520; line-height: 1.45; text-decoration: none;
  overflow-wrap: anywhere; transition: color .18s ease, background .18s ease;
}
.cw-legal-toc li.is-subsection a { padding-left: 24px; font-size: 12px; }
.cw-legal-toc a:hover, .cw-legal-toc a:focus-visible { color: var(--cw-legal-accent); background: var(--cw-legal-soft); outline: none; }
.cw-legal-toc a:focus-visible, .cw-legal-breadcrumb a:focus-visible, .cw-legal-related a:focus-visible { outline: 2px solid var(--cw-legal-accent); outline-offset: 3px; }
.cw-legal-content {
  min-width: 0; max-width: none;
  color: var(--cw-legal-muted);
  font-size: 15.5px; line-height: 1.82; overflow-wrap: anywhere;
}
.cw-legal-content > :first-child { margin-top: 0 !important; }
.cw-legal-content h2, .cw-legal-content h3, .cw-legal-content h4 { color: var(--cw-legal-ink); font-family: var(--e-global-typography-primary-font-family, inherit); letter-spacing: -.025em; font-weight: 700; scroll-margin-top: 110px; }
.cw-legal-content h2 { margin: 48px 0 17px; padding-top: 28px; border-top: 1px solid var(--cw-legal-line); font-size: clamp(23px, 2.4vw, 30px); line-height: 1.25; }
.cw-legal-content h3 { margin: 32px 0 13px; font-size: clamp(18px, 2vw, 21px); line-height: 1.36; }
.cw-legal-content h4 { margin: 25px 0 12px; font-size: 17px; }
.cw-legal-content p { margin: 0 0 18px; }
.cw-legal-content a { color: var(--cw-legal-accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.cw-legal-content ul, .cw-legal-content ol { margin: 0 0 21px; padding-left: 23px; }
.cw-legal-content li { margin: 7px 0; padding-left: 4px; }
.cw-legal-content li::marker { color: var(--cw-legal-accent); }
.cw-legal-content strong, .cw-legal-content b { color: var(--cw-legal-ink); font-weight: 700; }
.cw-legal-content blockquote { margin: 24px 0; padding: 17px 21px; background: var(--cw-legal-panel); border: 0; border-left: 3px solid var(--cw-legal-accent); border-radius: 0 12px 12px 0; color: var(--cw-legal-ink); }
.cw-legal-content blockquote p:last-child { margin-bottom: 0; }
.cw-legal-content hr { border: 0; border-top: 1px solid var(--cw-legal-line); margin: 35px 0; }
.cw-legal-content table { width: 100%; margin: 22px 0; border-collapse: collapse; border: 1px solid var(--cw-legal-line); font-size: 14px; }
.cw-legal-content th, .cw-legal-content td { padding: 12px 15px; border: 1px solid var(--cw-legal-line); text-align: left; vertical-align: top; }
.cw-legal-content th { background: var(--cw-legal-panel); color: var(--cw-legal-ink); font-weight: 700; }
.cw-legal-content details { margin: 13px 0; padding: 16px 19px; border-radius: 12px; border: 1px solid var(--cw-legal-line); }
.cw-legal-content summary { cursor: pointer; font-weight: 700; color: var(--cw-legal-ink); }
.cw-legal-content img, .cw-legal-content iframe { max-width: 100%; height: auto; }
.cw-legal-related {
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  margin-top: 75px; padding: 30px 0 0; border-top: 1px solid var(--cw-legal-line);
}
.cw-legal-related__heading > span { color: var(--cw-legal-accent); font-size: 11px; font-weight: 700; line-height: 1.4; letter-spacing: .1em; text-transform: uppercase; }
.cw-legal-related__heading h2 { margin: 5px 0 0; color: var(--cw-legal-ink); font-size: clamp(18px, 2vw, 23px); font-weight: 700; line-height: 1.2; letter-spacing: -.025em; }
.cw-legal-related__links { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.cw-legal-related__links a { display: inline-flex; align-items: center; gap: 10px; min-height: 39px; padding: 9px 12px 9px 15px; border: 1px solid var(--cw-legal-line); border-radius: 11px; background: var(--cw-legal-panel); text-decoration: none; color: var(--cw-legal-ink); font-size: 12px; font-weight: 650; transition: background .18s ease, border-color .18s ease; }
.cw-legal-related__links a:hover { background: var(--cw-legal-soft); border-color: color-mix(in srgb, var(--cw-legal-accent) 30%, transparent); }
.cw-legal-related__links svg { width: 16px; height: 16px; color: var(--cw-legal-accent); }
@media (max-width: 1024px) {
  .cw-legal-updated { flex: 0 1 auto; }
  .cw-legal-layout { gap: 40px; grid-template-columns: 220px minmax(0, 1fr); }
}
@media (max-width: 800px) {
  .cw-legal { padding: 43px 0 77px; }
  .cw-legal-breadcrumb { margin-bottom: 26px; }
  .cw-legal-hero { align-items: flex-start; flex-direction: column; gap: 26px; padding-bottom: 35px; }
  .cw-legal-updated { border-left: 0; padding: 0; }
  .cw-legal-layout, .cw-legal-layout--single { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 35px; }
  .cw-legal-aside { position: static; }
  .cw-legal-toc { border: 1px solid var(--cw-legal-line); background: var(--cw-legal-panel); border-radius: 15px; padding: 17px; }
  .cw-legal-toc-title { margin-bottom: 10px; }
  .cw-legal-toc ol { display: flex; flex-direction: row; flex-wrap: wrap; gap: 3px 8px; }
  .cw-legal-toc li.is-subsection a { padding-left: 10px; }
  .cw-legal-toc a { font-size: 12px; padding: 6px 9px; }
  .cw-legal-related { align-items: flex-start; flex-direction: column; gap: 20px; margin-top: 48px; }
}
@media (max-width: 480px) {
  .cw-legal { padding: 32px 0 68px; }
  .cw-legal-breadcrumb { margin-bottom: 22px; font-size: 11px; }
  .cw-legal-eyebrow { font-size: 10px; margin-bottom: 17px; }
  .cw-legal-hero h1 { font-size: clamp(33px, 9.5vw, 43px); }
  .cw-legal-intro { font-size: 15px; margin-top: 16px; }
  .cw-legal-updated-icon { flex-basis: 34px; width: 34px; height: 34px; }
  .cw-legal-content { font-size: 14.5px; line-height: 1.76; }
  .cw-legal-content h2 { margin-top: 38px; padding-top: 23px; }
  .cw-legal-content table { display: block; max-width: 100%; overflow-x: auto; }
  .cw-legal-related__links { width: 100%; }
  .cw-legal-related__links a { width: 100%; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  .cw-legal-toc a, .cw-legal-related__links a { transition: none; }
}

/* --- Integración sin duplicación con Custom Maintenance Suite (cookies) --- */
.cw-legal-content .cw-legal-cookie-inventory { max-width: 100%; margin: 23px 0 34px; }
.cw-legal-cookie-table-wrap { width: 100%; max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; border: 1px solid var(--cw-legal-line); border-radius: 13px; }
.cw-legal-content table.cw-legal-cookie-table { display: table; width: 100%; margin: 0; min-width: 590px; border: 0; border-collapse: collapse; table-layout: auto; font-size: 13px; line-height: 1.5; }
.cw-legal-content .cw-legal-cookie-table th,
.cw-legal-content .cw-legal-cookie-table td { vertical-align: top; border: 0; border-bottom: 1px solid var(--cw-legal-line); padding: 15px 14px; text-align: left; }
.cw-legal-content .cw-legal-cookie-table tr:last-child td { border-bottom: 0; }
.cw-legal-content .cw-legal-cookie-table th { white-space: nowrap; color: var(--cw-legal-ink); background: var(--cw-legal-panel); font-weight: 700; }
.cw-legal-content .cw-legal-cookie-table td { color: var(--cw-legal-muted); }
.cw-legal-content .cw-legal-cookie-table code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--cw-legal-ink); white-space: normal; word-break: break-word; font-size: .94em; background: transparent; padding: 0; }
.cw-legal-cookie-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 16px; }
.cw-legal-cookie-actions p { flex: 1 1 250px; margin: 0; font-size: 12px; line-height: 1.6; }
/* Respetar el sistema de consentimiento original; solo contextualizar su botón. */
.cw-legal .cw-legal-cookie-actions .cwcc-policy-settings { flex: 0 0 auto; margin: 0 !important; background: var(--cw-legal-accent) !important; border-color: var(--cw-legal-accent) !important; color: #fff !important; }
.cw-legal-cookie-table-wrap:focus-visible { outline: 2px solid var(--cw-legal-accent); outline-offset: 2px; }
@media (max-width: 800px) {
  .cw-legal-content .cw-legal-cookie-inventory { margin-bottom: 26px; }
  .cw-legal-cookie-actions { align-items: flex-start; flex-direction: column; }
}

/* Botón de preferencias legible y consistente incluso sin estilos globales
   (su comportamiento JS continúa a cargo del gestor de cookies). */
.cw-legal .cw-legal-cookie-actions .cwcc-policy-settings {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 40px;
  width: auto;
  padding: 9px 17px !important;
  border: 1px solid var(--cw-legal-accent) !important;
  border-radius: 999px !important;
  font: inherit !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  cursor: pointer;
  transition: opacity .2s ease;
}
.cw-legal .cw-legal-cookie-actions .cwcc-policy-settings:hover { opacity: .88; }
.cw-legal .cw-legal-cookie-actions .cwcc-policy-settings:focus-visible {
  outline: 2px solid var(--cw-legal-accent) !important;
  outline-offset: 3px !important;
}
@media (max-width: 800px) {
  /* Una base flexible de 250px creaba un gran hueco vertical al pasar
     la fila de controles a columna. Nunca reservar altura para el párrafo. */
  .cw-legal-cookie-actions p { flex: 0 1 auto; width: 100%; }
  .cw-legal .cw-legal-cookie-actions .cwcc-policy-settings { flex: 0 0 auto; }
}

.cw-legal .cw-legal-cookie-scroll-help { display: none; }
@media (max-width: 640px) {
  .cw-legal .cw-legal-cookie-scroll-help { display: block; font-size: 11.5px; line-height: 1.4; margin: 9px 0 12px; color: var(--cw-legal-muted); }
}
