/* RUSENCOM v54 — Management acceptance: compact mobile Journal, legal mobile width, full-width privacy bar. */

/* Cookie/privacy bar follows the same horizontal frame as the main site. */
html body .rsc-privacy-notice{
  left:50%!important;
  right:auto!important;
  bottom:18px!important;
  width:min(1420px,calc(100% - 64px))!important;
  max-width:1420px!important;
  box-sizing:border-box!important;
  grid-template-columns:42px minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:18px!important;
  padding:16px 18px!important;
  border-radius:14px!important;
  transform:translate(-50%,16px) scale(.995)!important;
}
html body .rsc-privacy-notice.is-visible{
  transform:translate(-50%,0) scale(1)!important;
}
html body .rsc-privacy-notice__content{
  min-width:0!important;
}
html body .rsc-privacy-notice__eyebrow{
  margin:0 0 3px!important;
}
html body .rsc-privacy-notice__title{
  font-size:19px!important;
  line-height:1.08!important;
}
html body .rsc-privacy-notice__text{
  max-width:880px!important;
  margin:6px 0 0!important;
  font-size:13px!important;
  line-height:1.5!important;
}
html body .rsc-privacy-notice__actions{
  display:grid!important;
  grid-template-columns:auto auto!important;
  gap:8px 10px!important;
  align-items:center!important;
  justify-items:stretch!important;
  min-width:310px!important;
}
html body .rsc-privacy-notice__accept,
html body .rsc-privacy-notice__necessary{
  min-height:42px!important;
  padding:0 17px!important;
  box-sizing:border-box!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:9px!important;
  font:800 13px/1 "RSC Roboto",Arial,sans-serif!important;
  white-space:nowrap!important;
  cursor:pointer!important;
}
html body .rsc-privacy-notice__necessary{
  appearance:none!important;
  border:1px solid rgba(255,255,255,.24)!important;
  background:transparent!important;
  color:#fff!important;
  transition:background .18s ease,border-color .18s ease!important;
}
html body .rsc-privacy-notice__necessary:hover{
  background:rgba(255,255,255,.07)!important;
  border-color:rgba(255,255,255,.42)!important;
}
html body .rsc-privacy-notice__policy{
  grid-column:1/-1!important;
  justify-self:end!important;
  font-size:11px!important;
}

/* Legal pages use a real responsive shell and never let the long title escape the viewport. */
html body .rsc-article-shell:has(.rsc-legal-page){
  width:min(1180px,calc(100% - 64px))!important;
  max-width:1180px!important;
  margin-inline:auto!important;
  box-sizing:border-box!important;
}
html body .rsc-article-shell:has(.rsc-legal-page) .rsc-inner-title--centered{
  max-width:100%!important;
  box-sizing:border-box!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
  hyphens:none!important;
  -webkit-hyphens:none!important;
}

/* Mobile overlay: Journal stays compact and text is vertically centered. */
@media(max-width:1180px){
  html body .rsc-header-editable .wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation__container .rsc-nav-cta>.wp-block-navigation-item__content{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:auto!important;
    min-width:148px!important;
    max-width:180px!important;
    height:54px!important;
    min-height:54px!important;
    margin:22px 0!important;
    padding:0 22px!important;
    box-sizing:border-box!important;
    border:1px solid rgba(255,178,96,.34)!important;
    border-radius:8px!important;
    background:linear-gradient(135deg,#ff8d20 0%,#f77912 100%)!important;
    color:#fff!important;
    font-family:"RSC Magistral",Arial,sans-serif!important;
    font-size:17px!important;
    font-weight:800!important;
    line-height:1!important;
    white-space:nowrap!important;
    align-self:flex-start!important;
  }
}

@media(max-width:900px){
  html body .rsc-privacy-notice{
    grid-template-columns:36px minmax(0,1fr)!important;
    gap:12px!important;
  }
  html body .rsc-privacy-notice__mark{
    width:36px!important;
    height:36px!important;
  }
  html body .rsc-privacy-notice__actions{
    grid-column:1/-1!important;
    min-width:0!important;
    width:100%!important;
    grid-template-columns:1fr 1fr!important;
    margin-top:2px!important;
  }
  html body .rsc-privacy-notice__policy{
    justify-self:start!important;
  }
}

@media(max-width:760px){
  html body .rsc-article-shell:has(.rsc-legal-page){
    width:calc(100% - 32px)!important;
    max-width:calc(100% - 32px)!important;
    padding-top:54px!important;
    padding-bottom:58px!important;
  }
  html body .rsc-article-shell:has(.rsc-legal-page) .rsc-inner-title--centered{
    width:100%!important;
    max-width:100%!important;
    margin:0 0 24px!important;
    font-size:clamp(27px,7.3vw,30px)!important;
    line-height:1.04!important;
    letter-spacing:-.035em!important;
    text-align:center!important;
    text-wrap:balance!important;
  }
  html body .rsc-article-shell .rsc-legal-page{
    width:100%!important;
    max-width:100%!important;
    box-sizing:border-box!important;
  }
  html body .rsc-article-shell .rsc-legal-page :is(p,li){
    text-align:left!important;
    text-justify:auto!important;
    hyphens:auto!important;
    -webkit-hyphens:auto!important;
  }
  html body .rsc-article-shell .rsc-legal-page a{
    overflow-wrap:anywhere!important;
  }
}

@media(max-width:640px){
  html body .rsc-privacy-notice{
    bottom:calc(10px + env(safe-area-inset-bottom,0px))!important;
    width:calc(100% - 32px)!important;
    max-width:calc(100% - 32px)!important;
    padding:14px!important;
    border-radius:13px!important;
    grid-template-columns:32px minmax(0,1fr)!important;
    gap:10px!important;
  }
  html body .rsc-privacy-notice__mark{
    width:32px!important;
    height:32px!important;
    border-radius:9px!important;
    font-size:14px!important;
  }
  html body .rsc-privacy-notice__title{font-size:17px!important}
  html body .rsc-privacy-notice__text{
    font-size:12px!important;
    line-height:1.45!important;
  }
  html body .rsc-privacy-notice__actions{
    gap:8px!important;
  }
  html body .rsc-privacy-notice__accept,
  html body .rsc-privacy-notice__necessary{
    min-height:40px!important;
    padding:0 12px!important;
    font-size:12px!important;
  }
}

@media(max-width:390px){
  html body .rsc-privacy-notice__actions{
    grid-template-columns:1fr!important;
  }
  html body .rsc-privacy-notice__policy{
    grid-column:auto!important;
  }
}

@media(prefers-reduced-motion:reduce){
  html body .rsc-privacy-notice__necessary{transition:none!important}
}
