/* Legal modal — copied from untxt-landing for the signup Terms-of-Service flow.
   Self-contained styling so it can drop into any auth page without depending
   on the landing page's full CSS bundle. */

.legal-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.legal-modal--visible {
  opacity: 1;
  pointer-events: all;
}

.legal-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.legal-modal__content {
  position: relative;
  background: #f3f0e7;
  border: 1px solid #d4d0c5;
  border-radius: 8px;
  max-width: 800px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 3rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.legal-modal--visible .legal-modal__content {
  transform: scale(1);
}

.legal-modal__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: 1px solid #666;
  font-size: 2rem;
  line-height: 1;
  color: #666;
  cursor: pointer;
  padding: 0.25rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
  border-radius: 50%;
  z-index: 10;
}

.legal-modal__close:hover {
  color: #1a1a1a;
  background: rgba(0, 0, 0, 0.05);
}

.legal-modal__close:focus-visible {
  outline: 2px solid #A0E000;
  outline-offset: 2px;
}

.legal-modal__inner {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1a1a1a;
  line-height: 1.7;
}

.legal-modal__inner h1 {
  font-family: 'n27bold', sans-serif;
  font-size: 2rem;
  margin: 0 0 1.5rem 0;
  line-height: 1.2;
}

.legal-modal__updated {
  color: #666;
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.legal-modal__inner section {
  border-bottom: 1px solid #d4d0c5;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

.legal-modal__inner section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
}

.legal-modal__inner h2 {
  font-family: 'n27bold', sans-serif;
  font-size: 1.125rem;
  margin: 0 0 1rem 0;
  color: #1a1a1a;
}

.legal-modal__inner p {
  margin: 0 0 1rem 0;
  font-size: 0.9375rem;
}

.legal-modal__inner p:last-child {
  margin-bottom: 0;
}

.legal-modal__inner ul {
  margin: 0 0 1rem 0;
  padding-left: 1.5rem;
}

.legal-modal__inner li {
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
}

.legal-modal__inner strong {
  font-weight: 700;
}

.legal-highlight {
  background: rgba(160, 224, 0, 0.15);
  padding: 0.75rem 1rem;
  border-radius: 4px;
  font-size: 0.875rem;
}

.legal-contact {
  background: #f3f0e7;
  border: 1px solid #d4d0c5;
  border-radius: 6px;
  padding: 1.25rem;
  margin-top: 1rem;
}

.legal-contact p {
  margin-bottom: 0.25rem;
  font-size: 0.9375rem;
}

.legal-contact p:last-child {
  margin-bottom: 0;
}

.legal-modal__footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #d4d0c5;
  color: #666;
  font-size: 0.875rem;
}

/* Inline checkbox + link used in the signup form */
.terms-accept-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 4px;
}

.terms-accept-row input[type="checkbox"] {
  margin-top: 3px;
  cursor: pointer;
  flex-shrink: 0;
}

.terms-accept-row label {
  font-size: 13px;
  line-height: 1.5;
  color: var(--gray-600, #4a4540);
  cursor: pointer;
}

.terms-accept-link {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: var(--primary, #7ba82e);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.terms-accept-link:hover {
  text-decoration: none;
}

/* Responsive */
@media (max-width: 767px) {
  .legal-modal {
    padding: 0;
    align-items: flex-end;
  }

  .legal-modal__content {
    max-width: 100%;
    max-height: 100%;
    height: 100%;
    border-radius: 0;
    padding: 2rem 1.5rem;
    transform: translateY(100%);
  }

  .legal-modal--visible .legal-modal__content {
    transform: translateY(0);
  }

  .legal-modal__close {
    width: 48px;
    height: 48px;
  }

  .legal-modal__inner h1 {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .legal-modal__content {
    padding: 1.5rem 1rem;
  }

  .legal-modal__close {
    top: 1rem;
    right: 1rem;
  }

  .legal-modal__inner h1 {
    font-size: 1.5rem;
  }
}
</content>
</invoke>