/* ==========================================================================
   FinOrjin public marketing site — legal + SEO landing pages (Wave 5)
   static/css/marketing/pages/legal-seo.css
   Loaded ONLY by marketing/legal_page.html and marketing/seo_page.html,
   after the core marketing.css. Scoped under body.mk-site; core tokens,
   .mk-prose (legal body), .mk-card and .mk-info-grid do the rest.
   ========================================================================== */

/* ---- Legal: restrained hero, text-first card ------------------------------ */
.mk-site.mk-page--legal .mk-page-hero__panel {
  padding: clamp(104px, 11vw, 132px) 0 clamp(32px, 4vw, 48px);
}

.mk-site.mk-page--legal .mk-page-hero__title {
  font-size: clamp(1.9rem, 1.3rem + 2vw, 2.75rem);
}

.mk-site .mk-legal {
  padding: clamp(32px, 5vw, 56px) 0 var(--mk-section-y);
}

.mk-site .mk-legal__card {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 48px);
  border: 1px solid var(--mk-line);
  border-radius: var(--mk-radius-lg);
  background: var(--mk-surface);
  box-shadow: var(--mk-shadow-sm);
}

.mk-site .mk-legal__meta {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--mk-line);
}

.mk-site .mk-legal__heading {
  color: var(--mk-ink);
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.015em;
}

.mk-site .mk-legal__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 10px;
  color: var(--mk-muted);
  font-size: 0.9rem;
}

.mk-site .mk-legal__version {
  font-weight: 700;
  color: var(--mk-ink-2);
}

/* Sanitized legal HTML: every tag clean_legal_html() allows is styled; the
   markup itself is never changed. Long words/URLs wrap, tables and code
   scroll inside the card instead of widening the page. */
.mk-site .mk-legal__body {
  max-width: none;
  overflow-wrap: anywhere;
}

.mk-site .mk-legal__body h1,
.mk-site .mk-legal__body h5,
.mk-site .mk-legal__body h6 {
  margin: 1.6em 0 0.5em;
  color: var(--mk-ink);
  font-weight: 700;
  line-height: 1.3;
}

.mk-site .mk-legal__body h1 {
  font-size: 1.6rem;
}

.mk-site .mk-legal__body h5,
.mk-site .mk-legal__body h6 {
  font-size: 0.98rem;
}

.mk-site .mk-legal__body h6 {
  color: var(--mk-ink-2);
}

.mk-site .mk-legal__body pre {
  overflow-x: auto;
  margin: 0 0 1.1em;
  padding: 14px 16px;
  border: 1px solid var(--mk-line);
  border-radius: 12px;
  background: #f6f8fb;
}

.mk-site .mk-legal__body code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.92em;
}

.mk-site .mk-legal__body table {
  overflow-wrap: normal;
}

/* ---- SEO landing pages ----------------------------------------------------- */
.mk-site .mk-seo-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.mk-site .mk-seo-card .mk-card__text a {
  color: var(--mk-blue-600);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 575.98px) {
  .mk-site .mk-seo-ctas .mk-btn {
    width: 100%;
    height: auto;
    min-height: 54px;
    padding-block: 12px;
    white-space: normal;
    text-align: center;
  }
}
