/* Páginas legales (privacidad y términos), versión 3 del 04-11-2026.
   El MISMO archivo en Veterinari, OpenHealth y Contable (Content/legal/legal.css): solo cambian las
   variables de marca de .lg-vet / .lg-oh / .lg-cont. Si lo cambias, cópialo a los tres y sube el ?v= de los partials.
   Todo va dentro de .lg para no chocar con el CSS de cada web. Origen: Planning/legal-privacidad-terminos-2026-11. */

.lg {
  --lg-accent: hsl(184 65% 30%);
  --lg-accent-ink: hsl(184 65% 24%);
  --lg-soft: hsl(184 65% 96%);
  --lg-fg: #171717;
  --lg-muted: #5f5f5f;
  --lg-border: #e8e8e8;
  --lg-card: #ffffff;
  --lg-bg2: #fafafa;
  --lg-font-h: var(--font-heading, system-ui, -apple-system, sans-serif);
  --lg-radius: 12px;
  color: var(--lg-fg);
  font-size: 16px;
  line-height: 1.7;
}
.lg.lg-oh { --lg-accent: #3f8b97; --lg-accent-ink: #2c6d78; --lg-soft: rgba(75,155,168,.09); --lg-fg: #2e3438; --lg-muted: #5d6672; --lg-border: #e6e8ea; }
.lg.lg-cont { --lg-accent: hsl(282 47% 32%); --lg-accent-ink: hsl(282 47% 28%); --lg-soft: hsl(282 47% 97%); }

.lg *, .lg *::before, .lg *::after { box-sizing: border-box; }
.lg a { color: var(--lg-accent-ink); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--lg-accent) 35%, transparent); text-underline-offset: 3px; }
.lg a:hover { text-decoration-color: var(--lg-accent); }
.lg p { margin: 0 0 14px; }
.lg ul { margin: 0 0 14px; padding-left: 22px; list-style: disc; }
.lg li { margin: 0 0 6px; }
.lg li::marker { color: var(--lg-accent); }
.lg strong { font-weight: 600; }
.lg h1, .lg h2, .lg h3 { font-family: var(--lg-font-h); color: var(--lg-fg); letter-spacing: -0.02em; }

/* ---------- Cabecera ---------- */
.lg-cab { padding: 112px 0 28px; }
.lg-insignia { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--lg-accent-ink); background: var(--lg-soft); border-radius: 999px; padding: 4px 12px; margin-bottom: 14px; }
.lg-cab h1 { font-size: clamp(30px, 4.2vw, 44px); line-height: 1.12; font-weight: 700; margin: 0 0 12px; }
.lg-bajada { font-size: 17.5px; color: var(--lg-muted); max-width: 680px; margin: 0 0 18px; }
.lg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: 14px; color: var(--lg-muted); }
.lg-meta .lg-punto { width: 4px; height: 4px; border-radius: 50%; background: #c9c9c9; }
.lg-acciones { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.lg-btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--lg-border); background: #fff; color: var(--lg-fg) !important; font-size: 14px; font-weight: 500; text-decoration: none !important; cursor: pointer; white-space: nowrap; font-family: inherit; }
.lg-btn:hover { border-color: #cfcfcf; background: var(--lg-bg2); }
.lg-btn svg { width: 16px; height: 16px; flex: none; }
.lg-btn.lg-btn-1 { background: var(--lg-accent); border-color: var(--lg-accent); color: #fff !important; }
.lg-btn.lg-btn-1:hover { background: var(--lg-accent-ink); }

/* Pestañas entre los documentos legales */
.lg-pest { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--lg-border); margin: 26px 0 0; }
.lg-pest a { display: inline-flex; align-items: center; height: 42px; padding: 0 14px; font-size: 14.5px; font-weight: 500; color: var(--lg-muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.lg-pest a:hover { color: var(--lg-fg); }
.lg-pest a[aria-current="page"] { color: var(--lg-fg); border-bottom-color: var(--lg-accent); font-weight: 600; }

/* ---------- En pocas palabras ---------- */
.lg-resumen { background: var(--lg-soft); border-radius: 16px; padding: 22px 24px 8px; margin: 0 0 40px; }
.lg-resumen > h2 { font-size: 15px !important; text-transform: uppercase; letter-spacing: .05em; color: var(--lg-accent-ink) !important; margin: 0 0 14px !important; padding: 0 !important; border: 0 !important; }
.lg-resumen ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 4px 26px; }
.lg-resumen li { position: relative; padding-left: 46px; min-height: 34px; margin: 0 0 16px; font-size: 15px; line-height: 1.55; }
.lg-resumen li .lg-ico { position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 10px; background: #fff; display: grid; place-items: center; color: var(--lg-accent); box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.lg-resumen li .lg-ico svg { width: 18px; height: 18px; }
.lg-resumen li b { font-weight: 600; display: block; color: var(--lg-fg); margin-bottom: 1px; }
.lg-resumen li span:not(.lg-ico) { color: var(--lg-muted); }
.lg-resumen .lg-ir { font-size: 13.5px; margin-left: 4px; white-space: nowrap; }

/* ---------- Secciones ---------- */
.lg-doc h2 { font-size: 23px; line-height: 1.3; font-weight: 650; margin: 0 0 12px; padding-top: 6px; scroll-margin-top: 84px; }
.lg-doc h3 { font-size: 17px; font-weight: 600; margin: 22px 0 8px; scroll-margin-top: 84px; }
.lg-sec { padding: 26px 0 18px; border-top: 1px solid var(--lg-border); scroll-margin-top: 64px; }
.lg-sec:first-of-type { border-top: 0; padding-top: 0; }
.lg-corto { font-size: 16.5px; line-height: 1.6; font-weight: 500; color: var(--lg-fg); border-left: 3px solid var(--lg-accent); padding: 2px 0 2px 14px; margin: 0 0 16px !important; }
.lg-num { color: var(--lg-accent); margin-right: 6px; font-variant-numeric: tabular-nums; }

/* Tablas que en el celular pasan a tarjetas */
.lg-tabla { width: 100%; border-collapse: separate; border-spacing: 0; margin: 6px 0 18px; font-size: 14.5px; line-height: 1.5; border: 1px solid var(--lg-border); border-radius: var(--lg-radius); overflow: hidden; }
.lg-tabla th { text-align: left; font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--lg-muted); background: var(--lg-bg2); padding: 10px 14px; border-bottom: 1px solid var(--lg-border); }
.lg-tabla td { padding: 11px 14px; vertical-align: top; border-bottom: 1px solid var(--lg-border); }
.lg-tabla tr:last-child td { border-bottom: 0; }
.lg-tabla td:first-child { font-weight: 600; }
.lg-tabla .lg-chip { display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--lg-soft); color: var(--lg-accent-ink); white-space: nowrap; }
.lg-tabla .lg-chip.lg-op { background: #f3f3f3; color: #555; }
@media (max-width: 720px) {
  .lg-tabla, .lg-tabla tbody, .lg-tabla tr, .lg-tabla td { display: block; width: 100%; }
  .lg-tabla thead { display: none; }
  .lg-tabla tr { border-bottom: 1px solid var(--lg-border); padding: 10px 14px; }
  .lg-tabla tr:last-child { border-bottom: 0; }
  .lg-tabla td { border: 0; padding: 2px 0; }
  .lg-tabla td[data-t]::before { content: attr(data-t) ": "; color: var(--lg-muted); font-size: 13px; }
  .lg-tabla td:first-child { font-size: 15.5px; padding-bottom: 4px; }
}

/* Flujo de la IA */
.lg-flujo { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 8px 0 18px; counter-reset: paso; }
.lg-flujo > div { position: relative; background: #fff; border: 1px solid var(--lg-border); border-radius: 12px; padding: 12px 12px 10px; font-size: 13.5px; line-height: 1.45; color: var(--lg-muted); }
.lg-flujo > div b { display: block; color: var(--lg-fg); font-size: 14.5px; margin-bottom: 3px; }
.lg-flujo > div::before { counter-increment: paso; content: counter(paso); position: absolute; top: -9px; left: 12px; width: 20px; height: 20px; border-radius: 50%; background: var(--lg-accent); color: #fff; font-size: 11.5px; font-weight: 700; display: grid; place-items: center; }
@media (max-width: 720px) { .lg-flujo { grid-template-columns: 1fr 1fr; gap: 16px 10px; } }

/* Avisos */
.lg-nota { border-left: 3px solid var(--lg-accent); background: var(--lg-soft); border-radius: 0 10px 10px 0; padding: 12px 16px; margin: 6px 0 18px; font-size: 15px; }
.lg-nota p:last-child { margin: 0; }

/* Tarjetas de derechos y acciones */
.lg-tarjetas { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 6px 0 18px; }
.lg-tarjetas > div { border: 1px solid var(--lg-border); border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.5; color: var(--lg-muted); background: #fff; }
.lg-tarjetas > div b { display: block; color: var(--lg-fg); font-size: 15px; margin-bottom: 2px; }

/* Contacto y empresa */
.lg-empresa { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--lg-border); border-radius: var(--lg-radius); overflow: hidden; font-size: 14.5px; margin: 6px 0 18px; }
.lg-empresa > div { padding: 12px 16px; border-bottom: 1px solid var(--lg-border); }
.lg-empresa > div:nth-child(odd) { border-right: 1px solid var(--lg-border); }
.lg-empresa > div:nth-last-child(-n+2) { border-bottom: 0; }
.lg-empresa small { display: block; color: var(--lg-muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
@media (max-width: 600px) { .lg-empresa { grid-template-columns: 1fr; } .lg-empresa > div { border-right: 0 !important; border-bottom: 1px solid var(--lg-border) !important; } .lg-empresa > div:last-child { border-bottom: 0 !important; } }

/* Historial de cambios */
.lg-cambios { list-style: none; padding: 0 !important; margin: 6px 0 0; border-left: 2px solid var(--lg-border); }
.lg-cambios li { position: relative; padding: 0 0 14px 18px; margin: 0; font-size: 14.5px; color: var(--lg-muted); }
.lg-cambios li::before { content: ""; position: absolute; left: -6px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--lg-accent); }
.lg-cambios li b { color: var(--lg-fg); display: block; }

/* ---------- Ancho y columnas: documento con índice ---------- */
.lg-ancho { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.lg-a .lg-cuerpo { display: grid; grid-template-columns: 230px minmax(0, 720px); gap: 56px; align-items: start; padding-bottom: 64px; }
.lg-indice { position: sticky; top: 84px; font-size: 13.5px; max-height: calc(100vh - 110px); overflow: auto; padding-right: 6px; }
.lg-indice > b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--lg-muted); margin: 4px 0 10px 12px; }
.lg-indice a { display: block; padding: 5px 10px 5px 12px; border-left: 2px solid var(--lg-border); color: var(--lg-muted); text-decoration: none; line-height: 1.4; }
.lg-indice a:hover { color: var(--lg-fg); }
.lg-indice a.lg-aqui { color: var(--lg-fg); border-left-color: var(--lg-accent); font-weight: 600; background: linear-gradient(90deg, var(--lg-soft), transparent); }
.lg-indice-movil { display: none; }
@media (max-width: 1023px) {
  .lg-a .lg-cuerpo { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .lg-a .lg-indice { display: none; }
  .lg-indice-movil { display: block; border: 1px solid var(--lg-border); border-radius: 12px; margin: 0 0 28px; background: #fff; }
  .lg-indice-movil summary { list-style: none; cursor: pointer; padding: 12px 16px; font-weight: 600; font-size: 15px; display: flex; justify-content: space-between; align-items: center; }
  .lg-indice-movil summary::-webkit-details-marker { display: none; }
  .lg-indice-movil summary::after { content: "+"; font-size: 20px; color: var(--lg-muted); font-weight: 400; }
  .lg-indice-movil[open] summary::after { content: "–"; }
  .lg-indice-movil nav { padding: 0 16px 12px; columns: 1; font-size: 14.5px; }
  .lg-indice-movil a { display: block; padding: 6px 0; color: var(--lg-muted); text-decoration: none; border-top: 1px solid #f2f2f2; }
}

/* Impresión: sin menú, sin índice, todo abierto */
@media print {
  nav#main-nav, .navbar, footer, .lg-indice, .lg-indice-movil, .lg-acciones, .lg-pest { display: none !important; }
  .lg-cab { padding-top: 0; }
  .lg-a .lg-cuerpo { display: block; }
  .lg-sec { break-inside: avoid-page; }
}
