/* Prose layout for the legal pages. Loads after styles.css and reuses its
   palette tokens, so Terms, Privacy and Refunds follow the same light/dark
   theme the reader picked on the main site. */

.legal {
  max-width: 44rem;
  margin: 0 auto;
  padding: 7rem 1.5rem 6rem;
}

.legal-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}

.legal h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 0.75rem;
  text-wrap: balance;
}

.legal-meta {
  font-size: 0.875rem;
  color: var(--fg-62, #8A8FA8);
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--fg-26, rgba(128, 128, 140, 0.3));
}

.legal h2 {
  font-family: var(--serif);
  font-size: 1.375rem;
  line-height: 1.25;
  color: var(--fg);
  margin: 2.75rem 0 0.875rem;
}

.legal h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  margin: 1.75rem 0 0.5rem;
}

.legal p,
.legal li {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--fg-62, #8A8FA8);
}

.legal p { margin-bottom: 1rem; }

.legal ul,
.legal ol {
  margin: 0 0 1rem 1.25rem;
}

.legal li { margin-bottom: 0.5rem; }

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

.legal a {
  color: var(--blue-lit, #2563EB);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Used for the plain-English summary that opens each substantive section.
   The binding wording follows; this is the part people actually read. */
.legal-plain {
  border-left: 2px solid var(--red);
  padding: 0.125rem 0 0.125rem 1rem;
  margin: 0 0 1.25rem;
}

.legal-plain p {
  color: var(--fg);
  margin-bottom: 0;
}

.legal-toc {
  margin: 0 0 1rem 1.25rem;
}

.legal-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--fg-26, rgba(128, 128, 140, 0.3));
  font-size: 0.875rem;
  color: var(--fg-62, #8A8FA8);
}

.legal-back {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 0.875rem;
  color: var(--fg-62, #8A8FA8);
  text-decoration: none;
}

.legal-back:hover { color: var(--fg); }

/* Legal links in the main site footer. */
.foot-legal {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
}

.foot-legal a {
  color: inherit;
  text-decoration: none;
  opacity: 0.7;
}

.foot-legal a:hover { opacity: 1; text-decoration: underline; }
