/* Privacy Policy and Terms and Conditions pages */

.legal-hero {
  padding: 3.5rem var(--gutter) 2rem;
  border-bottom: 1px solid var(--rule);
}

.legal-hero-content {
  max-width: calc(var(--wrap) - 2 * var(--gutter));
  margin: 0 auto;
}

.legal-title {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  margin-bottom: 0.9rem;
}

.legal-meta {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.legal-meta strong {
  color: var(--ink);
  font-weight: 600;
}

.legal-wrap {
  padding: 2.5rem var(--gutter) 3.5rem;
}

.legal-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
  max-width: calc(var(--wrap) - 2 * var(--gutter));
  margin: 0 auto;
}

.legal-toc {
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
  padding-top: 0.25rem;
}

.legal-toc-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.6rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--ink);
}

.legal-toc ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  max-height: 65vh;
  overflow-y: auto;
}

.legal-toc a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  line-height: 1.4;
  padding: 0.4rem 0 0.4rem 0.75rem;
  border-left: 2px solid var(--rule);
}

.legal-toc a:hover {
  color: var(--ink);
}

.legal-toc a.active {
  color: var(--ink);
  font-weight: 600;
  border-left-color: var(--pencil);
}

.legal-content {
  max-width: 44rem;
}

.legal-content h2 {
  font-size: 1.5rem;
  line-height: 1.25;
  margin: 2.5rem 0 0.8rem;
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  font-size: 0.98rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

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

.legal-content ul {
  margin: 0 0 1.1rem;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.legal-content li {
  font-size: 0.98rem;
  line-height: 1.7;
  padding-left: 0.25rem;
}

.legal-content li::marker {
  color: var(--ink);
}

.legal-content a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--pencil);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.legal-callout {
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--band);
  border-left: 3px solid var(--ink);
}

.legal-callout-row {
  display: flex;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.95rem;
}

.legal-callout-row:last-of-type {
  border-bottom: none;
}

.legal-callout-row span {
  flex-shrink: 0;
  width: 140px;
  color: var(--muted);
  font-size: 0.88rem;
}

.legal-callout-row a,
.legal-callout-row p {
  color: var(--ink);
  margin: 0;
}

.legal-callout-note {
  margin: 0.75rem 0 0 !important;
  padding-top: 0.9rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9rem !important;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .legal-toc {
    position: static;
  }

  .legal-toc ol {
    max-height: none;
  }
}

@media (max-width: 600px) {
  .legal-callout-row {
    flex-direction: column;
    gap: 0.15rem;
  }

  .legal-callout-row span {
    width: auto;
  }
}
