:root {
  --legacy-surface: rgba(247, 252, 250, 0.72);
  --legacy-surface-strong: rgba(247, 252, 250, 0.9);
  --legacy-border: rgba(10, 122, 97, 0.22);
  --legacy-rule: rgba(10, 122, 97, 0.16);
  --legacy-shadow: 0 22px 56px rgba(20, 72, 61, 0.12);
}

html[data-theme="dark"] {
  --legacy-surface: rgba(33, 41, 39, 0.78);
  --legacy-surface-strong: rgba(37, 46, 43, 0.94);
  --legacy-border: rgba(91, 211, 187, 0.24);
  --legacy-rule: rgba(91, 211, 187, 0.15);
  --legacy-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}

.legacy-page {
  min-width: 0;
  color: var(--ink);
  text-align: left;
  overflow-x: hidden;
}

.legacy-page #topbar,
.legacy-page > #footer,
.legacy-page #bodyicon,
.legacy-page #socialheader,
.legacy-page #progressbar {
  display: none !important;
}

.legacy-page [data-layout] a::before,
.legacy-page [data-layout] a::after,
.legacy-page .site-header a::before,
.legacy-page .site-header a::after,
.legacy-page .site-footer a::before,
.legacy-page .site-footer a::after {
  content: none;
  display: none;
}

.legacy-page > #body {
  width: min(1160px, calc(100% - 48px));
  max-width: none;
  margin: 0 auto;
  padding: clamp(58px, 7vw, 104px) 0 clamp(84px, 9vw, 132px);
  color: var(--muted);
  background: transparent;
  font-family: var(--main-font);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.16rem);
  line-height: 1.72;
}

.legacy-page #bodyheader {
  margin: 0 0 clamp(34px, 5vw, 64px);
  padding: 0 0 clamp(24px, 3vw, 38px);
  border-bottom: 1px solid var(--legacy-rule);
}

.legacy-page #bodyheader2,
.legacy-page #bodyheader3 {
  width: 100%;
  display: block;
}

.legacy-page #bodytitle h2.title {
  max-width: 900px;
  margin: 0;
  color: var(--ink);
  font-family: var(--main-font);
  font-size: clamp(2.6rem, 6vw, 5.7rem);
  font-weight: 750;
  line-height: 0.98;
  letter-spacing: 0;
}

.legacy-page #bodytitleindex {
  margin-top: 22px;
}

.legacy-page #bodytitleindex a,
.legacy-page #body a:not(.noarrow) {
  color: var(--mint-dark);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

html[data-theme="dark"] .legacy-page #bodytitleindex a,
html[data-theme="dark"] .legacy-page #body a:not(.noarrow) {
  color: var(--mint);
}

.legacy-page #body p,
.legacy-page #body li {
  max-width: 76ch;
  color: var(--muted);
}

.legacy-page #body p {
  margin: 1.05em 0;
}

.legacy-page #body b,
.legacy-page #body strong,
.legacy-page #body .ks {
  color: var(--ink);
}

.legacy-page #body h3 {
  margin: clamp(44px, 6vw, 76px) 0 14px;
  color: var(--ink);
  font-family: var(--main-font);
  font-size: clamp(1.55rem, 2.4vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: 0;
}

.legacy-page #body .cartimg {
  box-sizing: border-box;
  width: min(100%, 920px);
  max-width: none;
  margin: clamp(34px, 6vw, 72px) auto;
  padding: clamp(14px, 2.2vw, 24px);
  color: var(--muted);
  background: var(--legacy-surface);
  border: 1px solid var(--legacy-border);
  border-radius: 8px;
  box-shadow: var(--legacy-shadow);
}

.legacy-page #body .cartimg .cartimg2 {
  box-sizing: border-box;
  width: min(100%, 760px) !important;
  padding: 0;
}

.legacy-page #body .cartimg img {
  box-sizing: border-box;
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 5px;
}

.legacy-page #body .cartimgtext {
  max-width: 760px;
  margin: 14px auto 0;
  color: var(--muted);
  font-family: var(--main-font);
  font-size: 0.92rem;
  line-height: 1.45;
  text-align: center;
}

.legacy-page #body .centerdiv {
  box-sizing: border-box;
  width: min(100%, 920px);
  margin: 36px auto;
  padding: 0;
}

.legacy-page #body img.badge {
  width: auto;
  max-width: min(300px, 100%);
  height: 78px;
  margin: 8px 12px 8px 0;
  padding: 0;
  object-fit: contain;
  border: 0;
}

.legacy-page .site-footer {
  margin-top: 0;
}

.legacy-legal > #body {
  max-width: 960px;
}

.legacy-legal #body > p,
.legacy-legal #body > h3 {
  max-width: 760px;
}

.legacy-product #body > p:not(:has(img)),
.legacy-product #body > h3 {
  margin-left: auto;
  margin-right: auto;
}

.legacy-product #body > p:has(img.badge) {
  max-width: none;
  text-align: center;
}

.legacy-product #body > .centerdiv {
  min-height: 1px;
}

.legacy-photo #body > p,
.legacy-photo #body > h3,
.legacy-photo #body > ul,
.legacy-photo #body > ol {
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 760px) {
  .legacy-page > #body {
    width: min(100% - 28px, 620px);
    padding-top: 46px;
    font-size: 1rem;
    line-height: 1.62;
    text-align: center;
  }

  .legacy-page #bodyheader {
    margin-bottom: 32px;
    padding-bottom: 24px;
  }

  .legacy-page #bodytitle h2.title {
    max-width: 12ch;
    margin: 0 auto;
    font-size: clamp(2.35rem, 11vw, 4rem);
    line-height: 1.02;
  }

  .legacy-page #bodytitleindex {
    margin-top: 18px;
  }

  .legacy-page #body p,
  .legacy-page #body li {
    max-width: 42ch;
    margin-left: auto;
    margin-right: auto;
  }

  .legacy-page #body h3 {
    margin-top: 42px;
  }

  .legacy-page #body .cartimg {
    width: 100%;
    margin: 34px auto;
    padding: 10px;
  }

  .legacy-page #body .cartimgtext {
    margin-top: 11px;
    padding: 0 6px 3px;
  }

  .legacy-page #body img.badge {
    height: 62px;
    margin: 8px auto;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .legacy-page > #body {
    animation: legacy-page-enter 700ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
  }
}

@keyframes legacy-page-enter {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Minimal treatment for the remade product and policy pages. */
.legacy-page,
.legacy-page > #body {
  text-align: center;
}

.legacy-page #bodyheader {
  text-align: center;
  border-bottom: 0;
}

.legacy-page #bodytitle h2.title,
.legacy-page #body h3,
.legacy-page #body h4 {
  margin-right: auto;
  margin-left: auto;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  text-align: center;
  text-wrap: balance;
}

.legacy-page #body p {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.legacy-page #body ul,
.legacy-page #body ol {
  width: min(100%, 760px);
  padding-left: 0;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
  list-style-position: inside;
}

.legacy-page #body .cartimg {
  padding: clamp(8px, 2vw, 18px);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.legacy-page #body .cartimgtext {
  text-align: center;
}

.legacy-page #body p:has(> img.badge) {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 30px);
  flex-wrap: wrap;
}

.legacy-page #body img.badge {
  margin-right: 0;
  margin-left: 0;
  object-fit: contain;
}

html:not([data-theme="dark"]) .legacy-page > #body {
  color: #526760;
}
