@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

.container {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: Montserrat, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Remove dmca-container styles and use our new classes */
.dmca-container {
  margin-top: 7rem;
  padding: 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  box-sizing: border-box;
}

.tos-content {
  padding: 1.5rem;
}

.tos-header {
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.tos-header h1 {
  color: var(--text-primary);
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

.tos-header p {
  color: var(--text-secondary);
  margin: 0.5rem 0 0;
  font-size: 1rem;
  line-height: 1.6;
}

.tos-section {
  margin-bottom: 2rem;
}

.tos-section h2 {
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
}

.tos-section h3 {
  color: var(--text-primary);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
}

.tos-section p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 1rem 0;
  font-size: 0.95rem;
}

.tos-section ul, 
.tos-section ol {
  color: var(--text-secondary);
  margin: 1rem 0;
  padding-left: 2rem;
}

.tos-section li {
  margin: 0.75rem 0;
  line-height: 1.6;
  font-size: 0.95rem;
}

.tos-section a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

.tos-section a:hover {
  color: var(--accent-color-hover);
  text-decoration: underline;
}

.tos-section code {
  background: var(--bg-primary);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--accent-color);
}

.tos-divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 2rem 0;
}

.tos-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: center;
}

/* Fix footer spacing in TOS page */
.footer {
  margin-left: -1rem;
  margin-right: -1rem;
  margin-bottom: -1rem;
}

.tos-last-updated {
  font-style: italic;
  color: var(--text-secondary);
  opacity: 0.8;
}

/* Scroll to Top Button */
.scroll-top-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--accent-color);
  color: var(--text-primary);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 100;
}

.scroll-top-button.visible {
  opacity: 1;
}

.scroll-top-button:hover {
  transform: translateY(-3px);
  background-color: var(--accent-color-hover);
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
  .tos-container {
    margin: 6rem 1rem 1rem;
    padding: 1rem;
  }

  .tos-content {
    padding: 1rem;
  }

  .tos-header h1 {
    font-size: 1.75rem;
  }

  .tos-section h2 {
    font-size: 1.3rem;
  }

  .tos-section h3 {
    font-size: 1.1rem;
  }

  .tos-section p,
  .tos-section li {
    font-size: 0.9rem;
    line-height: 1.7;
  }

  .tos-section ul,
  .tos-section ol {
    padding-left: 1.5rem;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .tos-container {
    margin: 5rem 0.5rem 1rem;
    padding: 0.75rem;
  }

  .tos-content {
    padding: 0.75rem;
  }

  .tos-header h1 {
    font-size: 1.5rem;
  }

  .tos-section h2 {
    font-size: 1.2rem;
  }

  .tos-section h3 {
    font-size: 1rem;
  }
}

/* Print styles */
@media print {
  .tos-container {
    margin: 0;
    padding: 2cm;
    box-shadow: none;
    border: none;
  }

  .scroll-top-button {
    display: none;
  }

  .tos-section a {
    text-decoration: underline;
    color: #000;
  }

  .tos-header,
  .tos-section h2,
  .tos-section h3 {
    color: #000;
    break-after: avoid;
  }

  .tos-section {
    page-break-inside: avoid;
  }
}
