/* ==========================================================================
   Tandem Legal & Standard Content Pages (`legal.css`)
   ========================================================================== */

/* --- 1. Page Layout & Container --- */
.legal-page-content {
  padding-top: calc(80px + var(--space-3xl));
  padding-bottom: var(--space-4xl);
  position: relative;
}

.legal-page-inner {
  max-width: 960px;
  margin: 0 auto;
}

/* --- 2. Headings Hierarchy (Strictly Scoped) --- */
.legal-page-content h1 {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 36px;
  line-height: 1.25;
  color: var(--text-white);
  margin-bottom: var(--space-2xl);
  text-transform: none;
}

.legal-page-content h2 {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.3;
  color: var(--text-white);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  text-transform: none;
}

.legal-page-content h3 {
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.35;
  color: var(--text-white);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
  text-transform: none;
}

.legal-page-content h4 {
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.4;
  color: var(--text-white);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-xs);
  text-transform: none;
}

/* --- 3. Body Text & Paragraphs --- */
.legal-page-content p {
  font-family: var(--font-text);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-md);
}

/* --- 4. Lists (Unordered & Ordered) --- */
.legal-page-content ul,
.legal-page-content ol {
  margin-bottom: var(--space-lg);
  padding-left: var(--space-xl);
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-text);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
}

.legal-page-content li {
  margin-bottom: var(--space-xs);
  font-family: var(--font-text);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
}

/* --- 5. Links --- */
.legal-page-content a {
  color: var(--primary-purple);
  text-decoration: underline;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.legal-page-content a:hover {
  opacity: 0.8;
  color: var(--primary-purple-light);
}

/* --- 6. Responsive Adaptations --- */
@media (max-width: 768px) {
  .legal-page-content {
    padding-top: calc(80px + var(--space-xl));
    padding-bottom: var(--space-2xl);
  }

  .legal-page-content h1 {
    font-size: 28px;
    margin-bottom: var(--space-xl);
  }

  .legal-page-content h2 {
    font-size: 22px;
    margin-top: var(--space-xl);
  }

  .legal-page-content h3 {
    font-size: 18px;
  }
}