/* terms-of-service.css */
/* TERMS OF SERVICE PAGE SPECIFIC STYLES */

/* WHITE THEME STYLES for content section */
.terms-content.white-theme {
  background: white !important;
  color: #333 !important;
  padding: 80px 40px;
}

.terms-content.white-theme .section-bg.terms-bg {
  display: none !important;
}

.terms-content.white-theme .toc-container,
.terms-content.white-theme .terms-section {
  background: #f8f9fa !important;
  border: 1px solid #e9ecef !important;
  color: #333 !important;
}

.terms-content.white-theme .terms-section-title,
.terms-content.white-theme .toc-title {
  color: #333 !important;
}

.terms-content.white-theme .terms-content p,
.terms-content.white-theme .toc-list a,
.terms-content.white-theme .terms-content li,
.terms-content.white-theme .contact-method p {
  color: #666 !important;
}

.terms-content.white-theme .terms-link {
  color: #3b82f6 !important;
  text-decoration: none !important;
  font-weight: 600;
  transition: color 0.3s ease !important;
}

.terms-content.white-theme .terms-link:hover {
  color: #2563eb !important;
  text-decoration: underline !important;
}

.terms-content.white-theme .toc-container {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
  border-color: #dee2e6 !important;
}

/* Terms Hero Section (DARK THEME) */
.terms-hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  padding: 150px 40px 80px;
  position: relative;
  overflow: hidden;
  text-align: center;
  background: var(--dark);
  color: white;
}

.terms-hero-container {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.terms-hero-content {
  max-width: 800px;
  margin: 0 auto;
  z-index: 2;
}

.terms-hero h1 {
  font-size: 52px;
  line-height: 1.2;
  margin-bottom: 25px;
  background: linear-gradient(to right, var(--light), var(--primary-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  overflow: hidden;
}

.terms-hero .tagline {
  font-size: 14px;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
  display: inline-block;
  padding: 5px 15px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 30px;
  animation: fadeIn 1s ease;
}

.terms-hero .description {
  color: var(--gray);
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 25px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeIn 1.5s ease;
}

.last-updated {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--primary-light);
  font-size: 14px;
  margin-top: 20px;
}

.last-updated i {
  font-size: 16px;
}

/* Section Background */
.section-bg.terms-bg {
  background: radial-gradient(
      circle at 30% 30%,
      rgba(59, 130, 246, 0.1) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 70% 70%,
      rgba(139, 92, 246, 0.1) 0%,
      transparent 40%
    ),
    linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, transparent 50%);
  background-size: 200% 200%;
  animation: gradientShift 22s ease infinite;
}

/* Terms Content Container */
.terms-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
}

/* Table of Contents */
.toc-container {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 25px;
  position: sticky;
  top: 100px;
  height: fit-content;
  max-height: calc(100vh - 150px);
  overflow-y: auto;
}

.toc-title {
  font-size: 20px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #3b82f6;
  color: #333;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-list li {
  margin-bottom: 12px;
}

.toc-list a {
  color: #666;
  text-decoration: none;
  font-size: 15px;
  line-height: 1.5;
  transition: all 0.3s ease;
  display: block;
  padding: 5px 0;
  border-left: 3px solid transparent;
  padding-left: 10px;
}

.toc-list a:hover {
  color: #3b82f6;
  border-left-color: #3b82f6;
  padding-left: 15px;
}

.toc-list a.active {
  color: #3b82f6;
  border-left-color: #3b82f6;
  font-weight: 600;
  padding-left: 15px;
}

/* Terms Sections */
.terms-sections {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.terms-section {
  scroll-margin-top: 30px;
}

.terms-section-title {
  font-size: 28px;
  margin-bottom: 20px;
  color: #333;
  padding-bottom: 15px;
  border-bottom: 2px solid #e9ecef;
  position: relative;
}

.terms-section-title::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: #3b82f6;
}

.terms-content {
  font-size: 16px;
  line-height: 1.7;
}

.terms-content h3 {
  font-size: 20px;
  margin: 25px 0 15px;
  color: #333;
  padding-left: 10px;
  border-left: 3px solid #e9ecef;
}

.terms-content h3::before {
  content: "•";
  color: #3b82f6;
  margin-right: 8px;
}

.terms-content ul {
  margin: 15px 0 20px 20px;
}

.terms-content li {
  margin-bottom: 10px;
  color: #666;
  padding-left: 5px;
}

.terms-content li strong {
  color: #333;
}

.terms-content p {
  margin-bottom: 15px;
}

.terms-content p:last-child {
  margin-bottom: 0;
}

/* Contact Info Box */
.contact-info-box {
  background: white;
  border-radius: 10px;
  padding: 25px;
  margin-top: 20px;
  border: 1px solid #e9ecef;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 25px;
}

.contact-method:last-child {
  margin-bottom: 0;
}

.contact-method i {
  color: #3b82f6;
  font-size: 20px;
  margin-top: 5px;
  min-width: 20px;
}

.contact-method h4 {
  font-size: 18px;
  margin-bottom: 5px;
  color: #333;
}

/* Acceptance Section */
.acceptance-section {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 2px solid #e9ecef;
}

.acceptance-notice {
  background: #fff8e1;
  border-radius: 10px;
  padding: 25px;
  border-left: 4px solid #ffb300;
  margin-bottom: 30px;
}

.acceptance-notice h3 {
  color: #333;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.acceptance-notice h3 i {
  color: #ffb300;
}

.acceptance-notice p {
  color: #666;
  margin: 0;
}

.related-links {
  text-align: center;
}

.related-links p {
  color: #666;
  margin-bottom: 15px;
  font-weight: 600;
}

.policy-links {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

.policy-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #3b82f6;
  text-decoration: none;
  font-weight: 600;
  padding: 10px 20px;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  transition: all 0.3s ease;
  background: white;
}

.policy-links a:hover {
  color: #2563eb;
  background: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  text-decoration: none;
}

.policy-links a i {
  font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .terms-container {
    grid-template-columns: 250px 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .terms-hero {
    padding: 130px 20px 60px;
  }

  .terms-content.white-theme {
    padding: 60px 20px;
  }

  .terms-hero h1 {
    font-size: 36px;
  }

  .terms-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .toc-container {
    position: static;
    max-height: none;
  }

  .terms-section-title {
    font-size: 24px;
  }

  .contact-method {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .policy-links {
    gap: 15px;
  }

  .policy-links a {
    padding: 8px 15px;
    font-size: 14px;
  }
}

@media (max-width: 576px) {
  .terms-hero h1 {
    font-size: 32px;
  }

  .terms-section-title {
    font-size: 22px;
  }

  .terms-content h3 {
    font-size: 18px;
  }

  .acceptance-notice {
    padding: 20px;
  }

  .policy-links {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .policy-links a {
    width: 100%;
    max-width: 250px;
    justify-content: center;
  }
}

/* Animation for gradient shift */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Fade in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
