/* ==========================================================================
   Legal pages (Terms / Privacy / License / Refund): table of contents,
   readable-width typography, and the inline "needs owner review" marker.
   Ported from MemoraSite/wwwroot/css/legal-pages.css, re-keyed to --pbr-*
   tokens (light theme). Loaded only on these pages via @section Styles.
   ========================================================================== */

/* Inline "needs a real decision" marker - used wherever the text couldn't be
   confirmed from the app source rather than guessed. See
   BARCODE_SITE_ASSUMPTIONS.md for the full list. */
.legal-flag {
  display: inline-block;
  background: #FEF3C7;
  border: 1px solid #F59E0B;
  color: #92400E;
  font-weight: 600;
  font-size: 0.92em;
  padding: 1px 8px;
  border-radius: 4px;
  white-space: normal;
}

.legal-meta {
  color: var(--pbr-text-muted);
  font-size: 13px;
  margin: -10px 0 30px;
}

/* Table of contents ---------------------------------------------------- */
.legal-toc {
  background: var(--pbr-surface);
  border: 1px solid var(--pbr-border);
  border-radius: var(--pbr-radius-md);
  padding: 22px 26px;
  margin: 0 0 40px;
}
.legal-toc h2 {
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--pbr-purple);
  margin: 0 0 14px;
}
.legal-toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 32px;
}
.legal-toc li {
  margin-bottom: 8px;
  font-size: 14px;
  break-inside: avoid;
}
.legal-toc a { color: var(--pbr-text-secondary); }
.legal-toc a:hover { color: var(--pbr-purple); }

/* Readable content column ----------------------------------------------- */
.legal-content {
  color: var(--pbr-text-secondary);
  font-size: 15px;
  line-height: 1.75;
  max-width: 760px;
  margin: 0 auto;
}
.legal-content h2 {
  font-size: 22px;
  color: var(--pbr-text);
  margin: 46px 0 14px;
  padding-top: 8px;
  scroll-margin-top: 100px;
}
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content h3 {
  font-size: 17px;
  color: var(--pbr-text);
  margin: 26px 0 10px;
  scroll-margin-top: 100px;
}
.legal-content p { margin: 0 0 16px; }
.legal-content ul,
.legal-content ol { margin: 0 0 16px; padding-left: 22px; }
.legal-content li { margin-bottom: 8px; }
.legal-content a {
  color: var(--pbr-purple);
  text-decoration: underline;
  text-decoration-color: rgba(108, 53, 232, 0.35);
}
.legal-content a:hover { text-decoration-color: var(--pbr-purple); }
.legal-content strong { color: var(--pbr-text); }
.legal-content hr {
  border: none;
  border-top: 1px solid var(--pbr-border);
  margin: 40px 0;
}

@media (max-width: 600px) {
  .legal-toc ol { columns: 1; }
}
