/* ── LP Legal Pages (Términos / Privacidad) ── */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --lp-bg: #090e1b;
  --lp-surface: #111827;
  --lp-border: rgba(255, 255, 255, 0.08);
  --lp-text: #d6e0f3;
  --lp-text-muted: #8a99b4;
  --lp-heading: #f9f5ef;
  --lp-gold: #d4af37;
  --lp-gold-hover: #e8c84a;
  --lp-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --lp-max-width: 800px;
}

body.lp-legal {
  background: var(--lp-bg);
  color: var(--lp-text);
  font-family: var(--lp-font);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── Header bar ── */

.lp-legal__header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 14, 27, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--lp-border);
  padding: 16px 24px;
}

.lp-legal__header-inner {
  max-width: var(--lp-max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.lp-legal__header-logo {
  height: 36px;
  width: auto;
}

.lp-legal__header-back {
  color: var(--lp-gold);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.lp-legal__header-back:hover {
  color: var(--lp-gold-hover);
}

/* ── Main content ── */

.lp-legal__wrap {
  max-width: var(--lp-max-width);
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.lp-legal__title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--lp-heading);
  margin-bottom: 8px;
  line-height: 1.2;
}

.lp-legal__updated {
  color: var(--lp-text-muted);
  font-size: 0.9rem;
  margin-bottom: 40px;
}

.lp-legal__intro {
  margin-bottom: 40px;
  font-size: 1.05rem;
}

/* ── Section headings ── */

.lp-legal__wrap h3 {
  color: var(--lp-heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--lp-border);
}

/* ── Paragraphs and lists ── */

.lp-legal__wrap p {
  margin-bottom: 16px;
}

.lp-legal__wrap ul,
.lp-legal__wrap ol {
  margin: 0 0 20px 24px;
}

.lp-legal__wrap li {
  margin-bottom: 8px;
}

.lp-legal__wrap li::marker {
  color: var(--lp-gold);
}

/* ── Links ── */

.lp-legal__wrap a {
  color: var(--lp-gold);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.lp-legal__wrap a:hover {
  color: var(--lp-gold-hover);
}

/* ── Table (Aviso de Privacidad) ── */

.lp-legal__wrap table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 0.9rem;
}

.lp-legal__wrap th,
.lp-legal__wrap td {
  text-align: left;
  padding: 10px 14px;
  border: 1px solid var(--lp-border);
}

.lp-legal__wrap th {
  background: rgba(212, 175, 55, 0.08);
  color: var(--lp-heading);
  font-weight: 600;
}

.lp-legal__wrap td {
  color: var(--lp-text);
}

/* ── Footer emphasis ── */

.lp-legal__consent-note {
  margin-top: 48px;
  padding: 20px 24px;
  background: rgba(212, 175, 55, 0.06);
  border-left: 3px solid var(--lp-gold);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--lp-text-muted);
  font-size: 0.95rem;
}

/* ── Footer ── */

.lp-legal__footer {
  border-top: 1px solid var(--lp-border);
  padding: 24px;
  text-align: center;
  color: var(--lp-text-muted);
  font-size: 0.85rem;
}

/* ── Responsive ── */

@media (max-width: 600px) {
  .lp-legal__wrap {
    padding: 32px 16px 60px;
  }

  .lp-legal__wrap table {
    display: block;
    overflow-x: auto;
  }
}
