/* Legal page reading layout. Author: Daniel Hallman. */
.section-container.legal-page {
  max-width: calc(70ch + 96px);
  padding: 24px 20px 40px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
}

.legal-page .legal-header,
.legal-page .legal-content {
  padding: 24px;
}

.legal-header { margin-bottom: 16px; }
.legal-content > div { max-width: 70ch; margin-inline: auto; }
.legal-content > div + div { margin-top: 24px; }

.legal-page .legal-title {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 400;
  line-height: 1.15;
}

.legal-page .legal-section-title {
  margin: 0 0 8px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-black);
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
  text-transform: none;
}

.legal-page p {
  margin: 8px 0 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
}

.legal-page strong,
.legal-page .legal-emphasis,
.legal-page .legal-notice-title { font-weight: 700; }
.legal-page .legal-promise { color: #166534; }
.legal-byline { color: #374151; }

.legal-meta {
  display: inline-block;
  max-width: 100%;
  border: 2px solid var(--border-black);
  padding: 6px 10px;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.4;
}
.legal-meta-yellow { background: var(--bg-yellow); }
.legal-meta-cyan { background: var(--bg-cyan); }

.legal-notice {
  margin: 8px 0;
  padding: 12px 16px;
  border-left: 4px solid var(--border-black);
}
.legal-notice-yellow { background: #fffbd6; }
.legal-notice-cyan { background: #e8fffe; }
.legal-page .legal-notice > p:first-child { margin-top: 0; }

.legal-page .legal-list {
  margin: 8px 0 0;
  padding-left: 1.5em;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  list-style-position: outside;
}
.legal-page ul.legal-list { list-style-type: disc; }
.legal-page ol.legal-list { list-style-type: decimal; }
.legal-list li + li { margin-top: 8px; }

.legal-contact {
  margin-top: 8px;
  padding: 12px 16px;
  border: 2px solid var(--border-black);
  background: #f3f4f6;
  overflow-wrap: anywhere;
}

.legal-cta {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}
.legal-cta .neo-btn {
  max-width: 100%;
  min-height: 44px;
  font-family: var(--font-body);
  white-space: normal;
  text-align: center;
  line-height: 1.4;
}

@media (max-width: 600px) {
  .section-container.legal-page { padding: 16px 12px 28px; }
  .legal-page .legal-header,
  .legal-page .legal-content { padding: 16px; }
  .legal-notice,
  .legal-contact { padding: 12px; }
}
