/* Páginas legales (Aviso de privacidad, Términos y condiciones): maquetación editorial de lectura cómoda. */
:root {
  --lg-ink: #0f0f10;
  --lg-muted: #5d5c58;
  --lg-line: #dcdbd6;
  --lg-paper: #f4f4f1;
  --lg-blue: #00249c;
  --fd: "Bebas Neue", "Barlow Condensed", sans-serif;
  --ft: "Barlow Condensed", sans-serif;
  --fb: "DM Sans", system-ui, sans-serif;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  background: var(--lg-paper);
}
body {
  margin: 0;
  background: var(--lg-paper);
  color: var(--lg-ink);
  font-family: var(--fb);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}

.lg-hero {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(130px, 14vw, 190px) 0 clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--lg-line);
}
.lg-kicker {
  display: block;
  margin: 0 0 18px;
  color: var(--lg-muted);
  font-family: var(--ft);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.lg-hero h1 {
  margin: 0;
  font-family: var(--fd);
  font-size: clamp(3.4rem, 8vw, 7.4rem);
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.lg-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 26px;
  color: var(--lg-muted);
  font-family: var(--ft);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lg-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(40px, 5vw, 64px) 0 clamp(90px, 10vw, 140px);
}
.lg-toc {
  position: sticky;
  top: 110px;
  align-self: start;
  max-height: calc(100dvh - 140px);
  overflow: auto;
  padding: 22px;
  border: 1px solid var(--lg-line);
  border-radius: 16px;
  background: #fff;
}
.lg-toc strong {
  display: block;
  margin-bottom: 14px;
  font-family: var(--ft);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.lg-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}
.lg-toc li {
  counter-increment: toc;
}
.lg-toc a {
  display: flex;
  gap: 10px;
  padding: 7px 0;
  color: var(--lg-muted);
  font-size: 0.9rem;
  line-height: 1.35;
  text-decoration: none;
  transition: color 0.2s;
}
.lg-toc a::before {
  content: counter(toc, decimal-leading-zero);
  min-width: 2ch;
  color: #9a9893;
  font-family: var(--ft);
  font-weight: 800;
}
.lg-toc a:hover {
  color: var(--lg-blue);
}

.lg-doc {
  max-width: 780px;
  font-size: 1.02rem;
  line-height: 1.75;
  color: #2a2a2a;
}
.lg-doc section {
  scroll-margin-top: 110px;
  padding: 0 0 34px;
  margin: 0 0 34px;
  border-bottom: 1px solid var(--lg-line);
}
.lg-doc section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}
.lg-doc h2 {
  margin: 0 0 16px;
  color: var(--lg-ink);
  font-family: var(--fd);
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}
.lg-doc h3 {
  margin: 24px 0 8px;
  color: var(--lg-ink);
  font-family: var(--ft);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lg-doc p {
  margin: 0 0 14px;
}
.lg-doc ul {
  margin: 0 0 16px;
  padding-left: 1.2em;
}
.lg-doc li {
  margin: 0 0 6px;
}
.lg-doc strong {
  color: var(--lg-ink);
}
.lg-doc a {
  color: var(--lg-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lg-card {
  margin: 18px 0;
  padding: 20px 22px;
  border: 1px solid var(--lg-line);
  border-radius: 14px;
  background: #fff;
}
.lg-card p:last-child,
.lg-card ul:last-child {
  margin-bottom: 0;
}
.lg-data {
  display: grid;
  grid-template-columns: minmax(150px, 0.42fr) 1fr;
  margin: 0;
  border: 1px solid var(--lg-line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.lg-data dt,
.lg-data dd {
  margin: 0;
  padding: 12px 16px;
  border-bottom: 1px solid var(--lg-line);
}
.lg-data dt {
  color: var(--lg-muted);
  font-family: var(--ft);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #fafaf8;
}
.lg-data dt:last-of-type,
.lg-data dd:last-of-type {
  border-bottom: 0;
}

@media (max-width: 900px) {
  .lg-layout {
    grid-template-columns: 1fr;
  }
  .lg-toc {
    position: static;
    max-height: none;
  }
}
@media (max-width: 560px) {
  .lg-hero,
  .lg-layout {
    width: calc(100% - 32px);
  }
  .lg-doc {
    font-size: 0.98rem;
  }
  .lg-data {
    grid-template-columns: 1fr;
  }
  .lg-data dt {
    border-bottom: 0;
    padding-bottom: 2px;
  }
}
