/* ==========================================================================
   Octelligence — Trust & Legal pages (Privacy, Terms, DPA, SLA, etc.)
   Reuses tokens from /assets/site.css
   ========================================================================== */

.trust-shell {
  max-width: 1200px;
}

/* ---------------------------------------------------------------
   Hero — matches docs/changelog/releases dark navy
   --------------------------------------------------------------- */
.trust-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #0b1f3a 0%, #102a4f 100%);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 3rem 0 2.25rem;
}
.trust-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 90% 0%, rgba(28, 181, 185, 0.16) 0%, transparent 55%),
    radial-gradient(ellipse 50% 45% at 5% 100%, rgba(96, 165, 250, 0.10) 0%, transparent 55%);
}
.trust-hero .container { position: relative; z-index: 1; }

.trust-breadcrumbs {
  font-size: .85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
}
.trust-breadcrumbs a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}
.trust-breadcrumbs a:hover { color: #fff; }
.trust-breadcrumbs .separator {
  margin: 0 .55rem;
  color: rgba(255, 255, 255, 0.4);
}

.trust-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #5eead4;
  background: rgba(28, 181, 185, 0.12);
  border: 1px solid rgba(94, 234, 212, 0.3);
  padding: .32rem .8rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.trust-hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.55rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.55rem;
  color: #fff;
}
.trust-hero__subtitle {
  font-size: clamp(.98rem, 1.3vw, 1.05rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  max-width: 720px;
  margin: 0;
}
.trust-hero__effective {
  margin-top: 1rem;
  font-size: .85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------------------------------------------------------------
   Main section
   --------------------------------------------------------------- */
.trust-section {
  padding: 2.5rem 0 5rem;
  background: var(--app-bg);
}

/* ---------------------------------------------------------------
   Sidebar navigation (persistent across trust pages)
   --------------------------------------------------------------- */
.trust-sidebar__inner {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding-right: .5rem;
}
.trust-sidebar__group {
  margin-bottom: 1.5rem;
}
.trust-sidebar__heading {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  margin: 0 0 .55rem;
  padding: 0 .65rem;
}
.trust-sidebar__link {
  display: block;
  padding: .42rem .65rem;
  font-size: .92rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 6px;
  line-height: 1.4;
  transition: background-color 120ms ease, color 120ms ease;
}
.trust-sidebar__link:hover {
  color: var(--text);
  background: rgba(30, 64, 175, 0.04);
}
.trust-sidebar__link.is-active {
  color: var(--accent-primary);
  background: rgba(30, 64, 175, 0.08);
  font-weight: 600;
}

@media (max-width: 991.98px) {
  .trust-sidebar__inner {
    position: static;
    max-height: none;
    overflow: visible;
    padding-right: 0;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
  }
}

/* ---------------------------------------------------------------
   Content area — legal pages keep the existing .legal-card/.legal-section
   styles for the prose itself; this just constrains overall width
   --------------------------------------------------------------- */
.trust-content {
  max-width: 820px;
}

/* Override legal-page padding when used inside the trust shell —
   the trust-section already handles outer spacing. */
.trust-section .legal-page { padding: 0; background: transparent; }
