.legal-content {
  line-height: 1.6;
  font-size: 0.98rem;
  color: #111827;
}

.legal-content h1 {
  margin: 0 0 0.5rem 0;
  font-size: 1.35rem;
  line-height: 1.2;
}

.legal-content h2 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.2rem;
  line-height: 1.25;
}

.legal-content h3 {
  margin: 0.95rem 0 0.4rem;
  font-size: 1.02rem;
  line-height: 1.25;
}

.legal-content__updated {
  color: #6b7280;
  margin-bottom: 1rem;
}

.legal-content ul,
.legal-content ol {
  padding-left: 1.25rem;
}

.legal-content li + li {
  margin-top: 0.35rem;
}

.legal-content a {
  color: #2563eb;
  text-decoration: underline;
}

.legal-content a:hover {
  color: #1d4ed8;
}

/* Modal legal (namespaced para no colisionar con el modal del widget) */
.legal-modal[hidden] {
  display: none;
}

.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
}

.legal-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.legal-modal__dialog {
  position: relative;
  max-width: 900px;
  width: calc(100% - 2rem);
  margin: 2rem auto;
  background: #fff;
  border-radius: 14px;
  max-height: calc(100vh - 4rem);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  border: 1px solid #e5e7eb;
}

.legal-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #e5e7eb;
}

.legal-modal__title {
  font-weight: 800;
  font-size: 14px;
  color: #111827;
}

.legal-modal__close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.legal-modal__body {
  padding: 14px;
  overflow: auto;
  max-height: calc(100vh - 8rem);
}

@media (max-width: 640px) {
  .legal-modal__dialog {
    width: 100%;
    margin: 0;
    border-radius: 0;
    max-height: 100vh;
  }
  .legal-modal__body {
    max-height: calc(100vh - 56px);
  }
}