/* CustomerRelay Landing Page Styles
   Aesthetic: Refined Data Flow — sophisticated dark mode with luminous accents
   Typography: DM Sans (body) + Instrument Serif (display accents)
*/

/* Prevent SVG icons from expanding in flex containers */
svg[data-slot="icon"] {
  flex-shrink: 0;
}

/* ============================================
   CSS Custom Properties
   ============================================ */
:root {
  /* Colors - Dark sophisticated palette */
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-tertiary: #1a1a24;
  --bg-card: #16161f;
  --bg-card-hover: #1c1c28;

  /* Text */
  --text-primary: #f4f4f6;
  --text-secondary: #a0a0b0;
  --text-tertiary: #6a6a7a;

  /* Accents */
  --accent-primary: #6366f1;
  --accent-primary-light: #818cf8;
  --accent-primary-glow: rgba(99, 102, 241, 0.4);
  --accent-success: #22c55e;
  --accent-success-glow: rgba(34, 197, 94, 0.3);
  --accent-slack: #e01e5a;
  --accent-warning: #f59e0b;

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-medium: rgba(255, 255, 255, 0.1);
  --border-accent: rgba(99, 102, 241, 0.3);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Typography */
  --font-sans: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 60px var(--accent-primary-glow);
}

/* ============================================
   Base Styles
   ============================================ */
.landing-body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.landing-wrapper {
  position: relative;
  min-height: 100vh;
}

/* ============================================
   Ambient Background Effects
   ============================================ */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100vw;
  height: 700px;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, var(--accent-primary-glow), transparent);
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--border-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
  mask-image: radial-gradient(ellipse 100% 60% at 50% 0%, black, transparent);
}

/* ============================================
   Navigation
   ============================================ */
.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-md) var(--space-xl);
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: var(--text-primary);
}

.logo-icon {
  color: var(--accent-primary);
  display: flex;
}

.logo-icon .logo-dot {
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.logo-text {
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: var(--space-xl);
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Buttons */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all var(--transition-fast);
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: var(--accent-primary);
  color: white;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all var(--transition-fast);
  box-shadow: 0 0 20px var(--accent-primary-glow);
}

.btn-primary:hover {
  background: var(--accent-primary-light);
  transform: translateY(-1px);
  box-shadow: 0 0 30px var(--accent-primary-glow);
}

.btn-large {
  padding: var(--space-md) var(--space-xl);
  font-size: 1rem;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: calc(80px + var(--space-4xl)) var(--space-xl) var(--space-4xl);
}

.hero-content {
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-medium);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  animation: fade-in-up 0.6s ease-out;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-success);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-xl);
  animation: fade-in-up 0.6s ease-out 0.1s both;
}

.title-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent-primary-light);
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
  animation: fade-in-up 0.6s ease-out 0.2s both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-3xl);
  animation: fade-in-up 0.6s ease-out 0.3s both;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  animation: fade-in-up 0.6s ease-out 0.4s both;
}

.proof-avatars {
  display: flex;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 2px solid var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-left: -8px;
  animation: avatar-pop 0.4s ease-out calc(var(--delay) * 0.1s + 0.5s) both;
}

.avatar:first-child {
  margin-left: 0;
}

@keyframes avatar-pop {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.proof-text {
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

.proof-text strong {
  color: var(--text-secondary);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  height: 600px;
  animation: fade-in 0.8s ease-out 0.3s both;
}

.visual-container {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
}

/* Float Cards */
.float-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  padding: var(--space-md);
  box-shadow: var(--shadow-lg);
  width: 280px;
  flex-shrink: 0;
}

.slack-card {
  z-index: 1;
  animation: float-card-fade 0.6s ease-out 0.4s both;
  transition: box-shadow var(--transition-base);
}

.slack-card:hover {
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.sync-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  animation: float-card-fade 0.6s ease-out 0.6s both, pulse-arrow 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-arrow {
  0%, 100% {
    opacity: 0.6;
    transform: translateX(0);
  }
  50% {
    opacity: 1;
    transform: translateX(4px);
  }
}

.crm-card {
  z-index: 2;
  animation: float-card-fade 0.6s ease-out 0.8s both;
  transition: box-shadow var(--transition-base);
  border-color: var(--accent-success);
}

.crm-card:hover {
  box-shadow: var(--shadow-lg), 0 0 40px var(--accent-success-glow);
}

@keyframes float-card-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.card-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-subtle);
}

.slack-icon, .ai-icon, .crm-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-icon {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-primary-light));
  color: white;
}

.crm-icon {
  background: var(--bg-tertiary);
  color: var(--accent-success);
}

.card-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
}

.card-badge {
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 100px;
  background: var(--bg-tertiary);
  color: var(--text-tertiary);
}

.card-badge.success {
  background: rgba(34, 197, 94, 0.15);
  color: var(--accent-success);
}

/* Message List */
.message-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.message {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
}

.message-avatar {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--text-tertiary);
  flex-shrink: 0;
}

.message-content {
  flex: 1;
  min-width: 0;
}

.message-author {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 2px;
}

.message-time {
  font-weight: 400;
  color: var(--text-tertiary);
  margin-left: var(--space-xs);
}

.message-content p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* AI Card Content */
.ai-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.ai-fields {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.ai-field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.ai-field:last-child {
  border-bottom: none;
}

.ai-field-label {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.ai-field-value {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-primary);
}

.ai-field-value.signal-positive {
  color: var(--accent-success);
  font-weight: 600;
}

.ai-field-value.sentiment-badge {
  font-size: 0.6875rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(34, 197, 94, 0.15);
  color: var(--accent-success);
}

/* CRM Card Content */
.crm-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.crm-icon.hubspot {
  background: #ff7a59;
  color: white;
}

.crm-field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.crm-field:last-of-type {
  border-bottom: none;
}

.crm-field-label {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.crm-field-value {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-primary);
}

.crm-field-value.stage-badge {
  font-size: 0.6875rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-primary-light);
}

.sync-indicator {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.6875rem;
  color: var(--accent-success);
  margin-top: var(--space-xs);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border-subtle);
}

/* ============================================
   Logos Section
   ============================================ */
.logos-section {
  position: relative;
  z-index: 1;
  padding: var(--space-4xl) var(--space-xl);
  text-align: center;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.logos-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-2xl);
}

.logos-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-4xl);
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

.logo-item {
  color: var(--text-tertiary);
  opacity: 0.6;
  transition: opacity var(--transition-fast);
}

.logo-item:hover {
  opacity: 1;
}

/* ============================================
   Features Section
   ============================================ */
.features-section {
  position: relative;
  z-index: 1;
  padding: var(--space-4xl) var(--space-xl);
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-4xl);
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-primary-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: var(--space-2xl);
  transition: all var(--transition-base);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-medium);
  transform: translateY(-4px);
}

.feature-large {
  grid-column: span 2;
}

.feature-large:last-child {
  grid-column: 2 / 4;
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  color: var(--text-secondary);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}

.feature-description {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   How It Works Section
   ============================================ */
.how-section {
  position: relative;
  z-index: 1;
  padding: var(--space-4xl) var(--space-xl);
  max-width: 1200px;
  margin: 0 auto;
}

.how-section .section-header {
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.steps-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-lg);
}

.step-card {
  flex: 1;
  max-width: 300px;
  text-align: center;
  padding: var(--space-2xl);
}

.step-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-primary);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: var(--space-md);
  font-family: var(--font-serif);
}

.step-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.step-description {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.step-connector {
  color: var(--text-tertiary);
  opacity: 0.3;
  padding-top: var(--space-3xl);
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
  position: relative;
  z-index: 1;
  padding: var(--space-4xl) var(--space-xl);
  text-align: center;
  margin: var(--space-4xl) var(--space-xl);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: 24px;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 200px;
  background: radial-gradient(ellipse 60% 100% at 50% 0%, var(--accent-primary-glow), transparent);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.cta-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  margin-bottom: var(--space-md);
}

.cta-note {
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

/* ============================================
   Footer
   ============================================ */
.landing-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-4xl) var(--space-xl) var(--space-2xl);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-4xl);
  margin-bottom: var(--space-3xl);
}

.footer-brand .logo {
  margin-bottom: var(--space-md);
}

.footer-tagline {
  font-size: 0.9375rem;
  color: var(--text-tertiary);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
}

.footer-column h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-column a {
  display: block;
  font-size: 0.9375rem;
  color: var(--text-tertiary);
  text-decoration: none;
  margin-bottom: var(--space-sm);
  transition: color var(--transition-fast);
}

.footer-column a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--border-subtle);
}

.footer-bottom p {
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

/* ============================================
   Animations
   ============================================ */
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-3xl);
  }

  .hero-content {
    max-width: 700px;
    margin: 0 auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-proof {
    justify-content: center;
  }

  .hero-visual {
    height: auto;
    min-height: 500px;
  }

  .visual-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg) 0;
    max-width: none;
  }

  .float-card {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none;
    width: 100%;
    max-width: 320px;
  }

  .slack-card {
    order: 1;
  }

  .sync-arrow {
    order: 2;
    transform: rotate(90deg);
    animation: float-card-fade 0.6s ease-out 0.6s both, pulse-arrow-down 2s ease-in-out infinite;
  }

  @keyframes pulse-arrow-down {
    0%, 100% {
      opacity: 0.6;
      transform: rotate(90deg) translateX(0);
    }
    50% {
      opacity: 1;
      transform: rotate(90deg) translateX(4px);
    }
  }

  .crm-card {
    order: 3;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-large {
    grid-column: span 1;
  }

  .feature-large:last-child {
    grid-column: span 1;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .steps-grid {
    flex-direction: column;
    align-items: center;
  }

  .step-connector {
    transform: rotate(90deg);
    padding: var(--space-md) 0;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
  }

  .btn-large {
    width: 100%;
    justify-content: center;
  }

  .logos-grid {
    gap: var(--space-2xl);
  }
}

/* ============================================
   Legal Pages (Privacy Policy, Terms, etc.)
   ============================================ */
.legal-page {
  padding: calc(80px + var(--space-4xl)) var(--space-lg) var(--space-4xl);
  min-height: 100vh;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: var(--space-3xl);
}

.legal-content h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.legal-updated {
  color: var(--text-tertiary);
  font-size: 0.875rem;
  margin-bottom: var(--space-3xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border-subtle);
}

.legal-content section {
  margin-bottom: var(--space-2xl);
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  margin-top: var(--space-2xl);
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  margin-top: var(--space-lg);
}

.legal-content p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.legal-content ul {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-md);
  padding-left: var(--space-xl);
}

.legal-content li {
  margin-bottom: var(--space-sm);
}

.legal-content a {
  color: var(--accent-primary-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.legal-content a:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.legal-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

@media (max-width: 768px) {
  .legal-content {
    padding: var(--space-xl);
  }

  .legal-content h1 {
    font-size: 2rem;
  }

  .legal-content h2 {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .legal-page {
    padding: calc(80px + var(--space-2xl)) var(--space-md) var(--space-2xl);
  }

  .legal-content {
    padding: var(--space-lg);
    border-radius: 12px;
  }

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