/* ============================================
   TERMS OF SERVICE & PRIVACY POLICY
   Standard Document Styling
   ============================================ */

.document-page {
  padding-top: 7rem;
  padding-bottom: 5rem;
  min-height: 100vh;
}

.document-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.document-header {
  margin-bottom: 4rem;
  text-align: center;
}

.document-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--foreground);
  letter-spacing: -0.02em;
}

.document-header .last-updated {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
}

/* Content Typography */
.document-content {
  color: var(--muted-foreground);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.document-content section {
  margin-bottom: 3rem;
}

.document-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--foreground);
  margin-top: 0;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.document-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.document-content p {
  margin-bottom: 1.25rem;
}

.document-content p:last-child {
  margin-bottom: 0;
}

.document-content ul {
  margin-bottom: 1.5rem;
  padding-left: 1.25rem;
}

.document-content li {
  margin-bottom: 0.5rem;
}

.document-content li:last-child {
  margin-bottom: 0;
}

.document-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s ease;
}

.document-content a:hover {
  color: var(--accent);
}

/* Back Button */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--foreground);
}

.back-link svg {
  width: 1.125rem;
  height: 1.125rem;
}

@media (max-width: 768px) {
  .document-page {
    padding-top: 6rem;
    padding-bottom: 4rem;
  }
  
  .document-header {
    margin-bottom: 3rem;
  }
}
