/*
 * The Credentialist — Legal Page Styles
 * Loaded after style2.css on terms.html and privacy.html.
 * Includes breadcrumb styles (duplicated from specialty.css)
 * and long-form prose readability overrides.
 */

/* ============================================
   BREADCRUMB (duplicated from specialty.css)
   ============================================ */

.spec-breadcrumb {
  padding: calc(var(--sp-20) + 24px) 0 0;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  position: relative;
  z-index: 2;
}

.spec-breadcrumb__list {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.spec-breadcrumb__list a {
  color: var(--sage-deep);
  font-weight: 500;
  transition: color 0.2s var(--ease-smooth);
}

.spec-breadcrumb__list a:hover {
  color: var(--brown);
}

.spec-breadcrumb__sep {
  color: var(--n-400);
  user-select: none;
}

.spec-breadcrumb__current {
  color: var(--text-secondary);
  font-weight: 500;
}

/* ============================================
   LEGAL PAGE HEADER
   ============================================ */

.legal-header {
  padding: var(--sp-10) 0 var(--sp-8);
  border-bottom: 2px solid var(--sage);
  margin-bottom: var(--sp-10);
}

.legal-header h1 {
  font-family: var(--ff-display);
  font-size: var(--fs-4xl);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 var(--sp-2);
}

.legal-meta {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin: 0;
}

/* ============================================
   LEGAL PROSE CONTENT
   ============================================ */

.legal-content {
  padding-bottom: var(--sp-16);
}

.legal-content p {
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
  color: var(--text-secondary);
  margin: 0 0 var(--sp-4);
}

.legal-content h2 {
  font-family: var(--ff-display);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin: var(--sp-10) 0 var(--sp-4);
  line-height: 1.3;
}

.legal-content h3 {
  font-family: var(--ff-body);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--text);
  margin: var(--sp-6) 0 var(--sp-3);
  line-height: 1.4;
}

/* Override global list-style: none reset */
.legal-content ul,
.legal-content ol {
  list-style: revert;
  padding-left: var(--sp-8);
  margin: 0 0 var(--sp-4);
}

.legal-content ul {
  list-style-type: disc;
}

.legal-content ol {
  list-style-type: decimal;
}

.legal-content li {
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
  color: var(--text-secondary);
  margin-bottom: var(--sp-2);
}

.legal-content a {
  color: var(--sage-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s var(--ease-smooth);
}

.legal-content a:hover {
  color: var(--brown);
}

.legal-content a:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 2px;
  border-radius: 2px;
}

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

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 767px) {
  .spec-breadcrumb {
    padding-top: calc(var(--sp-16) + 16px);
  }

  .legal-header h1 {
    font-size: var(--fs-3xl);
  }

  .legal-content h2 {
    font-size: var(--fs-xl);
  }
}
