/**
 * TICKET-378A: Standalone Trust Page Premium Styling
 *
 * Loaded on the three standalone legal/about templates:
 *   templates/page-about.php
 *   templates/page-privacy-policy.php
 *   templates/page-terms-and-conditions.php
 *
 * These templates share the class structure:
 *   <main class="site-main page-standard page-{name}">
 *     <div class="container container--narrow">
 *       <header class="page-header">
 *         <h1>…</h1>
 *         <p class="page-meta">…</p>
 *       </header>
 *       <section aria-labelledby="…"><h2>…</h2>…</section>
 *     </div>
 *   </main>
 *
 * Scoped under .page-standard to avoid bleeding into other templates.
 * Typographic scale matches premium-instructions.css — the reference page.
 *
 * Token source: css/tokens.css (loaded before this file).
 * Dark mode is default. Light mode via html.light-mode.
 *
 * NOT included:
 *   - Page routing or template changes
 *   - Any legal/about copy changes
 *   - Header, footer, or mobile nav changes
 */

/* ─── Page wrapper ───────────────────────────────────────────────────────────── */

.page-standard {
  padding: 2rem 0;
  min-height: 100vh;
  color: var(--text-primary);
  font-family: var(--font-logic);
  line-height: 1.6;
  background-color: var(--bg-page);
}

html.light-mode .page-standard {
  background-color: var(--vellum-base);
  color: var(--ink-blueprint);
}

/* Override base .container card treatment (box-shadow, border, max-width) that
 * styles.css may apply, and match the 900px canvas used by premium-instructions.css.
 * .container--narrow is used by these templates; reset it to the wider reading width. */
.page-standard .container,
.page-standard .container--narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
  background: transparent;
  box-shadow: none;
  border: none;
}

/* ─── Page header block ──────────────────────────────────────────────────────── */

.page-standard .page-header {
  text-align: center;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
}

html.light-mode .page-standard .page-header {
  border-bottom-color: var(--line-soft);
}

/* ─── Page title (h1) ────────────────────────────────────────────────────────── */
/*
 * The global premium.css h1 is clamp(2rem, 4vw, 3.5rem) / letter-spacing: 0.18em.
 * That scale is for splash/hero use; it is too display-heavy for legal and about content.
 * Match the instructions page: clamp(1.75rem, 4vw, 2.5rem) / 0.14em.
 */

.page-standard h1 {
  font-family: var(--font-gnosis);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 0;
  text-shadow: 0 0 30px rgba(212, 175, 55, 0.08);
}

html.light-mode .page-standard h1 {
  color: var(--ink-blueprint);
  text-shadow: none;
}

/* ─── Page meta (maintainer / last-updated line) ────────────────────────────── */

.page-standard .page-meta {
  font-family: var(--font-logic);
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  margin-bottom: 0;
  line-height: 1.5;
}

html.light-mode .page-standard .page-meta {
  color: var(--ink-slate);
}

.page-standard .page-meta strong {
  color: var(--text-primary);
  font-weight: 600;
}

html.light-mode .page-standard .page-meta strong {
  color: var(--ink-blueprint);
}

/* ─── Section headings (h2) ─────────────────────────────────────────────────── */

.page-standard h2 {
  font-family: var(--font-gnosis);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

html.light-mode .page-standard h2 {
  color: var(--amber-logic);
  border-bottom-color: var(--line-soft);
}

/* ─── Sub-headings (h3) ──────────────────────────────────────────────────────── */

.page-standard h3 {
  font-family: var(--font-logic);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: none;
  letter-spacing: normal;
  margin-top: 1.25rem;
  margin-bottom: 0.625rem;
}

html.light-mode .page-standard h3 {
  color: var(--ink-blueprint);
}

/* ─── Body text ──────────────────────────────────────────────────────────────── */

.page-standard p,
.page-standard li {
  font-family: var(--font-logic);
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0.875rem;
}

html.light-mode .page-standard p,
html.light-mode .page-standard li {
  color: var(--ink-slate);
}

/* ─── Lists ──────────────────────────────────────────────────────────────────── */

.page-standard ul,
.page-standard ol {
  padding-left: 1.4rem;
  margin-bottom: 1.25rem;
}

.page-standard li {
  margin-bottom: 0.4rem;
}

/* ─── Sections ───────────────────────────────────────────────────────────────── */

.page-standard section {
  margin-bottom: 2.5rem;
}

/* ─── Inline links ───────────────────────────────────────────────────────────── */

.page-standard a {
  color: var(--accent);
  transition: color var(--dur-fast);
}

.page-standard a:hover {
  color: var(--accent);
  opacity: 0.8;
  text-decoration: underline;
}

html.light-mode .page-standard a {
  color: var(--amber-logic);
}

html.light-mode .page-standard a:hover {
  color: var(--amber-logic);
  opacity: 0.8;
}

/* ─── Mobile ─────────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .page-standard .container,
  .page-standard .container--narrow {
    padding: 0 1rem;
  }
}
