/* Trust, compliance, and documentation hub pages */

.page-shell {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 640px) {
  .page-shell {
    padding: 0 1.5rem;
  }
}

body[data-page="trust-center"],
body[data-page^="trust"],
body[data-page="download"],
body[data-page="release-notes"],
body[data-page="version-history"],
body[data-page="architecture"],
body[data-page="compliance"],
body[data-page="disclosure"],
body[data-page="data-retention"],
body[data-page="whitepaper"],
body[data-page="company"],
body[data-page="status"],
body[data-page="legal"],
body[data-page="privacy"],
body[data-page="terms"],
body[data-page="refund"],
body[data-page="fraud-chargeback"],
body[data-page="acceptable-use"],
body[data-page="law-enforcement"],
body[data-page="service-suspension"],
body[data-page="security-traceability"],
body[data-page="updates"],
body[data-page="changelog"],
body[data-page="roadmap"],
body[data-page="security-advisories"],
body[data-page="security-advisory"],
body[data-page^="update-"] {
  background: #0a0a0a;
}

body[data-page="privacy"],
body[data-page="terms"],
body[data-page="refund"],
body[data-page="legal"],
body[data-page="fraud-chargeback"],
body[data-page="acceptable-use"],
body[data-page="law-enforcement"],
body[data-page="service-suspension"],
body[data-page="security-traceability"],
body[data-page="data-retention"],
body[data-page="compliance"],
body[data-page="disclosure"] {
  background: #0a0a0a;
  color: #d4d4d8;
}

.trust-hero {
  position: relative;
  z-index: 1;
  padding: 5.5rem 0 2rem;
  border-bottom: 1px solid #2a2a2a;
  background: #0c0c0c;
}

.trust-hero__eyebrow {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a1a1aa;
  margin: 0 0 0.75rem;
}

.trust-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fafafa;
  margin: 0;
}

.trust-hero__lead {
  margin: 1rem 0 0;
  max-width: 40rem;
  font-size: 1rem;
  line-height: 1.7;
  color: #a1a1aa;
}

.trust-hero__meta {
  margin: 1rem 0 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.8125rem;
  color: #a1a1aa;
}

.trust-layout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.75rem;
  padding: 2rem 0 4rem;
}

@media (min-width: 1024px) {
  .trust-layout {
    grid-template-columns: 15rem minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
  }
}

.trust-nav {
  position: sticky;
  top: 5.5rem;
  align-self: start;
}

body.site-has-toolbar .trust-nav {
  top: 7.25rem;
}

.trust-nav__group {
  margin-bottom: 1.25rem;
}

.trust-nav__contact {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #1a1a1a;
}

.trust-nav__contact p {
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #a1a1aa;
}

.trust-nav__contact a {
  font-size: 0.8125rem;
}

.trust-nav__heading {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a1a1aa;
  margin: 0 0 0.5rem;
}

.trust-nav a {
  display: block;
  padding: 0.45rem 0 0.45rem 0.75rem;
  margin-left: -0.75rem;
  border-left: 2px solid transparent;
  font-size: 0.875rem;
  color: #d4d4d8;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.trust-nav a:hover {
  color: #fafafa;
}

.trust-nav a.is-active {
  color: #fafafa;
  border-left-color: #ef4444;
  background: rgba(239, 68, 68, 0.06);
}

@media (min-width: 1024px) {
  .trust-nav {
    padding: 1.15rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid #333;
    background: #111;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  }

  .trust-nav a {
    border-radius: 0 0.35rem 0.35rem 0;
  }
}

.trust-content {
  width: 100%;
  max-width: none;
  padding: 1.75rem 1.5rem;
  border-radius: 0.85rem;
  border: 1px solid #333;
  background: #111;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

@media (min-width: 640px) {
  .trust-content {
    padding: 2.25rem 2.5rem;
  }
}

body.site-has-toolbar .trust-section {
  scroll-margin-top: 8.5rem;
}

.trust-section {
  scroll-margin-top: 7rem;
  padding: 1.15rem 0;
  margin-bottom: 0;
  border-bottom: 1px solid #161616;
}

.trust-section:first-child {
  padding-top: 0;
}

.trust-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.trust-summary {
  margin: 0 0 1.75rem;
  padding: 1.15rem 1.25rem;
  border-radius: 0.65rem;
  border: 1px solid #3f3f46;
  background: #161616;
}

.trust-summary--alert {
  border-color: rgba(239, 68, 68, 0.25);
  background: rgba(239, 68, 68, 0.04);
}

.trust-summary h3 {
  margin: 0 0 0.45rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fafafa;
}

.trust-summary--alert h3 {
  color: #f87171;
}

.trust-summary p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.7;
  color: #a1a1aa;
}

.trust-summary a {
  color: #d4d4d8;
  text-decoration: underline;
  text-decoration-color: #3f3f46;
  text-underline-offset: 2px;
}

.trust-summary a:hover {
  color: #fafafa;
}

.trust-section strong {
  color: #e4e4e7;
  font-weight: 600;
}

.trust-doc-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid #1a1a1a;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.6875rem;
  color: #52525b;
}

.trust-evidence-list {
  margin: 1rem 0;
  padding: 1rem 1.1rem;
  border-radius: 0.55rem;
  border: 1px solid #262626;
  background: #0f0f0f;
  list-style: none;
}

.trust-evidence-list li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.45rem;
  font-size: 0.875rem;
  color: #a1a1aa;
}

.trust-evidence-list li::before {
  content: "»";
  position: absolute;
  left: 0;
  color: #f87171;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

.trust-evidence-list li:last-child {
  margin-bottom: 0;
}

.trust-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fafafa;
  margin: 0 0 1rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid #2a2a2a;
}

.trust-section p,
.trust-section li {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: #d4d4d8;
}

.trust-section ul,
.trust-section ol {
  margin: 0.75rem 0;
  padding-left: 1.25rem;
}

.trust-section a {
  color: #d4d4d8;
  text-decoration: underline;
  text-decoration-color: #3f3f46;
  text-underline-offset: 2px;
}

.trust-section a:hover {
  color: #fafafa;
}

/* Trust hub cards */
.trust-hub {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .trust-hub {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .trust-hub--wide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.trust-hub__card {
  display: block;
  padding: 1.1rem 1.15rem;
  border-radius: 0.65rem;
  border: 1px solid #1f1f1f;
  background: #0c0c0c;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.trust-hub__card:hover {
  border-color: #333;
  background: #101010;
}

.trust-hub__card h3 {
  margin: 0 0 0.3rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fafafa;
}

.trust-hub__card p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #71717a;
}

.trust-hub__card span {
  display: inline-block;
  margin-top: 0.5rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.5625rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #52525b;
}

/* Contact block — all trust pages */
.trust-contact {
  display: grid;
  gap: 0.75rem;
  margin: 1.25rem 0;
  padding: 1rem 1.1rem;
  border-radius: 0.55rem;
  border: 1px solid #333;
  background: #161616;
}

@media (min-width: 480px) {
  .trust-contact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .trust-contact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.trust-contact__label {
  margin: 0 0 0.25rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a1a1aa;
}

.trust-contact__value {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: #d4d4d8;
}

/* Architecture diagram */
.arch-diagram {
  margin: 1.25rem 0;
  padding: 1.25rem 1rem;
  border-radius: 0.65rem;
  border: 1px solid #1f1f1f;
  background: #0a0a0a;
}

.arch-diagram__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.arch-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.75rem 0.85rem;
  min-width: 7rem;
  border-radius: 0.5rem;
  border: 1px solid #262626;
  background: #050505;
}

.arch-node--core {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.04);
}

.arch-node strong {
  font-size: 0.75rem;
  color: #e4e4e7;
}

.arch-node span {
  margin-top: 0.2rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.5rem;
  color: #52525b;
}

.arch-link {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #3f3f46;
  padding: 0.2rem 0.4rem;
  border-radius: 999px;
  border: 1px solid #1f1f1f;
}

.arch-stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1rem;
}

.arch-layer {
  padding: 0.85rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #1f1f1f;
  background: #0c0c0c;
}

.arch-layer h4 {
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fafafa;
}

.arch-layer p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #71717a;
}

/* Version table */
.version-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  margin: 1rem 0;
}

.version-table th {
  text-align: left;
  padding: 0.5rem 0.65rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #52525b;
  border-bottom: 1px solid #1f1f1f;
}

.version-table td {
  padding: 0.55rem 0.65rem;
  color: #a1a1aa;
  border-bottom: 1px solid #141414;
}

.version-table tr:last-child td {
  border-bottom: none;
}

/* Download page */
.download-card {
  padding: 1.25rem;
  border-radius: 0.65rem;
  border: 1px solid #1f1f1f;
  background: #0c0c0c;
  margin-bottom: 0.75rem;
}

.download-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.download-card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #fafafa;
}

.download-card__status {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.5625rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #71717a;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  border: 1px solid #333;
  background: #111;
}

.download-card p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: #71717a;
}

.download-notice {
  margin: 1.5rem 0;
  padding: 1rem 1.15rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(239, 68, 68, 0.2);
  background: rgba(239, 68, 68, 0.04);
  font-size: 0.875rem;
  line-height: 1.65;
  color: #a1a1aa;
}

/* Whitepaper PDF placeholder */
.pdf-placeholder {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.25rem 0;
  padding: 1.15rem 1.25rem;
  border-radius: 0.5rem;
  border: 1px solid #1f1f1f;
  background: #0c0c0c;
}

.pdf-placeholder__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.625rem;
  font-weight: 700;
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  flex-shrink: 0;
}

.pdf-placeholder__body h3 {
  margin: 0 0 0.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fafafa;
}

.pdf-placeholder__body p {
  margin: 0;
  font-size: 0.8125rem;
  color: #71717a;
}

.pdf-placeholder__actions {
  margin-top: 0.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.trust-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #d4d4d8;
  text-decoration: none;
  border-radius: 0.45rem;
  border: 1px solid #333;
  background: #111;
  transition: border-color 0.15s, color 0.15s;
}

.trust-btn:hover {
  border-color: #444;
  color: #fafafa;
}

.trust-btn--primary {
  background: #fafafa;
  color: #0a0a0a;
  border-color: #fafafa;
}

.trust-btn--primary:hover {
  background: #e4e4e7;
}

.trust-btn--disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

/* Release notes */
.release-entry {
  padding: 1.25rem 0;
  border-bottom: 1px solid #1a1a1a;
}

.release-entry:last-child {
  border-bottom: none;
}

.release-entry time {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.6875rem;
  color: #52525b;
}

.release-entry h3 {
  margin: 0.35rem 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fafafa;
}

.release-entry p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: #71717a;
}

@media (max-width: 1023px) {
  .trust-nav {
    position: static;
    padding: 1rem 1.1rem;
    border-radius: 0.75rem;
    border: 1px solid #333;
    background: #111;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }

  .trust-nav__group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.85rem;
  }

  .trust-nav__group:last-of-type {
    margin-bottom: 0;
    padding-top: 0.75rem;
    border-top: 1px solid #1a1a1a;
  }

  .trust-nav__heading {
    flex: 0 0 100%;
    margin-bottom: 0.1rem;
    font-size: 0.625rem;
  }

  .trust-nav__contact {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid #1a1a1a;
  }

  .trust-nav a {
    flex-shrink: 0;
    white-space: nowrap;
    margin: 0;
    padding: 0.35rem 0.7rem;
    border: 1px solid #262626;
    border-radius: 999px;
    border-left: 1px solid #262626;
    background: #111;
    font-size: 0.75rem;
  }

  .trust-nav a.is-active {
    border-color: rgba(239, 68, 68, 0.45);
    background: rgba(239, 68, 68, 0.08);
  }

  .trust-layout--simple .trust-nav__group:only-child {
    border-top: none;
    padding-top: 0;
  }
}

.trust-layout--simple {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 1024px) {
  .trust-layout--simple {
    grid-template-columns: 11rem minmax(0, 1fr);
  }
}

/* Company page */
.company-facts {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
}

@media (min-width: 640px) {
  .company-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.company-fact {
  padding: 0.85rem 1rem;
  border-radius: 0.6rem;
  border: 1px solid #1f1f1f;
  background: #0a0a0a;
}

.company-fact dt {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #52525b;
  margin: 0 0 0.25rem;
}

.company-fact dd {
  margin: 0;
  font-size: 0.9375rem;
  color: #e4e4e7;
  font-weight: 500;
}

.company-industry {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.company-industry li {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid #2a2a2a;
  background: #0c0c0c;
  font-size: 0.8125rem;
  color: #d4d4d8;
}

/* Status page */
.status-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.15rem 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid #1f1f1f;
  margin-bottom: 1.5rem;
}

.status-banner--ok {
  background: rgba(34, 197, 94, 0.06);
  border-color: rgba(34, 197, 94, 0.2);
}

.status-banner__dot {
  width: 0.65rem;
  height: 0.65rem;
  margin-top: 0.35rem;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.5);
  flex-shrink: 0;
}

.status-banner strong {
  display: block;
  color: #fafafa;
  font-size: 1.0625rem;
  margin-bottom: 0.2rem;
}

.status-banner p {
  margin: 0;
  font-size: 0.875rem;
  color: #a1a1aa;
}

.status-services {
  display: grid;
  gap: 0.65rem;
}

@media (min-width: 640px) {
  .status-services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.status-service {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-radius: 0.65rem;
  border: 1px solid #1f1f1f;
  background: #0a0a0a;
}

.status-service h2 {
  margin: 0 0 0.2rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #f4f4f5;
}

.status-service p {
  margin: 0;
  font-size: 0.8125rem;
  color: #71717a;
}

.status-service__indicator {
  width: 0.5rem;
  height: 0.5rem;
  margin-top: 0.4rem;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}

/* Security Center hub */
.sec-center-hub {
  margin-bottom: 2.5rem;
  padding: 1.25rem;
  border-radius: 0.85rem;
  border: 1px solid #1f1f1f;
  background: linear-gradient(160deg, rgba(14, 14, 16, 0.95), rgba(8, 8, 10, 0.98));
}

.sec-center-hub__title {
  margin: 0 0 0.35rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #fafafa;
}

.sec-center-hub__desc {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: #71717a;
}

/* Trust hub primary row */
.trust-hub--primary {
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}

.trust-hub--primary .trust-hub__card h3 {
  font-size: 0.9375rem;
}

/* Legal notice block */
.legal-notice {
  padding: 1rem 1.15rem;
  border-radius: 0.65rem;
  border: 1px solid #2a2a2a;
  background: #0c0c0c;
  margin-bottom: 1.5rem;
}

.legal-notice strong {
  color: #fafafa;
}

.trust-section h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: #e4e4e7;
  margin: 1.5rem 0 0.65rem;
}
