/* ═══════════════════════════════════════════════════════════════════
   legal.css — Strategic Mates · Privacy Policy & Terms of Service
   layout.css ya define: body, .container, variables CSS, reset
═══════════════════════════════════════════════════════════════════ */

/* ── Eyebrow ── */
.eyebrow {
  display: block;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-strong);
  margin-bottom: 10px;
  text-align: center;
}

/* ══════════════════════════════════════════════════════
   HERO — cabecera de página legal
══════════════════════════════════════════════════════ */
.lg-hero {
  background: var(--navy);
  padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Patrón tablero de fondo decorativo */
.lg-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(216,184,128,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216,184,128,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.lg-hero__inner {
  position: relative; z-index: 1;
}
.lg-hero__title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.08;
  margin: 0 0 16px;
}
.lg-hero__meta {
  font-size: .82rem;
  color: rgba(255,255,255,.5);
  margin: 0;
}
.lg-hero__meta strong {
  color: var(--gold);
  font-weight: 700;
}

/* ══════════════════════════════════════════════════════
   LAYOUT PRINCIPAL — sidebar + contenido
══════════════════════════════════════════════════════ */
.lg-wrap {
  padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 120px);
  background: var(--paper);
}

.lg-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  max-width: 1200px;
  margin-inline: auto;
}

/* En pantallas muy grandes: mismo max-width pero con padding lateral del container */
@media (min-width: 1600px) {
  .lg-layout {
    grid-template-columns: 260px 1fr;
    gap: 96px;
  }
}

@media (max-width: 860px) {
  .lg-layout {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════════════════════
   SIDEBAR — índice de secciones (sticky)
══════════════════════════════════════════════════════ */
.lg-sidebar {
  position: sticky;
  top: calc(var(--offset-total, 68px) + 24px);
  background: var(--off-white);
  border: 1px solid var(--gold-border);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 20px 18px;
}

.lg-sidebar__title {
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-strong);
  margin: 0 0 14px;
}

.lg-sidebar__nav {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 2px;
}

.lg-sidebar__nav a {
  display: block;
  font-size: .8rem;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: var(--r-xs);
  transition: background .15s, color .15s;
  line-height: 1.4;
}
.lg-sidebar__nav a:hover {
  background: var(--gold-pale);
  color: var(--navy);
}
.lg-sidebar__nav a.is-active {
  background: var(--navy);
  color: var(--gold);
  font-weight: 600;
}

/* Ocultar sidebar en móvil */
@media (max-width: 860px) {
  .lg-sidebar { position: static; }
}

/* ══════════════════════════════════════════════════════
   CONTENIDO LEGAL
══════════════════════════════════════════════════════ */
.lg-content {
  min-width: 0; /* evita overflow en grid */
}

/* Sección individual */
.lg-section {
  margin-bottom: clamp(40px, 5vw, 64px);
  scroll-margin-top: calc(var(--offset-total, 68px) + 32px);
}
.lg-section:last-child { margin-bottom: 0; }

/* Número + Título de sección */
.lg-section__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--gray);
}
.lg-section__num {
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--gold-strong);
  flex-shrink: 0;
  padding: 4px 10px;
  background: var(--gold-pale);
  border-radius: var(--r-xs);
}
.lg-section__h {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 800;
  color: var(--navy);
  margin: 0;
  line-height: 1.25;
}

/* Párrafos */
.lg-content p {
  font-size: .92rem;
  color: var(--muted);
  line-height: 1.8;
  margin: 0 0 14px;
}
.lg-content p:last-child { margin-bottom: 0; }

/* Strong dentro del texto */
.lg-content strong {
  color: var(--ink);
  font-weight: 700;
}

/* Listas */
.lg-content ul,
.lg-content ol {
  padding-left: 0;
  margin: 12px 0 16px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lg-content ul li,
.lg-content ol li {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.65;
  padding: 8px 12px 8px 32px;
  position: relative;
  background: var(--navy-soft);
  border-radius: var(--r-sm);
}
.lg-content ul li::before {
  content: '›';
  position: absolute; left: 12px;
  color: var(--gold-strong);
  font-weight: 900; font-size: 1rem;
}
.lg-content ol {
  counter-reset: legal-counter;
}
.lg-content ol li {
  counter-increment: legal-counter;
}
.lg-content ol li::before {
  content: counter(legal-counter) '.';
  position: absolute; left: 10px;
  color: var(--gold-strong);
  font-weight: 800; font-size: .78rem;
}

/* Links dentro del contenido */
.lg-content a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--gold-border);
  text-underline-offset: 3px;
  transition: color .15s, text-decoration-color .15s;
}
.lg-content a:hover {
  color: var(--gold-strong);
  text-decoration-color: var(--gold-strong);
}

/* Bloque destacado (aviso, info) */
.lg-notice {
  background: var(--navy);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 18px 20px;
  margin: 20px 0;
}
.lg-notice p {
  color: rgba(255,255,255,.78) !important;
  margin: 0 !important;
  font-size: .86rem !important;
}
.lg-notice strong { color: var(--gold) !important; }

/* Tabla de contacto / datos */
.lg-contact-box {
  background: var(--off-white);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-md);
  padding: 20px 22px;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lg-contact-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 8px;
  font-size: .86rem;
}
.lg-contact-row dt {
  font-weight: 700;
  color: var(--navy);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding-top: 2px;
}
.lg-contact-row dd {
  color: var(--muted);
  margin: 0;
}
.lg-contact-row dd a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}
.lg-contact-row dd a:hover { color: var(--gold-strong); }

/* ══════════════════════════════════════════════════════
   WILL-REVEAL
══════════════════════════════════════════════════════ */
.will-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .45s ease-out, transform .45s ease-out;
}
.will-reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .will-reveal { transition: none; opacity: 1; transform: none; }
}