/* ════════════════════════════════════════════════════════════════
   Meridian marketing — content / legal / article layout.

   A SHARED stylesheet for the static credibility pages (about, faq,
   contact, terms, privacy). It adds ONLY prose + layout rules; every
   color, radius, shadow, font and motion token is pulled from
   landing.css via the var(--*) tokens defined on .meridian-landing-root,
   so these pages match the galaxy landing exactly. Scoped under
   .meridian-landing-root for the same reason landing.css is.

   These pages are pure static: no starfield canvas, no orb JS, no
   scroll-snap container — just the .ml-bg galaxy backdrop, the glass
   nav, a centered prose column, and the footer.
   ════════════════════════════════════════════════════════════════ */

/* The content pages are plain document scroll (no .ml-scroll snap
   container), so the page itself owns the galaxy color underneath the
   fixed .ml-bg layer. */
.meridian-landing-root {
  min-height: 100vh;
  background: var(--bg-0);
}
.meridian-landing-root body,
body { margin: 0; background: var(--bg-0); }

/* Content sits above the fixed .ml-bg (z-index:0) galaxy backdrop. */
.content-page {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--nav-height) + 60px);  /* clear the 60px fixed nav */
  padding-bottom: 8px;
  min-height: 100vh;
}

/* Centered prose column. */
.content-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
/* Slightly wider for grid layouts (faq columns, contact cards). */
.content-wrap.is-wide { max-width: 920px; }

/* ── Page header ── */
.content-head { margin-bottom: 40px; }
.content-head .ml-eyebrow { margin-bottom: 16px; }
.content-page h1 {
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -1px;
  color: #fff;
  margin: 0 0 16px;
}
.content-page h1 .ml-grad {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.content-lead {
  font-size: var(--fs-lead);
  color: var(--text-2);
  line-height: var(--lh-relaxed);
  margin: 0;
  max-width: 64ch;
}
.content-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 14px 0 0;
}

/* ── Prose body ── */
.prose { color: var(--text-1); }
.prose > * + * { margin-top: 18px; }

.prose h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: #fff;
  margin: 48px 0 4px;
  line-height: 1.25;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-strong);
  margin: 28px 0 0;
  line-height: 1.35;
}
.prose p {
  font-size: 15.5px;
  line-height: var(--lh-relaxed);
  color: var(--text-2);
  margin: 0;
}
.prose p strong { color: var(--text-1); font-weight: 600; }
.prose a {
  color: var(--teal);
  font-weight: 600;
  border-bottom: 1px dashed var(--border-t);
  padding-bottom: 1px;
}
.prose a:hover { opacity: 0.85; }

.prose ul, .prose ol {
  margin: 8px 0 0;
  padding-left: 22px;
  color: var(--text-2);
  font-size: 15.5px;
  line-height: var(--lh-relaxed);
}
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--violet); }

/* Subtle mono eyebrow used inline in prose (sentence-following labels). */
.prose .ml-label-teal { margin: 4px 0 0; }

/* ── Section block (a soft divider rule above a major heading) ── */
.prose hr {
  border: none;
  height: 1px;
  background: var(--border-1);
  margin: 40px 0;
}

/* ════════════════════════════════════════════════════════════════
   Legal pages (terms, privacy) — numbered clause blocks.
   ════════════════════════════════════════════════════════════════ */
.legal { color: var(--text-2); }
.legal .legal-block { margin-top: 36px; }
.legal .legal-block:first-of-type { margin-top: 0; }
.legal .legal-block h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
  letter-spacing: -0.3px;
}
.legal .legal-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--violet);
  flex-shrink: 0;
}
.legal p { font-size: 14.5px; line-height: var(--lh-relaxed); color: var(--text-2); margin: 0 0 12px; }
.legal p:last-child { margin-bottom: 0; }
.legal ul { margin: 4px 0 12px; padding-left: 20px; font-size: 14.5px; line-height: var(--lh-relaxed); color: var(--text-2); }
.legal ul li::marker { color: var(--teal); }
.legal a { color: var(--teal); font-weight: 600; border-bottom: 1px dashed var(--border-t); }
.legal a:hover { opacity: 0.85; }

/* Template / review banner used at the top of legal pages. */
.legal-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--amber);
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: var(--r-md);
  padding: 11px 14px;
  margin-bottom: 32px;
}
.legal-banner svg { flex: 0 0 auto; color: var(--amber); }

/* ════════════════════════════════════════════════════════════════
   FAQ — Q/A blocks (built on the shared .ml-card surface).
   ════════════════════════════════════════════════════════════════ */
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  padding: 22px 24px;
  position: relative;
  overflow: hidden;
}
.faq-item::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--violet), var(--teal), transparent);
  opacity: 0.55;
}
.faq-q {
  font-size: 16.5px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
  letter-spacing: -0.2px;
  line-height: 1.35;
}
.faq-a {
  font-size: 14.5px;
  line-height: var(--lh-relaxed);
  color: var(--text-2);
  margin: 0;
}
.faq-a a { color: var(--teal); font-weight: 600; border-bottom: 1px dashed var(--border-t); }
.faq-a a:hover { opacity: 0.85; }
.faq-a + .faq-a { margin-top: 10px; }

/* ════════════════════════════════════════════════════════════════
   Contact — card layout.
   ════════════════════════════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 8px;
}
.contact-card {
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--violet), var(--teal), transparent);
  opacity: 0.6;
}
.contact-ic {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 16px;
  background: var(--teal-dim); border: 1px solid var(--border-t); color: var(--teal);
}
.contact-card h2 {
  font-size: 17px; font-weight: 700; color: #fff; margin: 0 0 6px; letter-spacing: -0.2px;
}
.contact-card p {
  font-size: 14px; line-height: var(--lh-relaxed); color: var(--text-2); margin: 0 0 16px;
}
.contact-card .ml-cta-primary,
.contact-card .ml-ghost { margin-top: auto; }
.contact-link {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--teal);
  font-weight: 500;
  border-bottom: 1px dashed var(--border-t);
  padding-bottom: 1px;
}
.contact-link:hover { opacity: 0.85; }

/* ── Inline CTA band shared by content pages ── */
.content-cta {
  margin-top: 56px;
  padding: 34px 28px;
  text-align: center;
  border-radius: var(--r-2xl);
  border: 1px solid rgba(255,255,255,0.10);
  background: linear-gradient(160deg, rgba(31,37,58,0.72), rgba(16,19,30,0.82));
  position: relative;
  overflow: hidden;
}
.content-cta::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,104,250,0.55), rgba(0,214,172,0.45), transparent);
}
.content-cta h2 {
  font-size: 24px; font-weight: 800; letter-spacing: -0.4px; color: #fff; margin: 0 0 10px;
}
.content-cta p {
  font-size: 15px; color: var(--text-2); line-height: 1.6; margin: 0 auto 22px; max-width: 46ch;
}

/* ════════════════════════════════════════════════════════════════
   Footer link row (added below the reused .ml-footer brand line).
   ════════════════════════════════════════════════════════════════ */
.ml-foot-links {
  border-top: 1px solid var(--border-1);
  margin-top: 8px;
}
.ml-foot-links-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 22px var(--gutter) 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.ml-foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.ml-foot-nav a {
  font-size: 13px;
  color: var(--text-2);
  font-weight: 500;
}
.ml-foot-nav a:hover { color: var(--text-1); }
.ml-foot-social {
  display: flex;
  align-items: center;
  gap: 14px;
}
.ml-foot-social a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-2);
  font-weight: 500;
}
.ml-foot-social a:hover { color: var(--text-1); }
.ml-foot-social a svg { color: currentColor; }

/* ── Responsive ── */
@media (max-width: 720px) {
  .content-page { padding-top: calc(var(--nav-height) + 36px); }
  .contact-grid { grid-template-columns: 1fr; }
  .ml-foot-links-inner { flex-direction: column; align-items: flex-start; }
}
