.terms-shell {
  min-height: calc(100vh - 160px);
  padding: 44px clamp(16px, 5vw, 72px) 72px;
  background: var(--wash);
}

.terms-heading {
  width: min(900px, 100%);
  margin-bottom: 34px;
}

.terms-heading h1 {
  margin-bottom: 14px;
  color: var(--navy);
  font-size: clamp(2.4rem, 5vw, 4.4rem);
}

.terms-heading > p:last-child {
  max-width: 780px;
  color: var(--muted);
  font-size: 1.06rem;
}

.terms-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 820px);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.terms-index {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 10px;
  padding: 4px 0 4px 16px;
  border-left: 3px solid var(--teal);
}

.terms-index a,
.terms-content a {
  color: #086d73;
}

.terms-content {
  padding: 4px 0;
}

.terms-content section + section {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.terms-content h2 {
  margin-bottom: 12px;
  color: var(--navy);
  font-size: 1.3rem;
}

.terms-content p {
  color: #314553;
  line-height: 1.7;
}

.safety-note {
  margin-top: 34px;
  padding: 20px;
  background: #eef7f6;
  border-left: 4px solid var(--teal);
}

.safety-note p {
  margin-bottom: 0;
}

@media (max-width: 760px) {
  .terms-layout {
    grid-template-columns: 1fr;
  }

  .terms-index {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .terms-index strong {
    grid-column: 1 / -1;
  }

  .terms-content {
    padding: 0;
  }
}
