@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700&family=Inter:wght@400;500&display=swap');

:root {
  --primary: #00ff88;
  --primary-dark: #00cc6a;
  --secondary: #6c63ff;
  --accent: #ff6b6b;
  --strong-tag: #8569aa;
  --background: linear-gradient(45deg, #1a1a2e 0%, #16213e 100%);
  --card-bg: #ffffff0d;
  --text-primary: #ffffff;
  --text-secondary: #ffffffcc;
  --border-color: #ffffff1a;
  --shadow-color: #00000033;
  --font-main: 'Inter', sans-serif;
  --font-headings: 'Poppins', sans-serif;
  --glass-blur: blur(12px);
  --spacing-md: 1.5rem;
  --spacing-lg: 2.5rem;
  --radius-lg: 16px;
}

.header-wrapper {
  position: sticky;
  top: 0;
  z-index: 9;
}

/* ⬆️ ToTop BTN - TERMS PAGE ✅ */
.back-to-top-terms {
  background-color: var(--secondary);
  box-shadow: 0 4px 12px var(--shadow-color);
  border: 2px solid var(--text-primary);
}

.footer-wrapper {
  position: fixed;
  bottom: 0;
  width: 100%;
}

/* Breadcrumb Navigation */
.breadcrumb {
  margin-bottom: 1.5rem;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.breadcrumb-item {
  display: inline;
}

.breadcrumb-item a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
  color: var(--secondary);
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: var(--text-secondary);
}

.breadcrumb-separator {
  margin: 0 0.5rem;
  color: var(--text-secondary);
  opacity: 0.6;
}

/* // */
body {
  font-family: var(--font-main);
  background: var(--background);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

.terms-container-wrapper {
  margin: .5rem 1rem 4.5rem;
}

main#terms-of-use {
  max-width: 1200px;
  margin: 1rem auto;
  padding: 2rem;
  background: var(--card-bg);
  backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 32px var(--shadow-color);
  animation: fadeInUp 1s ease-out;
}

main#terms-of-use .terms-intro {
  margin-top: .5rem;
}

strong {
    color: var(--strong-tag);
    font-weight: 600;
}

h1,
h2,
h3 {
  font-family: var(--font-headings);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  padding-bottom: 1rem;
}

h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

h2 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-top: 3rem;
  padding: 0.5rem 0;
  border-bottom: 2px solid var(--border-color);
}

/*// Sections */
.terms-section {
  padding: 2rem;
  margin: 2rem 0;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.terms-section:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 6px 20px rgba(0, 255, 136, 0.1);
}

.toc {
  padding: 2rem;
  margin: 3rem 0;
  background: rgba(108, 99, 255, 0.1);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.toc-list {
  columns: 4;
  padding: 1rem;
  margin: auto;
}


.toc-list li {
  font-size: clamp(0.875rem, 1vw + 0.5rem, 1.25rem);
  padding: clamp(0.25rem, 0.5vw, 0.75rem);
  margin-bottom: clamp(0.25rem, 0.6vw, 1rem);
  list-style: none;
  margin-bottom: 1rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.toc-list li:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(5px);
}

.toc-list a {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toc-list a::before {
  content: '➤';
  color: var(--primary);
}

#contact-info {
  text-align: center;
  background-color: var(--bg-dark); 
  padding: 2rem 1rem;
  color: var(--text-light);
  margin-top: 1rem;
}

.contact-info a {
  color: var(--strong-tag);
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  transition: all 0.3s ease;
  font-weight: 500;
  text-decoration: none;
  margin-top: 1rem;
  box-shadow: 10px 7px 34px rgba(133, 105, 170, 0.3);
}

.contact-info a:hover {
  background-color: #64226d42;
  color: #fff;
  box-shadow: 0 4px 10px rgba(133, 105, 170, 0.3); 
  transform: translateY(+3px); 
}

.contact-info a:active {
  color: var(--primary);
  background: rgba(0, 255, 136, 0.08);
  outline: none;
  text-shadow: 0 0 2px var(--primary-dark);
  transform: scale(0.98);
  box-shadow: 0 2px 5px rgba(0, 255, 136, 0.2);
}

/*// Responsive Design */
@media (max-width: 1200px) {
  main#terms-of-use {
    padding: 1.5rem;
  }

  .toc-list {
    columns: 3;
  }

  .terms-section {
    padding: 1.5rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.6rem;
  }
}

@media (max-width: 768px) {
  main#terms-of-use {
    margin: 0;
    padding: 1.5rem;
  }

  .toc-list {
    columns: 2;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .back-to-top {
    bottom: 1rem;
    right: 1rem;
  }
}

@media (max-width: 450px) {
   .terms-container-wrapper {
    margin: .7rem 0.5rem 5rem;
  }

  main#terms-of-use {
    margin: 0;
    padding: .5rem;
  }

  .toc-list {
    columns: 1;
    padding: 0.5rem;
  }

  .terms-section {
    padding: 1rem;
  }
}

@media (max-width: 300px) {
  .terms-container-wrapper {
    margin: .5rem 0.2rem 6rem;
  }

  .toc {
    margin: .5rem 0;
  }

  .toc-list {
    padding: 0.2rem;
  }


}