.terms-content { width: min(980px,calc(100% - 80px)); }

.terms-intro {
  padding: 31px 35px 34px;
  color: #3f4944;
  background: linear-gradient(100deg,#fff6f9,#f1fbf4);
  border-left: 8px solid var(--pink);
  box-shadow: 0 14px 36px rgba(17,19,24,.07);
}

.terms-intro > p {
  margin: 0 0 9px;
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .22em;
}

.terms-intro h2 {
  margin: 0 0 17px;
  color: var(--black);
  font-size: clamp(24px,3vw,34px);
  font-weight: 950;
  line-height: 1.4;
}

.terms-intro div { font-size: 15px; font-weight: 650; line-height: 2; }

.terms-toc {
  margin: 42px 0 72px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 16px 38px rgba(17,19,24,.075);
}

.terms-toc-heading {
  display: flex;
  gap: 18px;
  padding: 18px 23px;
  align-items: center;
  color: #fff;
  background: #171a1d;
}

.terms-toc-heading span { color: #5ade76; font-size: 9px; font-weight: 950; letter-spacing: .2em; }
.terms-toc-heading strong { font-size: 18px; font-weight: 950; }
.terms-toc-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.terms-toc-grid a {
  display: grid;
  grid-template-columns: 45px 1fr;
  gap: 12px;
  min-height: 63px;
  padding: 13px 17px;
  align-items: center;
  color: var(--black);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.5;
  transition: color .2s ease,background .2s ease;
}

.terms-toc-grid a:nth-child(2n) { border-right: 0; }
.terms-toc-grid a:nth-last-child(-n+2) { border-bottom: 0; }
.terms-toc-grid a:hover { color: var(--green-dark); background: rgba(17,159,48,.055); }
.terms-toc-grid a span { color: var(--pink); font-size: 18px; font-weight: 950; letter-spacing: -.03em; }

.terms-section {
  scroll-margin-top: 30px;
  margin-bottom: 34px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(17,19,24,.065);
}

.terms-section h2 {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  margin: 0;
  padding: 19px 24px;
  align-items: center;
  color: var(--black);
  background: linear-gradient(90deg,#f1fbf4,#fff 63%,#fff7fa);
  border-bottom: 1px solid var(--line);
  font-size: 20px;
  font-weight: 950;
  line-height: 1.5;
}

.terms-section h2 span {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  color: #fff;
  background: var(--pink);
  font-size: 13px;
  font-weight: 950;
}

.terms-section-body {
  padding: 28px 31px 32px;
  color: #46504b;
  font-size: 15px;
  font-weight: 600;
  line-height: 2.05;
  overflow-wrap: anywhere;
}

.terms-section-body a {
  color: var(--green-dark);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.terms-section-body a:hover { color: var(--pink); }

@media (max-width: 680px) {
  .terms-content { width: calc(100% - 36px); }
  .terms-intro { padding: 24px 20px 26px; border-left-width: 6px; }
  .terms-intro h2 { margin-bottom: 13px; font-size: 23px; }
  .terms-intro div { font-size: 14px; line-height: 1.9; }
  .terms-toc { margin: 30px 0 54px; }
  .terms-toc-heading { padding: 16px 17px; }
  .terms-toc-grid { grid-template-columns: 1fr; }
  .terms-toc-grid a,.terms-toc-grid a:nth-child(2n),.terms-toc-grid a:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .terms-toc-grid a:last-child { border-bottom: 0; }
  .terms-section { margin-bottom: 24px; }
  .terms-section h2 { grid-template-columns: 46px 1fr; gap: 11px; padding: 15px 16px; font-size: 17px; }
  .terms-section h2 span { width: 38px; height: 38px; font-size: 12px; }
  .terms-section-body { padding: 21px 18px 24px; font-size: 14px; line-height: 1.95; }
}

@media print {
  .terms-page .global-side,.terms-page .footer,.terms-page .subpage-entry-cta,.terms-page .terms-toc { display: none !important; }
  .terms-page .page { width: 100%; }
  .terms-page .subpage-hero { padding: 25px 0; }
  .terms-content { width: 100%; padding: 30px 0; }
  .terms-section { break-inside: avoid; box-shadow: none; }
}
