.sb-terms-page {
  --sb-terms-shell: min(1824px, calc(100% - 224px));
  scroll-behavior: smooth;
}

.sb-terms-page {
  background: #ffffff;
  color: #111827;
  overflow: hidden;
}

.sb-terms-page .container {
  width: var(--sb-terms-shell);
  max-width: none;
}

.sb-terms-hero {
  border-bottom: 1px solid #dbe5f2;
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
}

.sb-terms-hero-inner {
  padding: 78px 0 54px;
}

.sb-terms-hero h1 {
  max-width: 880px;
  margin: 0;
  color: #111827;
  font-size: 56px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0;
}

.sb-terms-hero p {
  max-width: 820px;
  margin: 22px 0 0;
  color: #5f6b7a;
  font-size: 1.12rem;
  line-height: 1.65;
}

.sb-terms-layout {
  padding: 46px 0 82px;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.sb-terms-nav {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 120px);
  overflow: auto;
  padding: 18px;
  border: 1px solid #dbe5f2;
  border-radius: 8px;
  background: #f6f9fd;
}

.sb-terms-nav strong {
  display: block;
  margin-bottom: 12px;
  color: #5f6b7a;
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sb-terms-nav a {
  display: block;
  padding: 8px 0;
  border-top: 1px solid rgba(220, 230, 242, 0.72);
  color: #273244;
  font-size: 0.94rem;
  line-height: 1.35;
}

.sb-terms-nav a:hover,
.sb-terms-nav a:focus {
  color: #1572e8;
}

.sb-terms-document {
  min-width: 0;
}

.sb-terms-intro {
  padding: 28px;
  margin-bottom: 30px;
  border: 1px solid #dbe5f2;
  border-radius: 8px;
  background: #ffffff;
}

.sb-terms-intro strong {
  display: block;
  margin-bottom: 8px;
  color: #111827;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.45;
}

.sb-terms-intro p {
  margin: 0;
  color: #5f6b7a;
  font-size: 1rem;
  line-height: 1.65;
}

.sb-terms-section {
  padding: 34px 0;
  border-top: 1px solid #dbe5f2;
  scroll-margin-top: 104px;
}

.sb-terms-section h2 {
  margin: 0 0 18px;
  color: #111827;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: 0;
}

.sb-terms-section h3 {
  margin: 30px 0 12px;
  color: #111827;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: 0;
}

.sb-terms-section p {
  margin: 0 0 16px;
  color: #374151;
  font-size: 1rem;
  line-height: 1.65;
}

.sb-terms-section p:last-child {
  margin-bottom: 0;
}

.sb-terms-section ul {
  margin: 0 0 16px;
  padding-left: 22px;
  color: #374151;
}

.sb-terms-section li {
  font-size: 1rem;
  line-height: 1.65;
}

.sb-terms-section li + li {
  margin-top: 8px;
}

.sb-terms-section a {
  color: #1572e8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sb-terms-highlight {
  padding: 18px 20px;
  margin: 18px 0;
  border-left: 4px solid #e95348;
  border-radius: 0 8px 8px 0;
  background: #fff7f6;
  color: #374151;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.6;
}

@media (max-width: 1499.98px) {
  .sb-terms-page {
    --sb-terms-shell: min(1520px, calc(100% - 120px));
  }
}

@media (max-width: 1180px) {
  .sb-terms-page {
    --sb-terms-shell: calc(100% - 56px);
  }

  .sb-terms-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .sb-terms-nav {
    position: static;
    max-height: none;
  }

  .sb-terms-hero-inner {
    padding-top: 54px;
  }
}

@media (max-width: 760px) {
  .sb-terms-page {
    --sb-terms-shell: calc(100% - 64px);
  }

  .sb-terms-page .container {
    padding-left: 0;
    padding-right: 0;
  }

  .sb-terms-hero-inner {
    padding: 48px 0;
  }

  .sb-terms-hero h1 {
    font-size: 40px;
    line-height: 1.1;
  }

  .sb-terms-hero p {
    font-size: 17px;
    line-height: 1.58;
  }

  .sb-terms-layout {
    padding: 34px 0 60px;
  }

  .sb-terms-intro {
    padding: 22px;
  }

  .sb-terms-section h2 {
    font-size: 28px;
    line-height: 1.14;
  }

  .sb-terms-section h3 {
    font-size: 20px;
  }
}

@media (max-width: 389.98px) {
  .sb-terms-page {
    --sb-terms-shell: calc(100% - 24px);
  }
}
