/* Legal/compliance/readability improvements */
.legal-notice,.compliance-note{max-width:1120px;margin:24px auto;padding:18px 22px;border:1px solid rgba(101,11,26,.18);border-left:5px solid #650b1a;background:#fffaf4;border-radius:12px;color:#332;line-height:1.55}
.legal-notice strong,.compliance-note strong{color:#650b1a}.consent-row{align-items:flex-start;gap:10px;line-height:1.45}.consent-row input{margin-top:.25em;min-width:18px;min-height:18px}.organization-grid dl div{word-break:break-word}.law-card a:focus,.institution-button:focus,.consent-row a:focus{outline:3px solid rgba(101,11,26,.35);outline-offset:3px}
@media (max-width:640px){.legal-notice,.compliance-note{margin:18px 16px;padding:16px}.consent-row{font-size:14px}}

/* Final logo centering/fitting fix */
.logo-section{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}
.logo-section img[src="images/fund-logo.jpg"]{
  display:block!important;
  width:auto!important;
  height:120px!important;
  max-width:100%!important;
  max-height:120px!important;
  object-fit:contain!important;
  object-position:center center!important;
  margin:0 auto!important;
  padding:0!important;
  border-radius:0!important;
  background:transparent!important;
}
.logo-section a{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}
.home-orbit__core img[src="images/fund-logo.jpg"],
.about-emblem img[src="images/fund-logo.jpg"],
.institution-emblem img[src="images/fund-logo.jpg"]{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center center!important;
  margin:auto!important;
  border-radius:0!important;
  background:transparent!important;
}
.institution-emblem img[src="images/fund-logo.jpg"]{
  position:absolute!important;
  inset:10%!important;
  width:80%!important;
  height:80%!important;
}
@media(max-width:767px){
  .logo-section img[src="images/fund-logo.jpg"]{
    height:104px!important;
    max-height:104px!important;
  }
}
@media(max-width:430px){
  .logo-section img[src="images/fund-logo.jpg"]{
    height:92px!important;
    max-height:92px!important;
  }
}

/* Exact header button logo containment */
.logo-section{
  box-sizing:border-box!important;
  overflow:hidden!important;
  padding:10px 16px!important;
}
.logo-section a{
  width:100%!important;
  height:100%!important;
  box-sizing:border-box!important;
}
.logo-section img[src="images/fund-logo.jpg"]{
  box-sizing:border-box!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center center!important;
  transform:none!important;
}
.header .logo-section img[src="images/fund-logo.jpg"],
.site-header .logo-section img[src="images/fund-logo.jpg"],
nav .logo-section img[src="images/fund-logo.jpg"]{
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
}

/* Logo should follow the button shape, not appear as an oversized square */
.logo-section{
  position:relative!important;
  width:280px!important;
  max-width:280px!important;
  height:150px!important;
  max-height:150px!important;
  aspect-ratio:28/15!important;
  padding:10px 14px!important;
  border-radius:18px!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}
.logo-section a{
  display:block!important;
  width:100%!important;
  height:100%!important;
  border-radius:14px!important;
  overflow:hidden!important;
}
.logo-section img[src="images/fund-logo.jpg"]{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:cover!important;
  object-position:center center!important;
  border-radius:14px!important;
  margin:0!important;
  padding:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
@media(max-width:767px){
  .logo-section{width:220px!important;max-width:220px!important;height:118px!important;max-height:118px!important;padding:8px 10px!important;border-radius:16px!important}
  .logo-section a,.logo-section img[src="images/fund-logo.jpg"]{border-radius:12px!important}
}
@media(max-width:430px){
  .logo-section{width:190px!important;max-width:190px!important;height:102px!important;max-height:102px!important;padding:7px 9px!important}
}

/* Fix logo emblem on Contacts and Documents pages */
body[data-page="contacts"] .institution-emblem,
body[data-page="documents"] .institution-emblem{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:hidden!important;
  border-radius:50%!important;
}
body[data-page="contacts"] .institution-emblem img[src="images/fund-logo.jpg"],
body[data-page="documents"] .institution-emblem img[src="images/fund-logo.jpg"]{
  position:relative!important;
  inset:auto!important;
  display:block!important;
  width:78%!important;
  height:78%!important;
  max-width:78%!important;
  max-height:78%!important;
  object-fit:contain!important;
  object-position:center center!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  margin:0!important;
  padding:0!important;
  transform:none!important;
}
body[data-page="contacts"] .institution-emblem__ring,
body[data-page="documents"] .institution-emblem__ring{
  pointer-events:none!important;
}
@media(max-width:760px){
  body[data-page="contacts"] .institution-emblem img[src="images/fund-logo.jpg"],
  body[data-page="documents"] .institution-emblem img[src="images/fund-logo.jpg"]{
    width:74%!important;
    height:74%!important;
    max-width:74%!important;
    max-height:74%!important;
  }
}

/* Unified top navigation typography across all pages */
.main-nav > a,
.main-nav .dropdown > a,
.main-nav .dropdown-toggle,
.mobile-nav > a,
.mobile-nav-dropdown-toggle,
.mobile-nav-submenu a{
  font-family: Arial, Helvetica, sans-serif!important;
  font-size: 18px!important;
  line-height: 1.2!important;
  font-weight: 700!important;
  letter-spacing: 0!important;
  text-transform: none!important;
  color: #3b2730!important;
}
.main-nav{
  align-items:center!important;
  gap:28px!important;
}
.main-nav a{
  white-space:nowrap!important;
}
@media(max-width:1100px){
  .main-nav > a,
  .main-nav .dropdown > a,
  .main-nav .dropdown-toggle{
    font-size:16px!important;
  }
  .main-nav{gap:20px!important;}
}

/* Absolute center alignment for Privacy page hero text */
body.privacy-policy-page[data-page="privacy-policy"] .page-hero,
body[data-page="privacy-policy"] .page-hero{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
}
body.privacy-policy-page[data-page="privacy-policy"] .page-hero .container,
body[data-page="privacy-policy"] .page-hero .container{
  position:relative!important;
  left:auto!important;
  right:auto!important;
  transform:none!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  width:min(100% - 48px, 1100px)!important;
  max-width:1100px!important;
  margin:0 auto!important;
  padding:0!important;
  text-align:center!important;
}
body.privacy-policy-page[data-page="privacy-policy"] .page-kicker,
body[data-page="privacy-policy"] .page-kicker{
  align-self:center!important;
  margin:0 auto 30px!important;
  text-align:center!important;
}
body.privacy-policy-page[data-page="privacy-policy"] .page-hero h1,
body[data-page="privacy-policy"] .page-hero h1{
  width:100%!important;
  max-width:900px!important;
  margin:0 auto 26px!important;
  padding:0!important;
  text-align:center!important;
  text-indent:0!important;
  transform:none!important;
  line-height:1.04!important;
}
body.privacy-policy-page[data-page="privacy-policy"] .page-hero-sub,
body[data-page="privacy-policy"] .page-hero-sub{
  width:100%!important;
  max-width:680px!important;
  margin:0 auto!important;
  padding:0!important;
  text-align:center!important;
  text-indent:0!important;
  transform:none!important;
}
@media(max-width:760px){
  body.privacy-policy-page[data-page="privacy-policy"] .page-hero .container,
  body[data-page="privacy-policy"] .page-hero .container{
    width:calc(100% - 28px)!important;
  }
  body.privacy-policy-page[data-page="privacy-policy"] .page-hero h1,
  body[data-page="privacy-policy"] .page-hero h1{
    max-width:100%!important;
    font-size:clamp(2rem,10vw,3.1rem)!important;
  }
  body.privacy-policy-page[data-page="privacy-policy"] .page-hero-sub,
  body[data-page="privacy-policy"] .page-hero-sub{
    max-width:100%!important;
  }
}
