/* Additional CSS classes for Terms page - Add to your existing CSS file */

.title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
}

.title img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.toggle-button {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.toggle-button:hover {
  background: var(--surface);
}

.account-options {
  display: flex;
  gap: 1rem;
}

.account-options a {
  color: var(--text-secondary);
  font-size: 1.25rem;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.account-options a:hover {
  color: var(--primary);
  background: var(--surface);
}

/* Terms Section */
.terms-section {
  padding: 120px 2rem 4rem;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  margin: 0;
  line-height: 1.7;
  box-sizing: border-box;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--border);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--gradient-1);
}

.section-title h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.section-title p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0;
}

.terms-content {
  color: var(--text-secondary);
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.terms-content h2 {
  color: var(--accent);
  font-size: 1.4rem;
  font-weight: 600;
  margin: 2.5rem 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.terms-content h2::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 40px;
  height: 1px;
  background: var(--accent);
}

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

.terms-content p {
  margin: 1rem 0;
  text-align: justify;
}

.terms-content strong {
  color: var(--text-primary);
}

.terms-list {
  margin: 1.5rem 0;
  padding-left: 0;
  list-style: none;
}

.terms-list li {
  margin: 0.8rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.terms-list li::before {
  content: '•';
  color: var(--accent);
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

.terms-list li strong {
  color: var(--text-primary);
  display: inline-block;
  margin-bottom: 0.2rem;
}

.link {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.terms-privacy-section {
  margin-top: 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, var(--surface) 0%, rgba(var(--primary-rgb), 0.05) 100%);
  border-radius: var(--border-radius-lg);
  text-align: center;
  border: 1px solid var(--border);
}

.terms-privacy-section p {
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 1rem;
}

.terms-privacy-section div {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.terms-privacy-section .link {
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.terms-privacy-section .link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.2);
  border-color: var(--primary);
}

/* Enhanced animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out forwards;
}

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

.fade-in:nth-child(odd) {
  animation-delay: 0.1s;
}

.fade-in:nth-child(even) {
  animation-delay: 0.2s;
}

/* Smooth scrolling behavior */
.terms-content {
  scroll-behavior: smooth;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .nav-container {
    padding: 0 1rem;
  }
  
  .title {
    font-size: 1.1rem;
  }
  
  .title img {
    width: 28px;
    height: 28px;
  }
  
  .terms-section {
    padding: 100px 1.5rem 3rem;
    width: 100%;
  }
  
  .section-title h1 {
    font-size: 2rem;
  }
  
  .terms-content h2 {
    font-size: 1.25rem;
    margin: 2rem 0 0.8rem 0;
  }
  
  .terms-privacy-section {
    padding: 1.5rem;
    margin: 0 -0.5rem 0;
  }
  
  .terms-privacy-section div {
    gap: 1rem;
  }
  
  .account-options a {
    font-size: 1.1rem;
    padding: 0.4rem;
  }
}

@media (max-width: 480px) {
  .terms-section {
    padding: 90px 1rem 2rem;
    width: 100%;
  }
  
  .nav-container {
    padding: 0 0.5rem;
  }
  
  .section-title h1 {
    font-size: 1.75rem;
  }
  
  .terms-content h2 {
    font-size: 1.15rem;
  }
  
  .terms-privacy-section {
    margin: 0 -0.5rem 0;
    padding: 1rem;
  }
  
  .terms-privacy-section div {
    flex-direction: column;
    gap: 0.8rem;
  }
  
  .terms-list li {
    padding-left: 1.2rem;
  }
}