/* V237 — About opens as a full-viewport white frosted surface at every width. */
#aboutModal.about-modal {
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  align-items: stretch;
  justify-content: stretch;
  background: rgba(255, 255, 255, .94);
}

#aboutModal .about-modal-backdrop {
  inset: 0;
  background: rgba(255, 255, 255, .88) !important;
  -webkit-backdrop-filter: blur(22px) saturate(92%);
  backdrop-filter: blur(22px) saturate(92%);
}

#aboutModal .about-dialog {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, .72);
  box-shadow: none;
  -webkit-backdrop-filter: blur(18px) saturate(105%);
  backdrop-filter: blur(18px) saturate(105%);
}

#aboutModal .about-frame {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  border: 0;
  background: transparent;
}

#aboutModal .about-close {
  top: calc(14px + env(safe-area-inset-top, 0px));
  right: calc(16px + env(safe-area-inset-right, 0px));
}

#aboutModal .about-scroll-controls {
  right: calc(16px + env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}

html.about-embed {
  width: 100%;
  min-height: 100%;
  background: transparent !important;
}

html.about-embed body {
  width: 100%;
  min-height: 100%;
  background: rgba(255, 255, 255, .76) !important;
}

html.about-embed .main-shell {
  width: 100% !important;
  max-width: none !important;
  min-height: 100%;
  margin: 0 !important;
  padding: 0 0 48px !important;
  background: transparent !important;
}

html.about-embed body:not(.home-page) .main-shell .subpage-hero,
html.about-embed .terms-section {
  background-color: rgba(255, 255, 255, .58) !important;
  background-image: none !important;
  -webkit-backdrop-filter: blur(18px) saturate(106%);
  backdrop-filter: blur(18px) saturate(106%);
}

html.about-embed body:not(.home-page) .main-shell .subpage-hero {
  color: #17231d !important;
  padding: clamp(60px, 6vw, 94px) clamp(24px, 5vw, 88px) clamp(34px, 4vw, 58px) !important;
}

html.about-embed body:not(.home-page) .main-shell .subpage-hero .inner {
  width: min(100%, 1180px) !important;
  max-width: 1180px !important;
}

html.about-embed body:not(.home-page) .main-shell .subpage-hero h1 {
  color: #17231d !important;
}

html.about-embed body:not(.home-page) .main-shell .subpage-hero p {
  color: #526159 !important;
}

html.about-embed body:not(.home-page) .main-shell .subpage-hero .section-label {
  color: #26984f !important;
}

html.about-embed body:not(.home-page) .main-shell .subpage-hero::before,
html.about-embed body:not(.home-page) .main-shell .subpage-hero::after {
  display: none !important;
}

html.about-embed .terms-section {
  width: 100% !important;
  margin: 0 !important;
  padding: clamp(26px, 3vw, 48px) 0 0 !important;
}

html.about-embed .terms-document {
  width: min(calc(100% - clamp(32px, 5vw, 120px)), 1920px) !important;
  max-width: 1920px !important;
  margin: 0 auto !important;
  padding: clamp(28px, 3.4vw, 64px) clamp(26px, 4.2vw, 76px) clamp(54px, 5vw, 92px) !important;
  border: 1px solid rgba(40, 138, 76, .14);
  border-radius: clamp(20px, 2vw, 32px);
  background: rgba(255, 255, 255, .56);
  box-shadow: 0 24px 70px rgba(32, 83, 52, .08);
  -webkit-backdrop-filter: blur(22px) saturate(108%);
  backdrop-filter: blur(22px) saturate(108%);
}

html.about-embed .scn-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: clamp(14px, 1.5vw, 24px);
}

html.about-embed .partner-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(14px, 1.5vw, 24px);
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  #aboutModal .about-modal-backdrop,
  #aboutModal .about-dialog,
  html.about-embed body {
    background: rgba(255, 255, 255, .96) !important;
  }
}

@media (max-width: 700px) {
  #aboutModal .about-close {
    top: calc(10px + env(safe-area-inset-top, 0px));
    right: calc(10px + env(safe-area-inset-right, 0px));
  }

  #aboutModal .about-scroll-controls {
    right: calc(10px + env(safe-area-inset-right, 0px));
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }

  html.about-embed .terms-document {
    width: calc(100% - 24px) !important;
    padding: 24px 18px 72px !important;
    border-radius: 20px;
  }
}
