.tt-legal-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, .5);
}

.tt-legal-modal.show { display: flex; }

.tt-legal-modal .tt-box {
  width: min(860px, 100%);
  max-height: 80vh;
  overflow: auto;
  padding: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  color: #111;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
}

html.dark .tt-legal-modal .tt-box {
  border-color: #374151;
  background: #111827;
  color: #e5e7eb;
}

.tt-legal-modal h2 { margin: 0 0 12px; font-size: 20px; font-weight: 700; }
.tt-legal-modal h3 { margin: 16px 0 8px; font-size: 16px; font-weight: 700; }
.tt-legal-modal p { margin: 8px 0; line-height: 1.55; }
.tt-legal-modal a { color: #4f46e5; text-decoration: underline; text-underline-offset: 2px; }
html.dark .tt-legal-modal a { color: #a5b4fc; }
.tt-legal-modal .tt-actions { display: flex; justify-content: flex-end; margin-top: 16px; }

.tt-legal-modal .tt-btn {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #f9fafb;
  cursor: pointer;
}

html.dark .tt-legal-modal .tt-btn {
  border-color: #374151;
  background: #1f2937;
  color: #e5e7eb;
}

.tt-footer-brand-link {
  color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

.tt-counter-pixel {
  position: absolute;
  left: -9999px;
}
