/* Innectia · estilos propios de aviso-legal (complementan /site.css) */

/* ── Páginas legales: lectura larga y tranquila (mismo bloque en las 3 páginas legales) ── */
body {
  margin: 0;
}
html {
  scroll-padding-top: calc(var(--head) + 24px);
}
html:not(.snap) .sec.lp-hero.lg-hero {
  min-height: 0;
  padding-bottom: clamp(28px, 5vh, 48px);
}
.lg-hero .wrap {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.lg-hero h1 {
  font-size: clamp(38px, 5vw, 68px);
  line-height: 0.98;
}
.lg-hero .lead {
  max-width: 40em;
}
.lg-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  max-width: 72ch;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-3);
}
.lg-meta b {
  color: var(--ink);
  font-weight: 600;
}
.lg {
  display: grid;
  grid-template-columns: 230px minmax(0, 72ch);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
  padding-bottom: clamp(72px, 12vh, 128px);
}
.toc {
  position: sticky;
  top: calc(var(--head) + 32px);
  max-height: calc(100svh - var(--head) - 120px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.toc summary {
  display: none;
}
.toc .k {
  display: block;
  margin-bottom: 12px;
}
.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--line);
}
.toc a {
  display: flex;
  gap: 10px;
  padding: 7px 0 7px 16px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  font-size: 14px;
  line-height: 1.35;
  color: var(--ink-3);
  text-decoration: none;
  transition:
    color 0.2s,
    border-color 0.2s;
}
.toc a i {
  font-style: normal;
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
  opacity: 0.7;
}
.toc a:hover {
  color: var(--ink);
}
.toc a[aria-current='true'] {
  color: var(--green-ink);
  border-left-color: var(--green-ink);
}
.toc a[aria-current='true'] i {
  color: var(--green-ink);
  opacity: 1;
}
.toc .toc-x {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13.5px;
}
.toc .toc-x a {
  padding: 0;
  border: 0;
  margin: 0;
  color: var(--ink-2);
}
.toc .toc-x a:hover {
  color: var(--green-ink);
}
html:not(.snap) .sec.lg-s {
  padding: 0;
  overflow: visible;
}
.lg-s + .lg-s {
  margin-top: 48px;
  padding-top: 44px;
  border-top: 1px solid var(--line);
}
.lg-s h2 {
  display: flex;
  gap: 0.5em;
  align-items: baseline;
  font-size: clamp(24px, 2.3vw, 30px);
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 18px;
}
.lg-s h2 .n {
  flex: none;
  font-size: 0.6em;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--green-ink);
  font-variant-numeric: tabular-nums;
}
.lg-s h3 {
  font-size: 18px;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin: 28px 0 10px;
}
.lg-s p,
.lg-s li {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink-2);
}
.lg-s p + p,
.lg-s p + ul,
.lg-s ul + p,
.lg-s .tbl + p,
.lg-s p + .tbl {
  margin-top: 14px;
}
.lg-s strong {
  color: var(--ink);
  font-weight: 600;
}
.lg-s ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lg-s li {
  position: relative;
  padding-left: 22px;
}
.lg-s li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--green-ink);
}
.lg-s a {
  color: var(--green-ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.lg-s a:hover {
  text-decoration-thickness: 2px;
}
.lg-s code,
.tbl code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: #f1eee7;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  color: var(--ink);
  white-space: nowrap;
}
.tbl {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  margin-top: 18px;
  -webkit-overflow-scrolling: touch;
}
.tbl table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14.5px;
  line-height: 1.5;
}
.tbl th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: #f6f3ec;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.tbl td {
  padding: 13px 14px;
  vertical-align: top;
  color: var(--ink-2);
  border-top: 1px solid var(--line);
}
.tbl tr:first-child td {
  border-top: 0;
}
.tbl td:first-child {
  color: var(--ink);
  font-weight: 600;
}
.tbl .grp td {
  background: var(--green-soft);
  color: var(--green-ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 14px;
}
.lg-box {
  margin-top: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--green-ink);
  border-radius: 14px;
  padding: 16px 18px;
}
.lg-box p {
  font-size: 15.5px;
}
.contact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.contact a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  text-decoration: none !important;
  color: var(--ink) !important;
  transition:
    border-color 0.2s,
    transform 0.16s var(--ease);
}
.contact a:hover {
  border-color: var(--green-ink);
  transform: translateY(-2px);
}
.contact small {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.contact span {
  font-size: 15px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
@media (max-width: 960px) {
  .lg {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .toc {
    position: static;
    max-height: none;
    overflow: visible;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--card);
    padding: 0 16px;
  }
  .toc summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    list-style: none;
    min-height: 52px;
    font-size: 15px;
    font-weight: 600;
  }
  .toc summary::-webkit-details-marker {
    display: none;
  }
  .toc summary::after {
    content: '+';
    font-size: 20px;
    color: var(--green-ink);
    transition: transform 0.25s var(--ease);
  }
  .toc[open] summary::after {
    transform: rotate(45deg);
  }
  .toc .k {
    display: none;
  }
  .toc ol {
    margin-bottom: 12px;
  }
  .toc .toc-x {
    margin-bottom: 16px;
  }
  .contact {
    grid-template-columns: 1fr;
  }
  .lg-s p,
  .lg-s li {
    font-size: 16px;
  }
}
