/* PerimetroX — lectura documental de Términos y Condiciones.
   Estilos aislados para no modificar el resto de las páginas legales. */
body.legal-terms-page {
  --bg-0: #090f16;
  --bg-1: #0c141d;
  --bg-2: #121d28;
  --panel: rgba(17, 27, 38, 0.9);
  --panel-2: #172330;
  --panel-solid: #111b26;
  --line: rgba(169, 190, 210, 0.16);
  --line-strong: rgba(169, 190, 210, 0.25);
  --line-soft: rgba(169, 190, 210, 0.11);
  --text: #eef3f7;
  --text-muted: #c2ccd5;
  --text-dim: #91a0ad;
  --brand: #c64b63;
  --brand-dark: #f17a91;
  --cyan: #42c8ee;
  --teal: #72e1f2;
  color-scheme: dark;
  color: var(--text);
  background: var(--bg-0);
}
.legal-terms-page .reveal {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  transition: none !important;
}

.legal-terms-page .site-header .nav-inner {
  background: rgba(10, 17, 25, 0.94);
  border-color: rgba(183, 202, 218, 0.18);
  box-shadow: 0 12px 34px -24px rgba(0, 0, 0, 0.8);
}
.legal-terms-page .site-header.is-scrolled .nav-inner {
  background: rgba(10, 17, 25, 0.98);
  border-color: rgba(183, 202, 218, 0.24);
}

.legal-terms-page .seo-hero {
  padding-top: calc(var(--nav-h) + 26px);
  padding-bottom: clamp(38px, 5vw, 58px);
  background:
    radial-gradient(55% 100% at 88% 0%, rgba(41, 153, 190, 0.16), transparent 72%),
    radial-gradient(42% 86% at 10% 100%, rgba(133, 39, 59, 0.17), transparent 75%),
    linear-gradient(132deg, #101922 0%, #111b25 60%, #0c141d 100%);
  border-bottom-color: rgba(130, 161, 184, 0.18);
}
.legal-terms-page .seo-hero::after { opacity: 0.13; }
.legal-terms-page .legal-crumbs { margin-bottom: 20px; }
.legal-terms-page .legal-crumbs a { color: #c2ccd5; }
.legal-terms-page .legal-crumbs [aria-current="page"] { color: #f3f6f9; }
.legal-terms-page .seo-hero h1 {
  max-width: 22ch;
  color: #f2f6f9;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.legal-terms-page .seo-hero .lead {
  max-width: 68ch;
  margin-top: 17px;
  color: #c4cdd6;
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.7;
}
.legal-terms-page .seo-hero .kicker { color: var(--teal); }
.legal-terms-page .legal-updated {
  margin-top: 18px;
  color: #9eacb8;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
}

.legal-terms-page .legal-terms-section {
  position: relative;
  isolation: isolate;
  padding-block: clamp(38px, 5vw, 68px) clamp(64px, 8vw, 104px);
  background:
    radial-gradient(64% 45% at 88% 20%, rgba(12, 99, 134, 0.075), transparent 75%),
    linear-gradient(180deg, rgba(10, 17, 25, 0.84), #090f16 80%);
  color: var(--text-muted);
}
.legal-terms-page .legal-terms-section.section-sep { border-top-color: rgba(164, 189, 207, 0.13); }
.legal-terms-page .legal-layout {
  width: min(100%, 1240px);
  margin-inline: auto;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: clamp(38px, 6vw, 88px);
  align-items: start;
}
.legal-terms-page .legal-doc {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  max-width: 76ch;
  margin: 0;
  gap: clamp(28px, 3.5vw, 40px);
  color: #c2ccd5;
  font-size: clamp(16px, 1.12vw, 17.5px);
  line-height: 1.78;
}
.legal-terms-page .legal-doc > section {
  gap: 13px;
  padding-bottom: clamp(24px, 2.8vw, 34px);
  border-bottom: 1px solid rgba(164, 189, 207, 0.13);
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.legal-terms-page .legal-doc > section:last-child { padding-bottom: 0; border-bottom: 0; }
.legal-terms-page .legal-doc h2 {
  max-width: 38ch;
  margin: 0;
  color: #f0f4f7;
  font-size: clamp(22px, 2.15vw, 28px);
  line-height: 1.28;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}
.legal-terms-page .legal-doc h2 .legal-num {
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}
.legal-terms-page .legal-doc p { color: #c1cbd4; line-height: 1.78; }
.legal-terms-page .legal-doc strong { color: #f0f4f7; }
.legal-terms-page .legal-doc .seo-list { gap: 8px; margin-top: 5px; }
.legal-terms-page .legal-doc .seo-list li { color: #c1cbd4; }
.legal-terms-page .legal-doc .seo-list li::before {
  width: 5px;
  height: 5px;
  background: var(--cyan);
  box-shadow: none;
}
.legal-terms-page .legal-doc a {
  color: #69d8f3;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(105, 216, 243, 0.48);
  text-underline-offset: 0.2em;
  border: 0;
}
.legal-terms-page .legal-doc a:hover { color: #b7f1fc; text-decoration-color: currentColor; }
.legal-terms-page .legal-doc a:focus-visible,
.legal-terms-page .legal-toc a:focus-visible {
  outline: 2px solid #83e7f7;
  outline-offset: 3px;
}
.legal-terms-page .legal-doc > section:target {
  outline: 2px solid rgba(66, 200, 238, 0.42);
  outline-offset: 9px;
  border-radius: 4px;
}

.legal-terms-page .legal-toc {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  max-height: calc(100vh - var(--nav-h) - 40px);
  overflow-y: auto;
  gap: 0;
  padding: 17px 15px 14px;
  border-color: rgba(165, 191, 211, 0.17);
  border-radius: 11px;
  background: rgba(16, 26, 37, 0.88);
  box-shadow: 0 16px 42px -34px rgba(0, 0, 0, 0.9);
  scrollbar-color: rgba(105, 216, 243, 0.36) transparent;
  scrollbar-width: thin;
}
.legal-terms-page .legal-toc-label {
  margin: 0 8px 10px;
  color: #91a3b1;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.legal-terms-page .legal-toc-links { display: grid; gap: 3px; }
.legal-terms-page .legal-toc a {
  padding: 7px 8px;
  border-left: 2px solid transparent;
  border-radius: 2px 6px 6px 2px;
  color: #b6c2cc;
  font-size: 0.82rem;
  line-height: 1.42;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}
.legal-terms-page .legal-toc a:hover,
.legal-terms-page .legal-toc a:focus-visible {
  color: #f3f7fa;
  background: rgba(55, 161, 195, 0.09);
  border-left-color: var(--cyan);
}

.legal-terms-page .site-footer {
  border-top-color: rgba(164, 189, 207, 0.14);
  background:
    radial-gradient(58% 115% at 8% 0%, rgba(27, 125, 155, 0.09), transparent 72%),
    radial-gradient(60% 110% at 94% 12%, rgba(131, 35, 55, 0.11), transparent 70%),
    #090f16;
}
.legal-terms-page .footer-panel {
  background: linear-gradient(180deg, rgba(18, 29, 41, 0.96), rgba(13, 22, 32, 0.96));
  border-color: rgba(165, 191, 211, 0.18);
  box-shadow: 0 28px 72px -48px rgba(0, 0, 0, 0.8);
}
.legal-terms-page .footer-panel::before {
  background-image:
    linear-gradient(to right, rgba(161, 194, 214, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(161, 194, 214, 0.035) 1px, transparent 1px);
}
.legal-terms-page .footer-mail,
.legal-terms-page .footer-linkedin { background: rgba(9, 16, 24, 0.68); }
.legal-terms-page .footer-legal { border-top-color: rgba(164, 189, 207, 0.15); }

@media (max-width: 1060px) {
  .legal-terms-page .legal-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .legal-terms-page .legal-toc,
  .legal-terms-page .legal-doc { grid-column: 1; position: static; }
  .legal-terms-page .legal-toc { grid-row: 1; max-height: none; overflow: visible; }
  .legal-terms-page .legal-doc { grid-row: 2; }
  .legal-terms-page .legal-toc-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .legal-terms-page .seo-hero { padding-top: calc(var(--nav-h) + 16px); }
  .legal-terms-page .legal-crumbs { margin-bottom: 17px; }
  .legal-terms-page .legal-terms-section { padding-top: 26px; }
  .legal-terms-page .legal-layout { gap: 24px; }
  .legal-terms-page .legal-toc { padding: 13px 11px 11px; }
  .legal-terms-page .legal-toc-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
  .legal-terms-page .legal-toc a { padding: 7px 7px; font-size: 0.78rem; line-height: 1.38; }
  .legal-terms-page .legal-doc { font-size: 16px; line-height: 1.76; gap: 29px; }
  .legal-terms-page .legal-doc h2 { font-size: clamp(22px, 6vw, 25px); }
}
@media (max-width: 350px) {
  .legal-terms-page .legal-toc-links { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .legal-terms-page .legal-toc a { transition: none; }
}
@media print {
  body.legal-terms-page { --bg-0: #fff; --text: #111; --text-muted: #222; color-scheme: light; }
  .legal-terms-page .seo-hero { padding: 20px 0; background: #fff; color: #000; }
  .legal-terms-page .seo-hero h1,
  .legal-terms-page .seo-hero .lead,
  .legal-terms-page .legal-doc,
  .legal-terms-page .legal-doc p,
  .legal-terms-page .legal-doc h2,
  .legal-terms-page .legal-doc strong { color: #111; }
  .legal-terms-page .legal-terms-section { background: #fff; }
  .legal-terms-page .legal-doc a { color: #111; }
  .legal-terms-page .legal-doc > section { border-color: #ccc; }
}
