.terms-page {
  background: #ffffff;
  padding: 34px 0 44px;
}

.terms-page__container {
  width: min(1180px, calc(100vw - 48px));
}

.terms-page__layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 96px;
  align-items: start;
}

.terms-summary {
  position: sticky;
  top: 106px;
}

.terms-summary__title {
  margin: 0 0 18px;
  color: #042b46;
  font-family: var(--font-body);
  font-size: clamp(2.2rem, 3vw, 2.9rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
}

.terms-summary__line {
  display: none;
}

.terms-summary__nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.terms-summary__link {
  color: #c17d09;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.3;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.terms-summary__link:hover {
  color: #042b46;
  transform: translateX(4px);
}

.terms-summary__link.is-active {
  color: #042b46;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

.terms-content {
  min-width: 0;
}

.terms-section {
  scroll-margin-top: 112px;
  margin-bottom: 38px;
}

.terms-section h1,
.terms-section h2 {
  margin: 0 0 18px;
  color: #042b46;
  font-family: var(--font-body);
  font-size: clamp(2.15rem, 3vw, 2.85rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.terms-section h3 {
  margin: 0 0 14px;
  color: #042b46;
  font-family: var(--font-body);
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.terms-section p {
  margin: 0 0 18px;
  max-width: none;
  color: #324657;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
}

.terms-section--sub {
  margin-top: -12px;
}

.terms-list {
  margin: 0 0 18px 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.terms-list li {
  position: relative;
  padding-left: 20px;
  color: #324657;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
}

.terms-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: #c17d09;
  font-weight: 700;
}

@media (max-width: 980px) {
  .terms-page__container {
    width: calc(100vw - 24px);
  }

  .terms-page__layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .terms-summary {
    position: static;
    top: auto;
  }

  .terms-summary__nav {
    gap: 8px;
  }

  .terms-section {
    scroll-margin-top: 92px;
  }
}

@media (max-width: 820px) {
  .terms-page {
    padding: 24px 0 28px;
  }

  .terms-summary__title {
    font-size: clamp(2rem, 8vw, 2.45rem);
  }

  .terms-summary__link {
    font-size: 0.96rem;
    line-height: 1.28;
  }

  .terms-section h1,
  .terms-section h2 {
    font-size: clamp(2rem, 8vw, 2.45rem);
  }

  .terms-section h3 {
    font-size: clamp(1.12rem, 5vw, 1.3rem);
  }

  .terms-section p,
  .terms-list li {
    font-size: 0.98rem;
    line-height: 1.58;
  }
}
