/* Terms of Use page specific styles */
.terms-content {
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: rgba(30, 30, 30, 0.7);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
}

.page-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.last-updated {
  color: #aaa;
  font-style: italic;
  opacity: 0.8;
}

.terms-section {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  animation: fadeIn 0.6s ease-in-out;
}

.terms-section:last-child {
  border-bottom: none;
  margin-bottom: 1rem;
}

.terms-section h2 {
  margin-bottom: 1rem;
  color: #ff6b6b;
  font-size: 1.5rem;
}

.terms-list {
  margin-left: 1.5rem;
  padding-left: 1rem;
}

.terms-list li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.contact-link {
  color: #ff6b6b;
  text-decoration: none;
  border-bottom: 1px dashed;
  transition: color 0.2s, border-bottom 0.2s;
}

.contact-link:hover {
  color: #ff9999;
  border-bottom: 1px solid;
}

.return-link {
  display: inline-block;
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding: 0.5rem 1rem;
  background-color: rgba(255, 107, 107, 0.2);
  border-radius: 6px;
  transition: background-color 0.2s;
}

.return-link a {
  color: #ff6b6b;
  text-decoration: none;
  font-weight: 500;
}

/* Light theme overrides */
.theme-light .terms-section {
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

/* Minimal theme overrides */
.theme-minimal .terms-section {
  border-bottom-color: rgba(128, 128, 128, 0.2);
}

/* Footer active link */
.footer-links a.active {
  font-weight: 500;
  color: #ff6b6b;
  text-decoration: underline;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #ff6b6b;
  color: white;
  border: none;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible {
  opacity: 0.8;
  transform: translateY(0);
}

.back-to-top:hover {
  opacity: 1;
  background-color: #ff9999;
}

/* Section animations */
.terms-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s, transform 0.6s;
}

.terms-section.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .terms-content {
    padding: 1.5rem;
    margin: 1.5rem 1rem;
  }
  
  .page-header h1 {
    font-size: 2rem;
  }
  
  .terms-section {
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .terms-list {
    margin-left: 1rem;
    padding-left: 0.5rem;
  }
  
  .back-to-top {
    width: 36px;
    height: 36px;
    bottom: 15px;
    right: 15px;
  }
  
  .return-link {
    margin-top: 1.5rem;
  }
}
