/* Documentos legales de la propuesta: lectura cómoda con índice lateral fijo. */
.legal-hero { min-height: auto; padding: 150px 0 72px; }
.legal-hero .hero-map { opacity: .75; }
.docs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.docs a { display: inline-flex; align-items: center; min-height: 40px; padding: .55rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--copy); text-decoration: none; font-size: .9rem; font-weight: 500; }
.docs a:hover { border-color: var(--blue); color: var(--ink); }
.docs a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--white); }

.doc-sec { padding: 88px 0 130px; background: var(--white); border-top: 1px solid var(--line); }
.doc-grid { display: grid; grid-template-columns: 260px minmax(0, 68ch); gap: 88px; align-items: start; justify-content: start; }
.toc { position: sticky; top: 104px; }
.toc .label { color: var(--muted); display: block; margin-bottom: 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); position: relative; }
.toc ol::before { content: ""; position: absolute; left: -2px; top: 0; width: 2px; height: calc(var(--p, 0) * 100%); background: var(--blue); }
.toc li a { display: grid; grid-template-columns: 30px 1fr; padding: 9px 0 9px 16px; color: var(--muted); text-decoration: none; font-size: .95rem; line-height: 1.35; transition: color .25s; }
.toc li a span { font-size: .74rem; font-weight: 650; color: oklch(49% 0.025 248 / .8); padding-top: 2px; }
.toc li a:hover { color: var(--ink); }
.toc li a[aria-current="true"] { color: var(--ink); font-weight: 580; }
.toc li a[aria-current="true"] span { color: var(--blue); }
.toc .others { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .9rem; }
.toc .others a { display: block; color: var(--copy); text-decoration: none; padding: 4px 0; }
.toc .others a:hover { color: var(--blue); }

.doc { color: var(--copy); font-size: 1.12rem; line-height: 1.72; }
.doc section { scroll-margin-top: 100px; padding: 0 0 44px; }
.doc section + section { padding-top: 44px; border-top: 1px solid var(--line); }
.doc h2 { display: flex; gap: 16px; align-items: baseline; margin: 0 0 16px; color: var(--ink); font-weight: 580; font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.12; letter-spacing: -0.035em; }
.doc h2 span { font-size: .8rem; font-weight: 650; letter-spacing: .1em; color: var(--blue); flex: none; }
.doc p { margin: 0; max-width: 64ch; }
.doc a { color: var(--blue); }
.doc-end { margin-top: 12px; padding: 24px 26px; border-radius: var(--r-md); background: var(--mist); font-size: .95rem; display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; align-items: center; }
.doc-end b { color: var(--ink); font-weight: 580; }

@media (max-width: 900px) {
  .legal-hero { padding: 110px 0 48px; }
  .doc-sec { padding: 48px 0 90px; }
  .doc-grid { grid-template-columns: 1fr; gap: 36px; }
  .toc { position: static; }
  .toc .others { display: none; }
  .doc { font-size: 1.04rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
