/* ═══════════════════════════════════════════════════════════════
   LEGAL PAGES — Dark theme matching Mundle site
   ═══════════════════════════════════════════════════════════════ */

.legal-page {
  min-height: 100vh;
  background: #0a0a0c;
  color: rgba(255, 255, 255, 0.85);
  font-family: 'Inter', system-ui, sans-serif;
  padding: 48px 20px 64px;
}

.legal-page .container {
  max-width: 820px;
  margin: 0 auto;
}

/* Back link */
.legal-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
  margin-bottom: 32px;
}
.legal-back-link:hover {
  color: #e0358a;
}

/* Container */
.legal-container {
  max-width: 820px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 48px 52px 56px;
}

@media (max-width: 640px) {
  .legal-container {
    padding: 28px 20px 32px;
    border-radius: 14px;
  }
  .legal-page {
    padding: 24px 12px 48px;
  }
}

/* Header */
.legal-header {
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.legal-header h1 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #fafafa;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}
.legal-meta {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
  line-height: 1.7;
}
.legal-meta strong {
  color: rgba(255, 255, 255, 0.6);
}

/* Sections */
.legal-section {
  margin-bottom: 36px;
}
.legal-section h2 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fafafa;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.legal-section h3 {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin: 20px 0 10px;
}
.legal-section p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.92rem;
  line-height: 1.7;
  margin: 0 0 12px;
}
.legal-section a {
  color: #e0358a;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.legal-section a:hover {
  color: #ff4da6;
}
.legal-section ul, .legal-section ol {
  padding-left: 20px;
  margin: 8px 0 16px;
}
.legal-section li {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 4px;
}
.legal-section li strong {
  color: rgba(255, 255, 255, 0.75);
}

/* Highlight box */
.legal-section .highlight {
  background: rgba(195, 14, 110, 0.06);
  border-left: 3px solid rgba(195, 14, 110, 0.4);
  padding: 14px 18px;
  border-radius: 0 10px 10px 0;
  margin: 12px 0;
}

/* Tables */
.table-responsive {
  overflow-x: auto;
  margin: 12px 0 16px;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.data-table th {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.55);
}
.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Footer */
.legal-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}
.legal-footer p {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.82rem;
  margin: 0 0 6px;
}
.legal-note {
  font-size: 0.78rem !important;
  color: rgba(255, 255, 255, 0.2) !important;
}

/* ═══════════════════════════════════════════════════════════════
   LEGAL CONSENT CHECKBOX — shared across auth, checkout, contact
   ═══════════════════════════════════════════════════════════════ */
.legal-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0 4px;
  cursor: pointer;
  user-select: none;
}
.legal-consent input[type="checkbox"] {
  display: none;
}
.legal-consent .consent-check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  margin-top: 1px;
}
.legal-consent .consent-check svg {
  width: 12px;
  height: 12px;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s ease;
  stroke: #fff;
  stroke-width: 3;
  fill: none;
}
.legal-consent input[type="checkbox"]:checked + .consent-check {
  background: #C30E6E;
  border-color: #C30E6E;
}
.legal-consent input[type="checkbox"]:checked + .consent-check svg {
  opacity: 1;
  transform: scale(1);
}
.legal-consent:hover .consent-check {
  border-color: rgba(255, 255, 255, 0.25);
}
.legal-consent .consent-text {
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.4);
}
.legal-consent .consent-text a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}
.legal-consent .consent-text a:hover {
  color: #e0358a;
}

/* Error state for consent */
.legal-consent.consent-error .consent-check {
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15);
}
.legal-consent.consent-error .consent-text {
  color: #ef4444;
}
