/* NOVOROSS-IT V36: dedicated hero photographs, never replaced by auto-image slots.
   Every page gets an explicit images/hero/*.webp URL (no fallback image map).
   Dark left negative space is baked into each image and reinforced with a modest static gradient.
   Performance: no fixed backgrounds, canvas, filter, parallax or animated transforms. */
.simple-hero:has(> .ni-hero-background),
.legal-page .page-hero:has(> .ni-hero-background){
  position:relative;
  overflow:hidden;
  isolation:isolate;
}
.ni-hero-background{
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  overflow:hidden;
  background:#061725;
}
.ni-hero-background .ni-hero-image{
  display:block;
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
  transform:none;
  filter:none;
  transition:none;
  animation:none;
}
.ni-hero-background::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg,rgba(5,19,33,.62) 0%,rgba(5,19,33,.40) 31%,rgba(5,19,33,.05) 70%,rgba(5,19,33,.06) 100%),
    linear-gradient(0deg,rgba(5,19,33,.50),transparent 20%,transparent 87%,rgba(5,19,33,.16));
  pointer-events:none;
}
.simple-hero:has(> .ni-hero-background)> .shell,
.legal-page .page-hero:has(> .ni-hero-background)> .container{
  position:relative;
  z-index:2;
}
/* Existing decorative layer on price page stays behind the content. */
.ni-price-hero::after{z-index:1;}
.ni-price-hero> .shell{position:relative;z-index:2;}
.legal-page .page-hero .page-lead,
.legal-page .page-hero .section-title{position:relative;z-index:2;}
@media(max-width:1024px){
  .ni-hero-background .ni-hero-image{object-position:71% center;}
  .ni-hero-background::after{
    background:linear-gradient(90deg,rgba(5,19,33,.78),rgba(5,19,33,.40)),
      linear-gradient(0deg,rgba(5,19,33,.68),transparent 42%);
  }
}
@media(max-width:600px){
  .ni-hero-background .ni-hero-image{object-position:75% center;}
  .ni-hero-background::after{
    background:linear-gradient(105deg,rgba(5,19,33,.91),rgba(5,19,33,.77)),
      linear-gradient(0deg,rgba(5,19,33,.74),transparent 62%);
  }
  .legal-page .page-hero .section-title{overflow-wrap:anywhere;}
}
@media(prefers-reduced-motion:reduce){
  .ni-hero-background,.ni-hero-background *{animation:none!important;transition:none!important;}
}

/* V37: center legal page hero copy like the main site hero. */
.legal-page .page-hero.page-hero-centered{
  display:flex;
  align-items:center;
  min-height:clamp(360px,42vw,520px);
  padding:0;
}
.legal-page .page-hero.page-hero-centered > .container{
  position:relative;
  z-index:2;
  width:min(1120px,calc(100% - 48px));
  margin-inline:auto;
  padding-top:118px;
  padding-bottom:92px;
}
.legal-page .page-hero.page-hero-centered .section-label,
.legal-page .page-hero.page-hero-centered .section-title,
.legal-page .page-hero.page-hero-centered .page-lead{
  max-width:820px;
}
.legal-page .page-hero.page-hero-centered .section-title{
  margin-top:12px;
  margin-bottom:16px;
}
.legal-page .page-hero.page-hero-centered .page-lead{
  line-height:1.7;
}
@media(max-width:760px){
  .legal-page .page-hero.page-hero-centered{
    min-height:340px;
  }
  .legal-page .page-hero.page-hero-centered > .container{
    width:min(1120px,calc(100% - 34px));
    padding-top:104px;
    padding-bottom:66px;
  }
}
@media(max-width:520px){
  .legal-page .page-hero.page-hero-centered > .container{
    width:min(1120px,calc(100% - 28px));
    padding-top:92px;
    padding-bottom:54px;
  }
}
