/* ══════════════════════════════════════════════════════════════
   LEGAL PAGES
   
   Legal page layout and content styling for terms, privacy,
   pricing, and refunds pages. Includes table of contents and
   content sections.
   
   Related files:
   - design-system.css (design tokens)
   - vorasense-pages.css (base styles)
   - responsive.css (responsive behavior)
   ══════════════════════════════════════════════════════════════ */

/* Legal Page Container */
.vs-legal-page {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: var(--vs-space-3xl);
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

/* Table of Contents Sidebar */
.vs-legal-toc {
  position: sticky;
  top: var(--vs-space-xl);
  background: rgba(45, 41, 38, 0.5);
  padding: var(--vs-space-lg);
  border: 1px solid rgba(245, 240, 232, 0.08);
  border-radius: var(--vs-radius-md);
}

.vs-legal-toc h3 {
  font-size: var(--vs-text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--vs-text-muted);
  margin: 0 0 var(--vs-space-md);
}

.vs-legal-toc nav {
  display: flex;
  flex-direction: column;
  gap: var(--vs-space-sm);
}

.vs-legal-toc a {
  font-size: var(--vs-text-sm);
  color: var(--vs-text-secondary);
  text-decoration: none;
  transition: color var(--vs-transition);
  padding: var(--vs-space-xs);
  border-radius: var(--vs-radius-sm);
}

.vs-legal-toc a:hover {
  color: var(--vs-accent);
  background: rgba(212, 165, 116, 0.1);
}

/* Main Content */
.vs-legal-content {
  max-width: 700px;
}

.vs-legal-content h1 {
  margin-bottom: var(--vs-space-sm);
  font-size: var(--vs-text-2xl);
}

/* Subtitle */
.vs-legal-subtitle {
  font-size: var(--vs-text-base);
  color: var(--vs-text-secondary);
  margin-bottom: var(--vs-space-2xl);
}

/* Sections */
.vs-legal-content section {
  margin-bottom: var(--vs-space-2xl);
  padding-top: var(--vs-space-lg);
  scroll-margin-top: var(--vs-space-xl);
}

.vs-legal-content section:first-of-type {
  border-top: none;
  padding-top: 0;
}

.vs-legal-content h2 {
  font-size: var(--vs-text-lg);
  margin-bottom: var(--vs-space-md);
  margin-top: 0;
}

.vs-legal-content p {
  color: var(--vs-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--vs-space-md);
}

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

/* Lists */
.vs-legal-list {
  margin: var(--vs-space-md) 0;
  padding-left: 1.5rem;
  color: var(--vs-text-secondary);
  line-height: 1.7;
}

.vs-legal-list li {
  margin-bottom: var(--vs-space-xs);
}

.vs-legal-list strong {
  color: var(--vs-text);
  font-weight: 600;
}

/* Back Link Container */
.vs-legal-back-container {
  margin-top: var(--vs-space-3xl);
  padding-top: var(--vs-space-xl);
  border-top: 1px solid rgba(245, 240, 232, 0.08);
}

.vs-legal-back {
  color: var(--vs-text-muted);
  font-size: var(--vs-text-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: color var(--vs-transition);
}

.vs-legal-back:hover,
.vs-legal-back:focus-visible {
  color: var(--vs-text);
}

/* Responsive: Tablet */
@media (max-width: 960px) {
  .vs-legal-page {
    grid-template-columns: 1fr;
  }

  .vs-legal-toc {
    position: relative;
    top: 0;
  }
}

/* Responsive: Mobile */
@media (max-width: 640px) {
  .vs-legal-page {
    gap: var(--vs-space-2xl);
  }

  .vs-legal-content h1 {
    font-size: var(--vs-text-xl);
  }

  .vs-legal-content h2 {
    font-size: var(--vs-text-base);
  }

  .vs-legal-list {
    padding-left: 1rem;
  }
}
