/* ==========================================================================
   Legal pages (Terms of Service / Privacy Policy / Refund & Cancellation
   Policy): table of contents, readable-width content typography, and the
   inline "needs owner review" placeholder marker. Ported from
   PantherSoft23/wwwroot/css/legal-pages.css, re-keyed to --memora-* tokens.
   Loaded only on these three pages via @section Styles.
   ========================================================================== */

/* Inline "needs a real decision" marker - used wherever the text couldn't be
   confirmed from the codebase rather than guessed. See
   MEMORA_SITE_ASSUMPTIONS.md for the full list. */
.legal-flag {
  display: inline-block;
  background: rgba(254, 188, 59, 0.12);
  border: 1px solid rgba(254, 188, 59, 0.4);
  color: var(--memora-highlight);
  font-weight: 600;
  font-size: 0.92em;
  padding: 1px 8px;
  border-radius: 4px;
  white-space: normal;
}

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

/* Table of contents ---------------------------------------------------- */
.legal-toc {
  background: var(--memora-bg-card-solid);
  border: 1px solid var(--memora-border);
  border-radius: var(--memora-radius-md);
  padding: 22px 26px;
  margin: 0 0 40px;
}
.legal-toc h2 {
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--memora-accent-hover);
  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(--memora-text-secondary);
}
.legal-toc a:hover {
  color: var(--memora-accent-hover);
}

/* Readable content column ----------------------------------------------- */
.legal-content {
  color: var(--memora-text-secondary);
  font-size: 15px;
  line-height: 1.75;
  max-width: 760px;
  margin: 0 auto;
}
.legal-content h2 {
  font-size: 22px;
  color: var(--memora-text-primary);
  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(--memora-text-primary);
  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(--memora-accent-hover);
  text-decoration: underline;
  text-decoration-color: rgba(122, 115, 236, 0.35);
}
.legal-content a:hover {
  text-decoration-color: var(--memora-accent-hover);
}
.legal-content strong {
  color: var(--memora-text-primary);
}
.legal-content hr {
  border: none;
  border-top: 1px solid var(--memora-border);
  margin: 40px 0;
}

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