/* Legal content pages (Privacy Policy / Terms of Service) — SCAFFOLD.
 *
 * Hand-authored (NOT Tailwind-generated) so the reachable legal pages render
 * correctly without a CSS rebuild (`make css`). Long-form legal copy needs
 * generic prose utilities that Tailwind purges out of the built app.css, so a
 * small dedicated stylesheet is the reliable, CSP-safe (same-origin, no inline
 * style) way to style these pages.
 *
 * Design tokens (--ink, --line, --accent, --caution-*) come from `.jp-app-bg`
 * in app.css (design-system.md คัมภีร์). Fallback hex values mirror the tokens
 * so the page stays readable even if a token is ever missing. One 10px radius,
 * line-over-shadow, no AI-slop chrome — per the design system.
 */

.jp-legal {
  max-width: 44rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 5rem;
  color: var(--ink, #19171c);
  line-height: 1.7;
}

.jp-legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-dim, #56515f);
  text-decoration: none;
}
.jp-legal-back:hover {
  color: var(--ink, #19171c);
}

.jp-legal h1 {
  margin-bottom: 0.4rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
}

.jp-legal-meta {
  margin-bottom: 2rem;
  font-size: 0.875rem;
  color: var(--ink-dim, #56515f);
}

/* Clearly-marked scaffold banner — reuses the app-wide caution token so it
 * reads unmistakably as "incomplete, pending final legal wording". */
.jp-legal-note {
  margin-bottom: 2.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--caution-ink, #7a5500);
  border-radius: 10px;
  background: var(--caution-bg, #fff4cf);
  color: var(--caution-ink, #7a5500);
  font-size: 0.9375rem;
}
.jp-legal-note strong {
  font-weight: 700;
}

.jp-legal h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line, #e6e1ee);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink, #19171c);
}
.jp-legal h2:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.jp-legal p {
  margin-bottom: 1rem;
  color: var(--ink-dim, #56515f);
}
.jp-legal p.jp-legal-lead {
  color: var(--ink, #19171c);
  font-size: 1.05rem;
}

.jp-legal ul {
  margin: 0 0 1rem 0;
  padding-left: 1.25rem;
}
.jp-legal li {
  margin-bottom: 0.5rem;
  color: var(--ink-dim, #56515f);
  list-style: disc;
}

/* Inline marker for every spot Pun/legal must supply final wording. */
.jp-legal-placeholder {
  color: var(--warning, #7a5500);
  font-weight: 600;
}

.jp-legal-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line, #e6e1ee);
  font-size: 0.8125rem;
  color: var(--ink-dim, #56515f);
}
.jp-legal-footer a {
  color: var(--accent, #7a40ed);
  text-decoration: none;
}
.jp-legal-footer a:hover {
  text-decoration: underline;
}
