/* ════════════════════════════════════════════════════════════
   PAGE — plantilla genérica para páginas legales
   Depende de variables.css y global.css
   ════════════════════════════════════════════════════════════ */

/* ── HERO ─────────────────────────────────────────────────── */
.lg-hero {
  background: var(--color-dark);
  padding: 88px var(--space-content) 80px;
  position: relative; overflow: hidden;
  text-align: center;
}

.lg-hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px; pointer-events: none;
}

.lg-hero-glow {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(255,92,0,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.lg-hero-inner {
  position: relative; z-index: 2;
  max-width: 720px; margin: 0 auto;
}

/* Label "LEGAL" */
.lg-label {
  display: inline-flex; align-items: center; gap: 8px;
  justify-content: center;
  font-size: 11px; color: var(--color-accent);
  letter-spacing: 1.8px; text-transform: uppercase;
  font-weight: 600; margin-bottom: 20px;
}
.lg-label::before,
.lg-label::after {
  content: ''; display: block;
  width: 20px; height: 2px;
  background: var(--color-accent);
}

/* Título */
.lg-title {
  font-family: var(--font-heading); font-weight: 700;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.1; letter-spacing: -1.5px;
  color: var(--color-dark-text);
  margin-bottom: 16px;
}

/* Fecha de última actualización */
.lg-date {
  font-size: 13px; color: var(--color-dark-muted);
}
.lg-date time { font-weight: 500; }

/* ── CUERPO DE CONTENIDO ──────────────────────────────────── */
.lg-body {
  padding: 72px var(--space-content) 96px;
  background: var(--color-light);
}

.lg-content {
  max-width: 720px; margin: 0 auto;
  font-size: 17px; line-height: 1.8;
  color: var(--color-text);
}

/* Párrafos */
.lg-content p {
  margin-bottom: 24px;
}
.lg-content p:last-child { margin-bottom: 0; }

/* Headings */
.lg-content h2 {
  font-family: var(--font-heading); font-weight: 700;
  font-size: 24px; letter-spacing: -0.6px; line-height: 1.2;
  color: var(--color-text);
  margin: 48px 0 14px;
  padding-top: 8px;
  border-top: 1px solid var(--color-border);
}
.lg-content h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }

.lg-content h3 {
  font-family: var(--font-heading); font-weight: 600;
  font-size: 18px; letter-spacing: -0.3px; line-height: 1.3;
  color: var(--color-text);
  margin: 32px 0 10px;
}

.lg-content h4 {
  font-family: var(--font-heading); font-weight: 600;
  font-size: 16px;
  color: var(--color-text);
  margin: 24px 0 8px;
}

/* Listas */
.lg-content ul,
.lg-content ol {
  margin: 0 0 24px 0;
  padding-left: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.lg-content ul li {
  list-style: none; position: relative;
  padding-left: 20px;
  line-height: 1.7;
}
.lg-content ul li::before {
  content: '→'; position: absolute; left: 0;
  color: var(--color-accent); font-weight: 700;
}
.lg-content ol {
  counter-reset: lg-counter;
}
.lg-content ol li {
  list-style: none; position: relative;
  padding-left: 28px; line-height: 1.7;
  counter-increment: lg-counter;
}
.lg-content ol li::before {
  content: counter(lg-counter) '.';
  position: absolute; left: 0;
  color: var(--color-accent); font-weight: 600;
  font-family: var(--font-heading); font-size: 15px;
}

/* Enlaces */
.lg-content a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lg-content a:hover { text-decoration: none; }

/* Strong / em */
.lg-content strong { font-weight: 600; color: var(--color-text); }
.lg-content em { font-style: italic; }

/* Blockquote */
.lg-content blockquote {
  margin: 32px 0; padding: 20px 24px;
  border-left: 3px solid var(--color-accent);
  background: var(--color-light-2);
  border-radius: 0 8px 8px 0;
  font-size: 16px; color: var(--color-muted);
  font-style: italic; line-height: 1.8;
}
.lg-content blockquote p { margin: 0; }

/* Tabla */
.lg-content table {
  width: 100%; border-collapse: collapse;
  margin: 28px 0; font-size: 15px;
  overflow-x: auto; display: block;
}
.lg-content th {
  background: var(--color-light-2);
  font-family: var(--font-heading); font-weight: 700;
  padding: 12px 16px; text-align: left;
  border-bottom: 2px solid var(--color-border);
  white-space: nowrap;
}
.lg-content td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

/* Línea horizontal */
.lg-content hr {
  border: none; border-top: 1px solid var(--color-border);
  margin: 48px 0;
}

/* Código inline */
.lg-content code {
  background: var(--color-light-2);
  color: var(--color-accent);
  padding: 2px 6px; border-radius: 4px;
  font-size: 0.9em; font-family: 'Courier New', monospace;
  border: 1px solid var(--color-border);
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .lg-hero { padding: 64px 24px 56px; }
  .lg-body  { padding: 48px 24px 72px; }
  .lg-title { font-size: 26px; letter-spacing: -0.8px; }
  .lg-content { font-size: 16px; }
  .lg-content h2 { font-size: 21px; }
  .lg-content h3 { font-size: 17px; }
}

@media (max-width: 480px) {
  .lg-title { font-size: 22px; }
}
