/* Page-specific styles for Terms of Use and Privacy Policy */

html {
  scroll-behavior: smooth;
}

.page-body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: white;
  color: #333;
  line-height: 1.6;
  padding: 20px;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header with logo */
.page-header {
  text-align: center;
  padding: 30px 0 40px;
}

.page-logo {
  max-width: 180px;
  width: 100%;
  height: auto;
  transition: opacity 0.3s ease;
}

.page-logo:hover {
  opacity: 0.8;
}

/* Main content area */
.page-content {
  flex: 1;
  background-color: white;
  padding: 0;
  margin: 0 auto 30px;
  width: 100%;
  max-width: 800px;
  box-sizing: border-box;
  text-align: left;
}

.page-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.5em;
  margin-top: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-top: 2em;
  margin-bottom: 0.75em;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.page-content p {
  margin-bottom: 1.25em;
  color: #4a4a4a;
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
}

.page-content p:first-of-type {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 2em;
}

.page-content ul {
  margin: 1.25em 0;
  padding-left: 1.5em;
  color: #4a4a4a;
}

.page-content li {
  margin-bottom: 0.75em;
  line-height: 1.6;
}

/* Links - underlined, purple on hover */
.page-content a {
  color: #4a4a4a;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-content a:hover {
  color: #662D91;
  text-decoration: underline;
}

/* Terms and definitions - purple color */
.page-content .term {
  color: #662D91;
  font-weight: 500;
}

/* Table of Contents styling */
.table-of-contents {
  background-color: #f8f9fa;
  border-radius: 12px;
  padding: 25px 30px;
  margin: 30px 0 40px;
}

.table-of-contents h2 {
  margin-top: 0;
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.table-of-contents ol {
  margin: 0;
  padding-left: 20px;
  line-height: 1.8;
}

.table-of-contents li {
  margin-bottom: 8px;
}

.table-of-contents a {
  color: #4a4a4a;
  font-weight: 400;
  text-decoration: underline;
}

.table-of-contents a:hover {
  color: #662D91;
}

/* Definitions list styling */
.definitions {
  margin: 20px 0;
}

.definitions dt {
  font-weight: 600;
  color: #662D91;
  margin-top: 20px;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.definitions dd {
  margin-left: 0;
  margin-bottom: 15px;
  color: #4a4a4a;
  padding-left: 20px;
  border-left: 3px solid #f0e6f7;
}

/* Last updated text */
.last-updated {
  font-size: 0.9rem !important;
  color: #888 !important;
  font-style: italic;
}

/* Section spacing */
.page-content section {
  margin-bottom: 40px;
}

.page-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-top: 1.75em;
  margin-bottom: 0.75em;
}

.page-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

/* Footer */
.page-footer {
  text-align: center;
  padding: 20px 0 30px;
  margin-top: auto;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 40px;
  height: 40px;
  background-color: #662D91;
  border: none;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.back-to-top:hover {
  background-color: #4a1f6b;
  transform: translateY(-2px);
  text-decoration: none;
}

.back-to-top svg {
  display: block;
}

/* Mobile optimization */
@media only screen and (max-width: 768px) {
  .page-body {
    padding: 15px;
    font-size: 15px;
  }

  .page-header {
    padding: 20px 0 30px;
  }

  .page-logo {
    max-width: 140px;
  }

  .page-content {
    padding: 0;
    max-width: 100%;
  }

  .page-content h1 {
    font-size: 2rem;
  }

  .page-content h2 {
    font-size: 1.3rem;
    margin-top: 1.75em;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
  }

  .back-to-top svg {
    width: 16px;
    height: 16px;
  }
}

@media only screen and (max-width: 480px) {
  .page-body {
    font-size: 14px;
  }

  .page-content {
    padding: 0;
  }

  .page-content h1 {
    font-size: 1.75rem;
  }

  .page-content h2 {
    font-size: 1.2rem;
  }

  .page-content ul {
    padding-left: 1.25em;
  }
}
