/* Legal pages — Privacy, Terms, Support (theme matches product + app) */
body.page-legal {
  min-height: 100vh;
}

.page-legal .legal-page {
  padding: 0;
}

.page-legal .legal-page .site-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Hero — same visual language as .product-hero */
.page-legal .legal-hero-card {
  position: relative;
  padding: 36px 32px 32px;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border);
  background:
    linear-gradient(145deg, rgba(17, 24, 39, 0.95), rgba(15, 23, 42, 0.75)),
    radial-gradient(ellipse 70% 60% at 90% 10%, rgba(99, 102, 241, 0.22), transparent);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.page-legal .legal-hero-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.15), transparent 70%);
  pointer-events: none;
}

.page-legal .legal-hero-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  margin-bottom: 16px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 999px;
  border: 1px solid rgba(99, 102, 241, 0.45);
  color: #c7d2fe;
  background: rgba(99, 102, 241, 0.12);
}

.page-legal .legal-hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.8);
  flex-shrink: 0;
}

.page-legal .legal-hero-card h1 {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  font-size: clamp(2rem, 5.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: #f8fafc;
}

.page-legal .legal-updated {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.page-legal .legal-intro {
  position: relative;
  z-index: 1;
  margin: 16px 0 0;
  font-size: clamp(1rem, 2.5vw, 1.0625rem);
  color: #cbd5e1;
  line-height: 1.65;
}

.page-legal .legal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Cards — match .page-home .card / .product-feature */
.page-legal .legal-section {
  padding: 20px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(17, 24, 39, 0.75);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.page-legal .legal-section:hover {
  border-color: rgba(99, 102, 241, 0.35);
}

.page-legal .legal-section--lead {
  border-color: rgba(99, 102, 241, 0.25);
  background:
    linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(6, 182, 212, 0.04)),
    rgba(17, 24, 39, 0.75);
}

.page-legal .legal-section h2 {
  margin: 0 0 14px;
  font-size: 1.125rem;
  font-weight: 600;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-legal .legal-section h2::before {
  content: attr(data-num);
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.page-legal .legal-section h3 {
  margin: 18px 0 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #e2e8f0;
}

.page-legal .legal-section h3:first-of-type {
  margin-top: 0;
}

.page-legal .legal-section p,
.page-legal .legal-section li {
  margin: 0 0 10px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
}

.page-legal .legal-section ul,
.page-legal .legal-section ol {
  margin: 0 0 12px;
  padding-left: 1.25rem;
}

.page-legal .legal-section li {
  margin-bottom: 6px;
  color: #cbd5e1;
}

.page-legal .legal-section li:last-child {
  margin-bottom: 0;
}

.page-legal .legal-section strong {
  color: #f1f5f9;
}

.page-legal .legal-section code {
  font-size: 0.875em;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border);
  color: #a5b4fc;
}

.page-legal .legal-url-list {
  margin: 12px 0 0;
  padding-left: 1.25rem;
  list-style: disc;
}

.page-legal .legal-url-list li {
  margin-bottom: 8px;
  font-size: 15px;
  color: #cbd5e1;
}

.page-legal .legal-contact-box {
  padding: 22px 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(99, 102, 241, 0.35);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(6, 182, 212, 0.08));
}

.page-legal .legal-contact-box p {
  margin: 0 0 8px;
  font-size: 15px;
  color: #cbd5e1;
  line-height: 1.55;
}

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

@media (max-width: 640px) {
  .page-legal .legal-page {
    padding-top: 28px;
    padding-bottom: 36px;
  }

  .page-legal .legal-hero-card,
  .page-legal .legal-section,
  .page-legal .legal-contact-box {
    padding: 20px 18px;
  }
}
