/* ===================================================================
   seo.css — SEO text block placed at the bottom of every page
   Shared by all pages; imported after the page stylesheet.
   =================================================================== */

.seo {
  margin-top: 46px;
  padding: 34px 0 8px;
  border-top: 1px solid var(--border-soft);
}

.seo__inner {
  max-width: 1180px;
  margin: 0 auto;
}

/* ---------- Headings ---------- */
.seo__h2 {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.01em;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.seo__h2:not(:first-child) { margin-top: 30px; }

/* ---------- Body copy ---------- */
.seo__p {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.75;
  color: var(--text-secondary);
}

.seo__p + .seo__p { margin-top: 12px; }

/* Brand mentions inside the copy stay subtly highlighted */
.seo__p b,
.seo__p strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* ---------- Collapsible on small screens ----------
   The block is long; on narrow viewports it is clamped with a fade and
   expanded by the "read more" toggle so it never dominates the page. */
.seo__body {
  position: relative;
}

.seo__toggle {
  display: none;
  margin: 14px auto 0;
}

@media (max-width: 768px) {
  .seo { margin-top: 30px; padding-top: 24px; }

  .seo__h2 { font-size: 17px; margin-bottom: 10px; }
  .seo__h2:not(:first-child) { margin-top: 22px; }
  .seo__p { font-size: 13px; line-height: 1.7; }

  .seo__body {
    max-height: 340px;
    overflow: hidden;
  }

  .seo__body::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 90px;
    background: linear-gradient(180deg, transparent, var(--bg-page));
    pointer-events: none;
    transition: opacity var(--t) var(--ease);
  }

  .seo__body.is-open {
    max-height: none;
  }

  .seo__body.is-open::after { opacity: 0; }

  .seo__toggle { display: inline-flex; }
}

@media (max-width: 480px) {
  .seo__h2 { font-size: 16px; }
  .seo__p { font-size: 12.5px; }
}
