/* ==========================================================================
   CARTA MAGNA — Legal documents
   ==========================================================================
   Standalone prose pages: Aviso legal and Política de privacidad. They reuse
   the marketing tokens, the light nav (escena.css) and the shared footer
   (home-chrome.css); this file only adds the document layer.

   The identification blocks are supplied as images (assets/img/businessdata.png
   and assets/img/emaildata.png), so they are treated as figures: responsive,
   never cropped, with an accessible alt text.
   ========================================================================== */

.lg-main {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(40px, 7vh, 88px));
  padding-bottom: clamp(72px, 10vw, 144px);
  background: var(--es-field);
  color: var(--text);
}

.lg-shell {
  max-width: 880px;
}

/* --------------------------------------------------------------------------
   Head — eyebrow, document title and the legal switcher
   -------------------------------------------------------------------------- */
.lg-head {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2vw, 18px);
  padding-bottom: clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--border-light);
}

.lg-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--magna-600);
}
.lg-eyebrow::before {
  content: "";
  width: 34px;
  height: 1.5px;
  background: currentColor;
}

.lg-title {
  margin: 0;
  font-family: var(--font-inscription);
  font-size: clamp(2.2rem, 1.2rem + 4vw, 4.4rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--text-strong);
  text-wrap: balance;
  overflow-wrap: break-word;
}

.lg-updated {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--text-muted);
}

.lg-docs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: var(--fs-small);
  color: var(--text-muted);
}
.lg-docs a {
  color: var(--magna-600);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lg-docs a:hover {
  color: var(--magna-700);
}
.lg-docs [aria-current="page"] {
  color: var(--text-strong);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Document body
   -------------------------------------------------------------------------- */
.lg-article {
  padding-top: clamp(28px, 4vw, 44px);
}

.lg-article h2 {
  margin: clamp(34px, 5vw, 52px) 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 1.2rem + 0.8vw, 1.9rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-strong);
  text-wrap: pretty;
}
.lg-article h2:first-child {
  margin-top: 0;
}

.lg-article p {
  margin: 0 0 1em;
  color: var(--text-muted);
  line-height: 1.75;
  text-wrap: pretty;
}

.lg-article ul {
  margin: 0 0 1.2em;
  padding-left: 1.35em;
  list-style: disc;
}
.lg-article li {
  margin: 0 0 0.55em;
  color: var(--text-muted);
  line-height: 1.7;
}
.lg-article li::marker {
  color: var(--magna-600);
}
.lg-article strong {
  color: var(--text-strong);
  font-weight: 600;
}
.lg-article a {
  color: var(--magna-600);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lg-article a:hover {
  color: var(--magna-700);
}

/* Identification images (business data block and e-mail) */
.lg-figure {
  margin: 0 0 1.4em;
}
.lg-figure img {
  width: min(506px, 100%);
  height: auto;
}

.lg-email {
  display: inline-block;
  width: min(190px, 100%);
  height: auto;
  vertical-align: middle;
}

/* --------------------------------------------------------------------------
   Foot — back to the site
   -------------------------------------------------------------------------- */
.lg-foot {
  display: flex;
  justify-content: flex-start;
  margin-top: clamp(40px, 6vw, 64px);
  padding-top: clamp(24px, 4vw, 36px);
  border-top: 1px solid var(--border-light);
}

@media (max-width: 620px) {
  .lg-main {
    padding-top: calc(var(--nav-h) + 32px);
  }
}
