/* ==========================================================================
   Trust pages (privacy, disclaimer, about, contact, sources).

   These rules extend base.css and components.css; they do not replace them and
   they introduce no new visual language. The measure is capped at a readable
   width because these are text pages -- a full-bleed line at desktop width is
   the single biggest readability problem on a long-form page.

   No gradients, no glass, no 3D. The job here is to look like the rest of the
   site and then get out of the way.
   ========================================================================== */

.trust-page {
  background: var(--bg, #fbfcfb);
}

/* ------------------------------------------------------------------- hero */

.trust-hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.25rem);
  border-bottom: 1px solid var(--line, #e5e7e5);
  background: linear-gradient(180deg, #f2f7f5 0%, #fbfcfb 100%);
}

.trust-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.9rem, 5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--ink, #14201d);
}

.trust-lede {
  margin: 0;
  max-width: 62ch;
  font-size: clamp(1.02rem, 2.2vw, 1.16rem);
  line-height: 1.6;
  color: var(--ink-2, #46564f);
}

.trust-updated {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-3, #6b7c74);
}

/* ------------------------------------------------------------------- body */

.trust-body {
  padding: clamp(2rem, 4vw, 3rem) 0 clamp(3rem, 6vw, 4.5rem);
}

.trust-body > section {
  max-width: 68ch;
  margin: 0 0 2.25rem;
}

/* RTL: keep the measure, but anchor it to the right edge. */
[dir="rtl"] .trust-body > section {
  margin-left: 0;
}

.trust-body h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.15rem, 2.6vw, 1.32rem);
  line-height: 1.3;
  font-weight: 700;
  color: var(--ink, #14201d);
  /* A rule under each heading makes the page scannable without adding boxes. */
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--line, #e5e7e5);
}

.trust-body h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink, #14201d);
}

.trust-body p {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.72;
  color: var(--ink-2, #3d4b45);
}

.trust-body p:last-child {
  margin-bottom: 0;
}

.trust-body a {
  color: var(--brand, #0f766e);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.trust-body a:hover {
  color: var(--brand-dark, #115e59);
}

.trust-body a:focus-visible {
  outline: 2px solid var(--brand, #0f766e);
  outline-offset: 3px;
  border-radius: 2px;
}

.trust-body ul,
.trust-body ol {
  margin: 0 0 1rem;
  padding-inline-start: 1.35rem;
  line-height: 1.7;
  color: var(--ink-2, #3d4b45);
}

.trust-body li {
  margin-bottom: 0.4rem;
}

.trust-body strong {
  color: var(--ink, #14201d);
  font-weight: 650;
}

.trust-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: #eef3f1;
  padding: 0.12em 0.4em;
  border-radius: 4px;
}

/* --------------------------------------------------------- other pages box */

.trust-links {
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line, #e5e7e5);
}

.trust-links ul {
  list-style: none;
  padding-inline-start: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.6rem;
  margin-top: 0.9rem;
}

.trust-links li {
  margin: 0;
}

.trust-links a {
  display: block;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line, #e5e7e5);
  border-radius: 10px;
  background: #fff;
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink, #14201d);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.trust-links a:hover {
  border-color: var(--brand, #0f766e);
  background: #f5faf8;
  color: var(--brand-dark, #115e59);
}

/* ----------------------------------------------------------------- footer */

.site-foot__row {
  display: grid;
  gap: 1.25rem;
}

.foot-brand {
  font-weight: 700;
  color: var(--ink, #14201d);
  margin: 0 0 0.25rem;
}

.foot-col p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--ink-3, #6b7c74);
}

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.15rem;
  align-items: flex-start;
}

.foot-nav a {
  font-size: 0.88rem;
  color: var(--ink-2, #46564f);
  text-decoration: none;
  white-space: nowrap;
}

.foot-nav a:hover {
  color: var(--brand, #0f766e);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ------------------------------------------------------------------ mobile */

@media (max-width: 640px) {
  .trust-body p {
    font-size: 0.97rem;
    line-height: 1.68;
  }

  .trust-links ul {
    grid-template-columns: 1fr;
  }

  .foot-nav {
    gap: 0.45rem 0.95rem;
  }
}

/* -------------------------------------------------------------- a11y print */

@media print {
  .site-head,
  .site-foot,
  .trust-links,
  .consent-banner {
    display: none !important;
  }

  .trust-body > section {
    max-width: none;
  }
}