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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.7;
  color: #ffffff;
  background: #000000;
  overflow-x: hidden;
}

/* Animated Background */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(-45deg, #000000, #0a0a0a, #1a1a2e, #16213e);
  background-size: 400% 400%;
  animation: gradientShift 25s ease infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  /* background: rgba(0, 0, 0, 0.8); */
  backdrop-filter: blur(7.5px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}
.logo {
  font-size: 1.8rem;
  font-weight: 700;
  /* color: #8b5cf6; */
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: -0.02em;
  /* background-color: red; */
  display: grid;
  place-content: center;
}

.logo img {
  width: auto;
  height: 40px;
}

.logo:hover {
  transform: scale(1.05);
  color: #a78bfa;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
  letter-spacing: -0.01em;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #8b5cf6;
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: #8b5cf6;
}

.nav-links a:hover::after {
  width: 100%;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 8px;
  color: #8b5cf6;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.back-btn:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.5);
  transform: translateY(-2px);
}

/* Main Content */
.main-content {
  margin-top: 100px;
  padding: 60px 0 120px;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header Section */
.page-header {
  text-align: center;
  margin-bottom: 4rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease 0.2s both;
}

.page-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #ffffff 0%, #8b5cf6 50%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-subtitle {
  font-size: 1.2rem;
  color: #9ca3af;
  font-weight: 400;
  margin-bottom: 1rem;
}

.last-updated {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 20px;
  color: #a78bfa;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Content Sections */
.terms-content {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 3rem;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease 0.4s both;
}

.terms-intro {
  font-size: 1.1rem;
  color: #d1d5db;
  margin-bottom: 3rem;
  padding: 1.5rem;
  background: rgba(139, 92, 246, 0.05);
  border-left: 4px solid #8b5cf6;
  border-radius: 0 12px 12px 0;
  line-height: 1.8;
}

.terms-section {
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.terms-section.animate {
  opacity: 1;
  transform: translateY(0);
}

.section-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: white;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.9rem;
  margin-right: 1rem;
  flex-shrink: 0;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  letter-spacing: -0.02em;
}

.section-content {
  color: #d1d5db;
  line-height: 1.8;
  margin-left: 3rem;
}

.section-content p {
  margin-bottom: 1rem;
}

.section-content ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.section-content li {
  margin-bottom: 0.5rem;
  position: relative;
}

.section-content li::marker {
  color: #8b5cf6;
}

/* Highlight boxes */
.highlight-box {
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  position: relative;
}

.highlight-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  border-radius: 2px 0 0 2px;
}

.highlight-box .icon {
  color: #8b5cf6;
  font-size: 1.2rem;
  margin-right: 0.5rem;
}

/* Contact Section */
.contact-section {
  background: rgba(139, 92, 246, 0.05);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  margin-top: 3rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease 0.6s both;
}

.contact-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  letter-spacing: -0.01em;
}

.contact-email:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(139, 92, 246, 0.3);
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  z-index: 1001;
  transition: width 0.1s ease;
}

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

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

  .nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .back-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }

  .page-title {
    font-size: 2.5rem;
  }

  .terms-content {
    padding: 2rem;
  }

  .section-content {
    margin-left: 0;
  }

  .section-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .section-number {
    margin-right: 0;
  }

  .contact-email {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
}

/* Table of Contents */
.toc {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease 0.3s both;
}

.toc-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toc-list {
  list-style: none;
  padding: 0;
}

.toc-item {
  margin-bottom: 0.8rem;
}

.toc-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #d1d5db;
  text-decoration: none;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.toc-link:hover {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
  transform: translateX(5px);
}

.toc-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: rgba(139, 92, 246, 0.2);
  color: #a78bfa;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 600;
  flex-shrink: 0;
}
