/* ============================================================================
   LEGAL PAGES — SHARED STYLES
   ============================================================================

   VERSION: 1.0.0
   DATE: March 2026

   Pages covered:
   - Privacy Policy  (/legal/privacy-policy)
   - Terms of Use    (/legal/terms-of-use)

   PREREQUISITES:
   - globals.css loaded first
   - FontAwesome Pro available

   RULES:
   - Canonical CSS variables only
   - No gradients
   - Flat professional UI
   - Sharp corners / controlled radius
   ============================================================================ */


/* ============================================================================
   HERO SECTION
   ============================================================================ */

.legal-page-hero {
  position: relative;
  width: 100%;
  padding: 100px 0 64px;
  background: var(--surface-0);
  overflow: hidden;
}

.legal-hero-decorations {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.legal-hero-decoration-1 {
  position: absolute;
  border-radius: 50%;
  opacity: 0.03;
  width: 500px;
  height: 500px;
  background: var(--brand-primary);
  top: -250px;
  right: -100px;
}

.legal-hero-decoration-2 {
  position: absolute;
  border-radius: 50%;
  opacity: 0.03;
  width: 300px;
  height: 300px;
  background: var(--brand-secondary);
  bottom: -150px;
  left: -50px;
}

.legal-hero-container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.legal-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
  border-radius: 100px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.legal-hero-badge i {
  font-size: 15px;
  flex-shrink: 0;
}

.legal-hero-title {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  color: var(--surface-900);
  line-height: 1.15;
  margin: 0 !important;
}

.legal-hero-subtitle {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--surface-600);
  max-width: 640px;
  margin: 0 !important;
}

.legal-hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--surface-500);
  margin: 0;
}

.legal-hero-meta i {
  font-size: 14px;
  color: var(--brand-primary);
}


/* ============================================================================
   CONTENT SECTION — TERMLY EMBED WRAPPER
   ============================================================================ */

.legal-content-section {
  padding: 48px 0 80px;
  background: var(--surface-50);
}

.legal-content-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

.legal-embed-card {
  background: var(--surface-0);
  border: 1px solid var(--surface-200);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px var(--shadow-10);
}

/* Termly iframe auto-resizes via its script — we constrain the container only */
.legal-embed-card [name="termly-embed"],
.legal-embed-card iframe {
  display: block;
  width: 100%;
  border: none;
}


/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 1024px) {
  .legal-content-container {
    padding: 0 32px;
  }
}

@media (max-width: 768px) {
  .legal-page-hero {
    padding: 80px 0 48px;
  }

  .legal-hero-container {
    padding: 0 20px;
  }

  .legal-hero-title {
    font-size: 34px;
  }

  .legal-hero-subtitle {
    font-size: 16px;
  }

  .legal-content-section {
    padding: 32px 0 60px;
  }

  .legal-content-container {
    padding: 0 16px;
  }
}
