body[data-page="terms"] {
  background: #fff;
  color: #141414;
}

.terms-main {
  max-width: 1240px;
  margin-inline: auto;
  padding: clamp(48px, 8vw, 130px) clamp(20px, 5vw, 78px) 25px;
  font-size: 16px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.terms-heading { padding-bottom: 36px; border-bottom: 1px solid #d5d5d5; }
.terms-heading h1 {
  font: 400 clamp(36px, 6.8vw, 88px)/1.07 var(--display);
  letter-spacing: -.025em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.terms-heading p { margin-bottom: 12px; }
.terms-date { color: #505050; font-size: 14px; }
.terms-main a { text-decoration: underline; text-underline-offset: .19em; }
.terms-main a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.terms-main a:hover { text-decoration-thickness: 2px; }
.terms-download { display: inline-block; font-weight: 700; padding-block: 9px; }

.terms-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 42px;
  margin-top: 40px;
}
.terms-index h2 { font-size: 18px; margin-bottom: 9px; }
.terms-index ol { padding-left: 1.65em; }
.terms-index li { padding-block: 4px; font-size: 14px; }
.terms-layout article { max-width: 72ch; }
.terms-article { scroll-margin-block-start: 120px; }
.terms-article + .terms-article { margin-block-start: 44px; }
.terms-article h2 { font-size: clamp(20px, 2.4vw, 28px); line-height: 1.25; margin-bottom: 16px; }
.terms-article p + p { margin-block-start: 1em; }
body[data-page="terms"] .footer {
  background: #0a0a0a;
  color: #fff;
  --page-ink: #fff;
  --page-bg: #0a0a0a;
  --tone-ink: #fff;
  --tone-bg: #0a0a0a;
  min-height: 0;
  padding-block: clamp(55px, 9vw, 130px);
}

@media (min-width: 960px) {
  .terms-layout { grid-template-columns: minmax(190px, 252px) minmax(0, 1fr); gap: clamp(48px, 6vw, 96px); }
}

@media (prefers-reduced-motion: reduce) {
  html:has(body[data-page="terms"]) { scroll-behavior: auto; }
}

@media print {
  body[data-page="terms"] { background: white; color: black; }
  body[data-page="terms"] > :not(main), .terms-index, .terms-download { display: none !important; }
  .terms-main { max-width: none; padding: 0; font-size: 10.5pt; }
  .terms-heading h1 { font-size: 26pt; }
  .terms-layout { display: block; margin-top: 24px; }
  .terms-layout article { max-width: none; }
  .terms-article h2 { font-size: 14pt; break-after: avoid; }
  .terms-article + .terms-article { margin-top: 22px; }
  .terms-article p { orphans: 3; widows: 3; }
}
