/* ==============================
   LEGAL PAGES (TERMS / PRIVACY)
================================ */

.legal-page {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  height: calc(100vh - 56px - 56px); /* header + footer */
}

.legal-page {
  overflow-y: auto;
  max-height: calc(100vh - 160px); /* header + botones */
}

.legal-scroll {
  flex: 1;
  overflow-y: auto;
  padding-right: 6px;
}

/* TITLE */
.legal-page h1 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
}

/* UPDATED DATE */
.legal-updated {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 16px;
}

/* SECTIONS */
.legal-page h2 {
  font-size: 15px;
  font-weight: 600;
  margin-top: 22px;
  margin-bottom: 8px;
  color: #111827;
}

.legal-page h3 {
  font-size: 14px;
  font-weight: 600;
  margin-top: 16px;
  margin-bottom: 6px;
  color: #374151;
}

/* TEXT */
.legal-page p {
  font-size: 14px;
  line-height: 1.6;
  color: #374151;
  margin-bottom: 10px;
}

/* LISTS */
.legal-page ul {
  padding-left: 18px;
  margin-bottom: 12px;
}

.legal-page li {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 6px;
  color: #374151;
}

/* EMPHASIS */
.legal-page strong {
  font-weight: 600;
  color: #111827;
}

/* ACCEPTANCE TEXT */
.legal-acceptance {
  margin-top: 24px;
  font-size: 13px;
  color: #374151;
  font-weight: 500;
}

/* ==============================
   SCROLL CONTAINER
================================ */

.legal-scroll-wrapper {
  max-height: 65vh;
  overflow-y: auto;
  padding-right: 6px;
  margin-bottom: 16px;
}

/* Scrollbar (optional, clean) */
.legal-scroll-wrapper::-webkit-scrollbar {
  width: 6px;
}

.legal-scroll-wrapper::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 999px;
}

/* ==============================
   ACCEPT BUTTON
================================ */

.legal-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.legal-actions button {
  flex: 1;
  height: 44px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
}

.legal-actions .btn-accept {
  height: 46px;
  border-radius: 12px;
  border: none;
  background: var(--color-primary);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.2s;
}

.legal-actions .btn-accept.enabled {
  opacity: 1;
  pointer-events: auto;
}

/* CANCEL / BACK (optional) */
.legal-actions .btn-cancel {
  background: none;
  border: none;
  font-size: 13px;
  color: #6b7280;
  cursor: pointer;
}

.legal-actions-inline {
  display: flex;
  gap: 12px;
}

.legal-actions-inline button {
  flex: 1;
  height: 44px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
}

.btn-cancel {
  background: #f3f4f6;
  color: #374151;
  border: none;
}

/* ACCEPT BUTTON STATES */

.btn-accept {
  background: #e5e7eb; /* gris cuando NO puede aceptar */
  color: #9ca3af;
  pointer-events: none;
  transition:
    background 0.2s,
    color 0.2s;
}

.btn-accept.enabled {
  background: var(--color-primary); /* azul cuando SÍ puede aceptar */
  color: #ffffff;
  pointer-events: auto;
}

.btn-accept:disabled {
  opacity: 0.5;
}

.legal-actions button {
  width: auto !important;
}
