/* ==========================================================================
   Nexus — Security & Trust (aligned with Invest / About design system)
   ========================================================================== */

.security-page {
  --sc-radius: var(--nx-radius-lg);
  --sc-split-gap: clamp(40px, 6vw, 72px);
  --sc-head-gap: clamp(36px, 5vw, 48px);
  background: var(--nx-white);
}

/* ---- Sections ---- */
.sc-section {
  padding: 70px 0;
}

.sc-section--muted {
  background: #f4f6f9;
}

.sc-section--tint {
  background: #c4d9efc9;
}

#sc-custody {
  background: #fcfafc;
}

.sc-section__head {
  max-width: 40rem;
  margin-bottom: var(--sc-head-gap);
}

.sc-section__head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.sc-section__head h2 {
  margin: 0 0 16px;
  font-size: var(--cr-section-title-size);
  font-weight: var(--cr-section-title-weight);
  letter-spacing: var(--cr-section-title-spacing);
  line-height: var(--cr-section-title-line);
  color: var(--nx-navy);
}

.sc-section__head p {
  margin: 0;
  font-size: var(--cr-lead-size);
  line-height: 1.72;
  color: var(--nx-muted);
}

/* ---- Hero ---- */
.sc-hero {
  background: #00102f;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sc-hero .cr-hero__grid {
  align-items: start;
}

.sc-hero .cr-hero__content {
  align-items: flex-start;
  background-color: #00102f;
}

.sc-hero .cr-hero__top .breadcrumb a {
  color: rgba(255, 255, 255, 0.82);
}

.sc-hero .cr-hero__top .breadcrumb a:hover {
  color: var(--nx-orange);
}

.sc-hero .cr-hero__top .breadcrumb [aria-current="page"],
.sc-hero .cr-hero__top .breadcrumb span:not(.breadcrumb-sep) {
  color: rgba(255, 255, 255, 0.58);
}

.sc-hero .cr-hero__top .breadcrumb-sep {
  color: rgba(255, 255, 255, 0.38);
}

.sc-hero .cr-hero__lead {
  margin-bottom: 0;
}

.sc-hero__visual {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 32px max(45px, calc((100vw - var(--nx-container)) / 2 + 45px)) 64px
    24px;
  background: transparent;
  min-height: 100%;
  align-self: stretch;
}

.sc-hero__image {
  display: block;
  width: 100%;
  max-width: min(100%, 560px);
  height: auto;
  max-height: min(520px, 68vh);
  object-fit: contain;
  object-position: center top;
}

/* ---- Split panels ---- */
.sc-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--sc-split-gap);
  align-items: center;
}

.sc-split--reverse .sc-split__media {
  order: -1;
}

.sc-split__media {
  margin: 0;
  line-height: 0;
}

.sc-split__media img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

.sc-split__body {
  max-width: var(--cr-max-prose);
}

.sc-split__body .section-eyebrow {
  display: block;
  margin-bottom: 12px;
}

.sc-split__body h2 {
  margin: 0 0 var(--cr-section-title-gap);
  font-size: var(--cr-section-title-size);
  font-weight: var(--cr-section-title-weight);
  letter-spacing: var(--cr-section-title-spacing);
  line-height: var(--cr-section-title-line);
  color: var(--nx-navy);
}

.sc-split__body p {
  margin: 0 0 18px;
  font-size: var(--cr-lead-size);
  line-height: 1.72;
  color: var(--nx-navy);
}

.sc-split__body p:last-child {
  margin-bottom: 0;
}

.sc-reserves__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  padding: 11px 22px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--nx-navy);
  text-decoration: none;
  background: #eef4fb;
  border: 1px solid rgba(5, 48, 92, 0.18);
  border-radius: var(--nx-radius-sm);
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.sc-reserves__cta:hover {
  color: #fff;
  background: var(--nx-navy);
  border-color: var(--nx-navy);
}

.sc-reserves__cta:focus-visible {
  outline: 2px solid var(--nx-orange);
  outline-offset: 3px;
}

.sc-reserves__cta:active {
  transform: scale(0.98);
}

.sc-disclosure__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
  text-decoration: none;
  background: var(--nx-orange);
  border: 1px solid var(--nx-orange);
  border-radius: var(--nx-radius-sm);
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.sc-disclosure__cta:hover {
  background: #ffab42;
  border-color: #ffab42;
}

.sc-disclosure__cta:focus-visible {
  outline: 2px solid var(--nx-navy);
  outline-offset: 3px;
}

.sc-disclosure__cta:active {
  transform: scale(0.98);
}

/* ---- Account security cards ---- */
.sc-account__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.sc-account-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 24px;
  background: var(--nx-white);
  border: 1px solid var(--nx-border);
  border-radius: var(--sc-radius);
}

.sc-account-card img {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.sc-account-card h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--nx-navy);
}

.sc-account-card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.72;
  color: var(--nx-muted);
}

/* ---- Disclosure ---- */
.sc-disclosure {
  background: #fcfafc;
  text-align: center;
}

.sc-disclosure__panel {
  max-width: 42rem;
  margin: 0 auto;
  padding: clamp(12px, 2vw, 20px) 0;
}

.sc-disclosure__panel h2 {
  margin: 0 0 var(--cr-section-title-gap);
  font-size: var(--cr-section-title-size);
  font-weight: var(--cr-section-title-weight);
  letter-spacing: var(--cr-section-title-spacing);
  line-height: var(--cr-section-title-line);
  color: var(--nx-navy);
}

.sc-disclosure__panel p {
  margin: 0 0 28px;
  font-size: var(--cr-lead-size);
  line-height: 1.72;
  color: var(--nx-muted);
}

@media (max-width: 1024px) {
  .sc-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .sc-split--reverse .sc-split__media {
    order: 0;
  }

  #sc-reserves .sc-split__body,
  #sc-custody .sc-split__body,
  #sc-segregation .sc-split__body {
    order: 1;
  }

  #sc-reserves .sc-split__media,
  #sc-custody .sc-split__media,
  #sc-segregation .sc-split__media {
    order: 2;
  }

  .sc-split__body {
    max-width: none;
  }

  .sc-account__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sc-hero__visual {
    min-height: auto;
    width: auto;
    margin-left: 0;
    padding: 24px;
  }

  .sc-hero__image {
    max-width: min(100%, 520px);
    max-height: none;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .sc-section {
    padding: 56px 0;
  }

  .sc-account__grid {
    grid-template-columns: 1fr;
  }
}
