body.legal-page {
  margin: 0;
  background: #f8fafc;
  color: #1e293b;
  font-family: var(--font-sans, "Maison Neue", system-ui, sans-serif);
}

.legal-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.legal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 6vw;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.legal-nav a {
  color: #475569;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.legal-nav a:hover {
  color: #0284c7;
}

.legal-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.legal-brand img {
  height: 36px;
  width: 36px;
  object-fit: contain;
}

.legal-langs {
  display: flex;
  gap: 4px;
}

.legal-langs button {
  padding: 5px 11px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  font-weight: 500;
  background: transparent;
  color: #64748b;
}

.legal-langs button.active {
  background: #0284c7;
  color: #fff;
}

.legal-main {
  flex: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 6vw 72px;
  width: 100%;
  box-sizing: border-box;
}

.legal-main h1 {
  font-weight: 600;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin: 0 0 12px;
}

.legal-updated {
  font-family: var(--font-mono, monospace);
  font-size: 13px;
  color: #64748b;
  margin-bottom: 40px;
}

.legal-main h2 {
  font-size: 20px;
  font-weight: 600;
  color: #0284c7;
  margin: 32px 0 12px;
}

.legal-main p,
.legal-main li {
  font-size: 16px;
  line-height: 1.6;
  color: #334155;
  margin: 0 0 16px;
}

.legal-main ul {
  margin: 0 0 20px;
  padding-left: 24px;
}

.legal-main li {
  margin-bottom: 8px;
}

.legal-section {
  margin-bottom: 32px;
}

.legal-footer {
  border-top: 1px solid #e2e8f0;
  padding: 32px 6vw;
  background: #f1f5f9;
}

.legal-footer-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  color: #64748b;
  gap: 16px;
  flex-wrap: wrap;
}

.legal-footer-inner a {
  color: #0284c7;
  text-decoration: none;
}

.legal-footer-inner a:hover {
  text-decoration: underline;
}

/* Footer que generan compile.js y legal.js (.legal-links) */
.legal-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  color: #64748b;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.legal-links a {
  color: #0284c7;
  text-decoration: none;
}

.legal-links a:hover {
  text-decoration: underline;
}

.legal-links a.active,
.legal-links a[aria-current="page"] {
  color: #0f172a;
  font-weight: 600;
}

/* Formulario de contacto / eliminacion de cuenta (legal.js) */
.legal-form-wrap {
  margin: 8px 0 32px;
}

.legal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
}

.legal-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legal-field label {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
}

.legal-field input,
.legal-field select,
.legal-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  color: #1e293b;
  font: inherit;
  font-size: 15px;
}

.legal-field textarea {
  resize: vertical;
  min-height: 140px;
}

.legal-field input:focus,
.legal-field select:focus,
.legal-field textarea:focus {
  outline: none;
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.18);
}

/* Honeypot anti-spam: invisible para personas (si lo llenan, el envio se descarta) */
.legal-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.legal-form-submit {
  align-self: flex-start;
  padding: 11px 24px;
  border: none;
  border-radius: 999px;
  background: #0284c7;
  color: #ffffff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.legal-form-submit:hover {
  background: #0369a1;
}

.legal-form-submit:disabled {
  opacity: 0.6;
  cursor: default;
}

.legal-form-status {
  margin: 0 !important;
  font-size: 14px !important;
}

.legal-form-status--ok {
  color: #047857 !important;
}

.legal-form-status--err {
  color: #b91c1c !important;
}

@media (max-width: 600px) {
  .legal-nav {
    flex-wrap: wrap;
  }

  .legal-form {
    padding: 18px;
  }

  .legal-form-submit {
    align-self: stretch;
  }
}
