/* Unique stylesheet for /trust — AffixIO Security Trust Center
   Self-contained. Overrides shared hero-theme dark shell for this page only. */

.trust-page {
  --trust-bg: #f5f2ea;
  --trust-ink: #1d2128;
  --trust-muted: #4c5868;
  --trust-line: #cfc7b8;
  --trust-chip: #ebe4d6;
  --trust-card: #fffcf7;
  --trust-verdict: #295f4e;
  --trust-verdict-soft: #e4efe9;
  --trust-display: "DM Sans", "Segoe UI", sans-serif;
  --trust-mono: ui-monospace, Menlo, monospace;
  color: var(--trust-ink);
  font-family: var(--trust-display);
}

main.page.trust-page,
main.page.site-chrome.trust-page {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 4rem;
  box-sizing: border-box;
  background: transparent;
}

/* Kill shared dark hero treatment on this page */
main.trust-page .trust-hero,
.trust-page .trust-hero {
  --coal: var(--trust-ink) !important;
  --graphite: var(--trust-ink) !important;
  --chalk: var(--trust-bg) !important;
  --verdict: var(--trust-verdict) !important;
  --verdict-soft: var(--trust-verdict) !important;
  color: var(--trust-ink) !important;
  font-family: var(--trust-display) !important;
  position: relative;
  isolation: auto;
  overflow: visible;
  max-width: none;
  width: 100%;
  margin: 0 0 1.15rem;
  padding: 1.35rem 1.35rem 1.25rem !important;
  border: 1px solid var(--trust-line) !important;
  border-radius: 14px !important;
  border-block-end: 1px solid var(--trust-line) !important;
  background:
    radial-gradient(ellipse 70% 60% at 0% 0%, color-mix(in srgb, var(--trust-verdict) 12%, transparent), transparent 55%),
    linear-gradient(180deg, #fff 0%, var(--trust-card) 100%) !important;
  box-sizing: border-box;
}

main.trust-page .trust-hero::before,
main.trust-page .trust-hero::after,
.trust-page .trust-hero::before,
.trust-page .trust-hero::after {
  content: none !important;
  display: none !important;
}

main.trust-page .trust-hero h1,
.trust-page .trust-hero h1 {
  margin: 0 0 0.45rem;
  font-family: var(--trust-display) !important;
  font-size: clamp(1.7rem, 3.4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--trust-ink) !important;
}

main.trust-page .trust-hero p,
.trust-page .trust-hero p {
  margin: 0;
  max-width: 62ch;
  font-family: var(--trust-display) !important;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--trust-muted) !important;
}

.trust-page .trust-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.trust-page .trust-badge {
  border: 1px solid color-mix(in srgb, var(--trust-verdict) 28%, var(--trust-line));
  border-radius: 999px;
  padding: 0.32rem 0.65rem;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--trust-verdict-soft);
  color: var(--trust-verdict);
}

.trust-page .trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 0 1.15rem;
}

.trust-page .trust-card {
  border: 1px solid var(--trust-line);
  border-radius: 12px;
  background: var(--trust-card);
  padding: 0.95rem 1rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 10px 24px rgba(17, 22, 31, 0.04);
  min-width: 0;
}

.trust-page .trust-card strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--trust-ink);
  letter-spacing: -0.01em;
}

.trust-page .trust-card span {
  display: block;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--trust-muted);
}

.trust-page .legal-doc {
  border: 1px solid var(--trust-line);
  border-radius: 14px;
  background: var(--trust-card);
  padding: 1.35rem 1.4rem 1.5rem;
  margin-top: 0.25rem;
  box-shadow: 0 12px 32px rgba(17, 22, 31, 0.05);
}

.trust-page .legal-doc h2 {
  margin: 1.5rem 0 0.55rem;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--trust-ink);
}

.trust-page .legal-doc h2:first-child {
  margin-top: 0;
}

.trust-page .legal-doc p,
.trust-page .legal-doc li {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--trust-ink);
}

.trust-page .legal-doc ul {
  margin: 0.4rem 0 0.85rem;
  padding-left: 1.2rem;
}

.trust-page .legal-doc a {
  color: var(--trust-verdict);
  font-weight: 600;
  text-decoration: none;
}

.trust-page .legal-doc a:hover {
  text-decoration: underline;
}

.trust-page .mono {
  font-family: var(--trust-mono);
  font-size: 0.84em;
}

.trust-page .trust-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0.55rem 0 0.25rem;
}

.trust-page .trust-table {
  width: 100%;
  min-width: 32rem;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.trust-page .trust-table th,
.trust-page .trust-table td {
  border: 1px solid var(--trust-line);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.trust-page .trust-table th {
  background: var(--trust-chip);
  font-weight: 700;
  color: var(--trust-ink);
  white-space: nowrap;
}

.trust-page .trust-table td {
  background: #fff;
  color: var(--trust-ink);
}

.trust-page .trust-cta {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.trust-page .trust-cta a {
  border: 1px solid var(--trust-verdict);
  background: var(--trust-verdict);
  color: #f5f2ea;
  text-decoration: none;
  border-radius: 8px;
  padding: 0.58rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
}

.trust-page .trust-cta a.secondary {
  background: transparent;
  color: var(--trust-verdict);
}

.trust-page .trust-cta a:hover {
  filter: brightness(0.96);
}

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

@media (max-width: 640px) {
  main.page.trust-page,
  main.page.site-chrome.trust-page {
    padding: 0.85rem max(0.8rem, env(safe-area-inset-right)) calc(3rem + env(safe-area-inset-bottom)) max(0.8rem, env(safe-area-inset-left));
  }

  main.trust-page .trust-hero,
  .trust-page .trust-hero {
    padding: 1.05rem 1rem 1rem !important;
    border-radius: 12px !important;
    margin-bottom: 0.85rem;
  }

  main.trust-page .trust-hero h1,
  .trust-page .trust-hero h1 {
    font-size: 1.55rem;
  }

  main.trust-page .trust-hero p,
  .trust-page .trust-hero p {
    font-size: 0.92rem;
  }

  .trust-page .trust-badge {
    font-size: 0.62rem;
    padding: 0.28rem 0.55rem;
  }

  .trust-page .trust-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.55rem;
    margin-bottom: 0.85rem;
  }

  .trust-page .trust-card {
    padding: 0.85rem 0.9rem;
    box-shadow: none;
  }

  .trust-page .legal-doc {
    padding: 1.05rem 0.95rem 1.2rem;
    border-radius: 12px;
    box-shadow: none;
  }

  .trust-page .legal-doc h2 {
    font-size: 1.05rem;
    margin-top: 1.25rem;
  }

  .trust-page .trust-table {
    min-width: 28rem;
    font-size: 0.8rem;
  }

  .trust-page .trust-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.45rem;
  }

  .trust-page .trust-cta a {
    text-align: center;
    min-height: 2.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  body:has(.trust-page) .affix-social-rail {
    display: none;
  }
}
