/* ==========================================================================
   Páginas legales (devoluciones.html, arrepentimiento.html). Usan style.css y, de checkout.css, la barra de arriba,
   los campos y el pie.
   ========================================================================== */
.lg-top { grid-template-columns: auto 1fr; }
.lg-back { justify-self: end; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; color: var(--muted); font: 600 14px/1 var(--font-head); text-decoration: none; }
.lg-back:hover { color: var(--ink); }
.lg-back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.legal { width: min(760px, 100% - 2 * var(--gutter)); margin: 0 auto; padding: clamp(28px, 6vw, 56px) 0 64px; }
.legal h1 { margin: 0; font: 800 clamp(28px, 5vw, 40px)/1.1 var(--font-head); letter-spacing: -0.02em; }
.legal__lead { margin: 12px 0 0; font-size: 16px; line-height: 1.6; color: var(--muted); }
.legal h2 { margin: 40px 0 10px; font: 700 20px/1.25 var(--font-head); }
.legal h3 { margin: 22px 0 6px; font: 700 15.5px/1.35 var(--font-head); color: var(--gold-2); }
.legal p, .legal li { font-size: 15px; line-height: 1.65; color: #d6d1c6; }
.legal p { margin: 8px 0 0; }
.legal ul, .legal ol { display: grid; gap: 6px; margin: 8px 0 0; padding-left: 22px; }
.legal a { color: var(--gold-2); text-underline-offset: 3px; }
.legal__card { margin-top: 28px; padding: clamp(18px, 4vw, 28px); border: 1px solid var(--line-2); border-radius: 18px; background: rgba(255, 255, 255, 0.02); }
.legal__card > :first-child { margin-top: 0; }
.legal__note { color: var(--muted) !important; font-size: 13.5px !important; }
.legal__more { margin-top: 24px !important; }

/* formulario del botón de arrepentimiento */
.lg-form { margin-top: 28px; }
.co-field textarea { width: 100%; min-height: 104px; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line-2); background: #111117; color: var(--ink);
  font: 500 15px/1.5 var(--font-body); resize: vertical; outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.co-field textarea:focus { border-color: rgba(230, 182, 85, 0.7); box-shadow: 0 0 0 3px rgba(230, 182, 85, 0.13); }
.co-field textarea::placeholder { color: #949087; }
.lg-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lg-form .co-error { min-height: 0; margin: 14px 0 0; color: #fca5a5; font-size: 13.5px; }
.lg-form .co-error:empty { display: none; }
.lg-send { margin-top: 18px; }
.lg-captcha { margin-top: 16px; min-height: 65px; }          /* el alto del recuadro: que no salte el botón al aparecer */
.lg-captcha:empty::before { content: "Cargando la verificación…"; display: block; padding-top: 22px; color: var(--muted); font-size: 13px; }

/* el código, después de enviar */
.lg-done { text-align: center; }
.lg-done__ok { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; background: rgba(230, 182, 85, 0.12); border: 1px solid rgba(230, 182, 85, 0.5); }
.lg-done__ok svg { width: 26px; height: 26px; fill: none; stroke: var(--gold); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.lg-done h2 { margin-top: 0; }
.lg-code { display: inline-block; margin: 14px 0 4px; padding: 12px 20px; border-radius: 14px; border: 1px dashed rgba(230, 182, 85, 0.6); background: rgba(230, 182, 85, 0.06);
  font: 800 clamp(24px, 6vw, 32px)/1 var(--font-head); letter-spacing: 0.06em; color: var(--gold-2); user-select: all; }
.lg-done__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.lg-done p { margin-left: auto; margin-right: auto; max-width: 52ch; }

@media (max-width: 560px) {
  .lg-send, .lg-done__actions .btn { width: 100%; }
}
