.terms-page main.chat-shell.terms {
  padding: 16px 0 16px;
}

.terms-page .terms__inner {
  width: min(960px, 92vw);
  max-width: none;
  margin: 0 auto;
  border-radius: 12px;
  padding: 20px;
  background: #fff;
  border: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
}

.terms-page .terms__section h3 {
  margin: 14px 0 6px;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 700;
}

.terms-page .terms-guide-layout {
  width: min(1240px, 94vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.terms-page .terms-guide-layout .terms__inner {
  width: 100%;
  margin: 0;
}

.terms-page .terms-guide-sidebar {
  border: none;
  border-radius: 12px;
  background: #fff;
  padding: 20px;
  position: sticky;
  top: 72px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
}

.terms-page .terms-guide-sidebar__title {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  color: #7b7b7b;
}

.terms-page .terms-guide-sidebar__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
}

.terms-page .terms-guide-sidebar__list li + li {
  margin-top: 0;
}

.terms-page .terms-guide-sidebar__list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 14px;
  color: #4b5563;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.terms-page .terms-guide-sidebar__list a:hover {
  background: #f7f2f2;
}

.terms-page .terms-guide-sidebar__list a.is-current {
  background: #fde7e9;
  color: #e14a57;
  font-weight: 700;
}

.terms-page .terms-guide-sidebar__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
}

.terms-page .terms-guide-sidebar__icon svg {
  width: 20px;
  height: 20px;
}

.terms-page .terms-guide-mobile-overlay,
.terms-page .terms-guide-mobile-sidebar {
  display: none;
}

.terms-page .contact-page > .contact-form__hint {
  margin-bottom: 14px;
}

@media (max-width: 768px) {
  .terms-page .terms__section h3 {
    margin-top: 12px;
    font-size: 16px;
  }

  .top-head--billing-guide #nav-toggle {
    display: block;
  }

  .terms-page .terms-guide-layout {
    width: min(960px, 92vw);
    grid-template-columns: 1fr;
  }

  .terms-page .terms-guide-layout > .terms-guide-sidebar {
    display: none !important;
  }

  .terms-page .terms-guide-mobile-overlay {
    display: block !important;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1250;
  }

  .terms-page .terms-guide-mobile-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .terms-page .terms-guide-mobile-sidebar {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 78vw;
    max-width: 320px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1300;
    border-radius: 0 12px 12px 0;
    padding: 24px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .terms-page .terms-guide-mobile-sidebar.is-open,
  .terms-guide-nav-open .terms-page .terms-guide-mobile-sidebar {
    transform: translateX(0);
  }
}
