/*
 * EgoLog trust/about page — additive stylesheet.
 *
 * Loaded AFTER /legal-center.v3.css. It adds only the four components the
 * legal system does not already provide (order flow, official channels,
 * document tiers, honest-limits list). Everything else on the page reuses
 * existing legal-center classes, so the page inherits the dark EgoLog
 * palette, focus rings, print rules and breakpoints without duplication.
 *
 * No custom colour is introduced: every value below is either an existing
 * legal-center custom property or a shade already present in that file.
 */

/* ── Order flow: five ordered steps ─────────────────────────────────── */

.trustFlow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 4px;
  padding: 0;
  list-style: none;
  counter-reset: trustFlowStep;
}

.trustFlow li {
  counter-increment: trustFlowStep;
  margin: 0;
  border: 1px solid rgba(117, 150, 190, 0.2);
  border-radius: 12px;
  background: rgba(11, 29, 49, 0.72);
  padding: 16px 15px;
  color: #9eb0c5;
  font-size: 14px;
  line-height: 1.6;
}

.trustFlow li::before {
  content: "0" counter(trustFlowStep);
  display: block;
  margin-bottom: 10px;
  color: var(--legal-mint);
  font-family: var(--font-geist-mono), monospace;
  font-size: 11px;
  font-weight: 900;
}

.trustFlow b {
  display: block;
  margin-bottom: 6px;
  color: #e2ecf8;
  font-size: 15px;
  line-height: 1.35;
}

/* ── Official channels ──────────────────────────────────────────────── */

.trustChannels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 4px;
  padding: 0;
  list-style: none;
}

.trustChannels li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  border: 1px solid rgba(116, 153, 201, 0.18);
  border-radius: 12px;
  background: rgba(7, 21, 36, 0.78);
  padding: 14px 15px;
}

.trustChannels span {
  color: #7189a5;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.trustChannels a,
.trustChannels strong {
  min-height: 0;
  color: #e2ecf8;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.trustChannels a {
  color: var(--legal-mint);
}

.trustChannels small {
  color: #8398b1;
  font-size: 13px;
  line-height: 1.55;
}

/* ── Document tiers: public reference vs legal sheet ────────────────── */

.trustTiers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 4px;
}

.trustTiers > div {
  border: 1px solid rgba(116, 153, 201, 0.2);
  border-radius: 12px;
  background: rgba(11, 29, 49, 0.6);
  padding: 17px;
}

.trustTiers > div.isBinding {
  border-color: rgba(102, 214, 191, 0.32);
  background: linear-gradient(135deg, rgba(18, 97, 83, 0.12), rgba(14, 41, 63, 0.42));
}

.trustTiers h3 {
  margin: 8px 0 8px;
  font-size: 17px;
}

.trustTiers > div > span {
  color: #7189a5;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.trustTiers.isBindingTier > div > span,
.trustTiers > div.isBinding > span {
  color: var(--legal-mint);
}

.trustTiers p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
}

/* ── Honest-limits list ─────────────────────────────────────────────── */

.trustLimits {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.trustLimits li {
  position: relative;
  margin: 0 0 10px;
  border-left: 2px solid rgba(224, 194, 116, 0.4);
  padding: 2px 0 2px 15px;
  color: #9eb0c5;
  font-size: 15px;
  line-height: 1.72;
}

.trustLimits li:last-child {
  margin-bottom: 0;
}

.trustLimits b {
  color: #dbe6f3;
  font-weight: 800;
}

/* ── Responsive ─────────────────────────────────────────────────────── */

@media (max-width: 940px) {
  .trustFlow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .trustFlow,
  .trustChannels,
  .trustTiers {
    grid-template-columns: 1fr;
  }

  .trustFlow li,
  .trustChannels li {
    font-size: 14px;
  }

  .trustLimits li {
    font-size: 14px;
  }
}

@media print {
  .legalDocumentBody .trustFlow,
  .legalDocumentBody .trustChannels,
  .legalDocumentBody .trustTiers {
    grid-template-columns: 1fr;
  }

  .legalDocumentBody .trustFlow li,
  .legalDocumentBody .trustChannels li,
  .legalDocumentBody .trustTiers > div,
  .legalDocumentBody .trustFlow b,
  .legalDocumentBody .trustChannels strong,
  .legalDocumentBody .trustLimits li {
    background: #fff !important;
    color: #111 !important;
  }
}
