/* ========== PÁGINAS LEGALES ========== */
.legal { padding: calc(var(--nav-h) + 70px) 0 var(--section-y); }
.legal .section-title { margin-bottom: 40px; }
.legal-block { margin-bottom: 34px; max-width: 75ch; }
.legal-block h2 { font-family: var(--font-body); font-size: 22px; font-weight: 500; margin-bottom: 10px; }
.legal-block p { color: var(--ink-soft); margin-bottom: 10px; }

/* Contenido legal (Markdown) */
.legal-body { max-width: 78ch; }
.legal-body h2 { margin: 44px 0 14px; font-family: var(--font-body); font-size: 22px; font-weight: 500; }
.legal-body h3 { margin: 28px 0 10px; font-family: var(--font-body); font-size: 19px; font-weight: 500; }
.legal-body p { margin-bottom: 14px; color: var(--ink-soft); font-size: 17px; line-height: 1.7; }
.legal-body ul { margin: 0 0 18px; padding-left: 22px; list-style: disc; color: var(--ink-soft); }
.legal-body li { margin-bottom: 8px; font-size: 17px; line-height: 1.6; }
.legal-body li::marker { color: var(--accent-text); }
.legal-body strong { color: var(--ink); font-weight: 500; }
.legal-body a { text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }
.legal-body hr { margin: 36px 0 0; border: 0; border-top: 1px solid var(--line); }
.table-wrap { margin: 10px 0 22px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.legal-body table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.legal-body th, .legal-body td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-body th { background: rgba(30, 41, 59, .6); color: var(--ink); font-weight: 500; }
.legal-body td { color: var(--ink-soft); }
.legal-body tr:last-child td { border-bottom: 0; }
.legal-actions { margin-top: 30px; }

/* ========== PÁGINA DE GRACIAS ========== */
.thanks { position: relative; overflow: hidden; isolation: isolate; padding: calc(var(--nav-h) + clamp(50px, 8vw, 100px)) 0 var(--section-y); }
.thanks-bg { position: absolute; inset: 0; z-index: -1; filter: blur(90px); pointer-events: none; }
.thanks .blob-a { width: 620px; height: 620px; left: -14%; top: -20%; background: radial-gradient(circle, rgba(15, 118, 110, .5), transparent 65%); }
.thanks .blob-b { width: 520px; height: 520px; right: -12%; top: 30%; background: radial-gradient(circle, rgba(100, 116, 139, .35), transparent 65%); animation-duration: 26s; }
.thanks-head { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 70px; }
.thanks-head .section-title { max-width: 18ch; margin-bottom: 18px; }
.thanks-head .section-lead { margin-bottom: 30px; }
.thanks-check {
  display: grid; place-items: center;
  width: 92px; height: 92px; margin-bottom: 26px;
  border-radius: 50%;
  border: 1px solid rgba(45, 212, 191, .5);
  background: radial-gradient(circle at 50% 30%, rgba(45, 212, 191, .3), var(--bg) 70%);
  color: var(--accent-text);
  box-shadow: 0 0 0 12px rgba(45, 212, 191, .06), 0 0 60px -10px var(--accent-glow);
  animation: pulse 2.6s infinite;
}
.thanks-steps-title { margin-bottom: 26px; text-align: center; font-family: var(--font-display); font-size: clamp(24px, 2.4vw, 30px); font-weight: 500; }
.thanks-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 0 0 22px; }
.thanks-step { position: relative; padding: 28px 24px 30px; }
.thanks-step .icon-circle { margin-bottom: 26px; }
.thanks-num { position: absolute; top: 20px; right: 22px; color: var(--steel); font-family: var(--font-display); font-size: 40px; font-weight: 500; line-height: 1; }
.thanks-note { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 60px; color: var(--muted); font-size: 15px; text-align: center; }
.thanks-note .ico { flex: none; color: var(--accent-text); }
.thanks-social { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: center; padding: 30px; }
.thanks-social .btn .ico { flex: none; }
.thanks-back { margin-top: 40px; text-align: center; }
.thanks-back a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 860px) {
  .thanks-steps { grid-template-columns: 1fr; }
  .thanks-social { grid-template-columns: 1fr; }
}
