:root {
  --primary: #667eea;
  --primary-dark: #5568d3;
  --accent: #a855f7;
  --bg-dark: #0a0a0f;
  --bg-card: #1a1a1f;
  --text-primary: #ffffff;
  --text-secondary: #a0a0b0;
  --text-muted: #606070;
  --border: rgba(255, 255, 255, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 100%);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

.legal-page {
  min-height: 100vh;
  padding: 60px 20px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.legal-container {
  max-width: 900px;
  width: 100%;
  background: rgba(26, 26, 31, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 60px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.legal-header {
  text-align: center;
  margin-bottom: 50px;
  padding-bottom: 40px;
  border-bottom: 2px solid var(--border);
  position: relative;
}

.legal-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
  animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
  }
}

.legal-icon svg {
  width: 40px;
  height: 40px;
  color: white;
}

.legal-title {
  font-size: 42px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.legal-updated {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.legal-intro {
  background: rgba(102, 126, 234, 0.08);
  border-left: 4px solid var(--primary);
  padding: 24px 28px;
  border-radius: 12px;
  margin-bottom: 50px;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.legal-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.legal-section {
  position: relative;
  padding-left: 80px;
  padding-top: 8px;
}

.section-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(168, 85, 247, 0.15));
  border: 2px solid rgba(102, 126, 234, 0.3);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  transition: all 0.3s ease;
}

.legal-section:hover .section-number {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.25), rgba(168, 85, 247, 0.25));
  border-color: var(--primary);
  transform: scale(1.1);
}

.section-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}

.section-content {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.legal-footer {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 2px solid var(--border);
  text-align: center;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.btn-back:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
  color: white;
}

.btn-back svg {
  transition: transform 0.3s ease;
}

.btn-back:hover svg {
  transform: translateX(-4px);
}

@media (max-width: 768px) {
  .legal-container {
    padding: 40px 28px;
    border-radius: 20px;
  }

  .legal-title {
    font-size: 32px;
  }

  .legal-section {
    padding-left: 0;
    padding-top: 70px;
  }

  .section-number {
    left: 50%;
    transform: translateX(-50%);
    top: 0;
  }

  .section-title {
    font-size: 20px;
  }

  .section-content {
    font-size: 15px;
  }

  .legal-intro {
    font-size: 15px;
    padding: 20px;
  }

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

@media (max-width: 480px) {
  .legal-page {
    padding: 30px 16px;
  }

  .legal-container {
    padding: 32px 20px;
  }

  .legal-title {
    font-size: 28px;
  }

  .legal-icon {
    width: 64px;
    height: 64px;
  }

  .legal-icon svg {
    width: 32px;
    height: 32px;
  }
}
