.terms-page {
  padding: 173px 0 80px;
  color: var(--theme-text-color);
}

@media screen and (max-width: 1240px) {
  .terms-page {
    padding: 150px 0 70px;
  }
}

@media screen and (max-width: 767px) {
  .terms-page {
    padding: 123px 0 60px;
  }
}

.terms-page__header {
  text-align: center;
  margin-bottom: 60px;
}

@media screen and (max-width: 767px) {
  .terms-page__header {
    margin-bottom: 40px;
  }
}

.terms-page__title {
  font-size: 61px;
  line-height: 71px;
  color: var(--theme-primary-text);
  font-weight: 600;
  margin-bottom: 20px;
}

@media screen and (max-width: 1240px) {
  .terms-page__title {
    font-size: 55px;
    line-height: 65px;
  }
}

@media screen and (max-width: 767px) {
  .terms-page__title {
    font-size: 40px;
    line-height: 45px;
    margin-bottom: 15px;
  }
}

.terms-page__subtitle {
  font-size: 18px;
  line-height: 175%;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.8;
}

@media screen and (max-width: 1240px) {
  .terms-page__subtitle {
    font-size: 17px;
  }
}

@media screen and (max-width: 767px) {
  .terms-page__subtitle {
    font-size: 16px;
  }
}

.terms-page__content {
  max-width: 1000px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--border-radius-large);
  padding: 50px 60px;
  border: 1px solid var(--theme-border-color);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(160, 101, 255, 0.04);
}

@media screen and (max-width: 1240px) {
  .terms-page__content {
    padding: 40px 50px;
  }
}

@media screen and (max-width: 767px) {
  .terms-page__content {
    padding: 30px 20px;
    border-radius: 20px;
  }
}

.wrapper.active .terms-page__content {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--theme-border-color);
  box-shadow: 0 8px 32px rgba(120, 161, 242, 0.03);
}

.terms-section {
  margin-bottom: 50px;
}

@media screen and (max-width: 767px) {
  .terms-section {
    margin-bottom: 40px;
  }
}

.terms-section h2 {
  font-size: 28px;
  line-height: 140%;
  color: var(--theme-primary-text);
  font-weight: 600;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--theme-border-color);
}

@media screen and (max-width: 1240px) {
  .terms-section h2 {
    font-size: 26px;
  }
}

@media screen and (max-width: 767px) {
  .terms-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 12px;
  }
}

.terms-section p {
  font-size: 16px;
  line-height: 175%;
  margin-bottom: 16px;
}

@media screen and (max-width: 1240px) {
  .terms-section p {
    font-size: 15px;
  }
}

@media screen and (max-width: 767px) {
  .terms-section p {
    font-size: 14px;
    margin-bottom: 14px;
  }
}

.terms-section-content p:last-child {
  margin-bottom: 0;
}

.terms-section ul {
  margin: 20px 0;
  padding-left: 0;
  list-style: none;
}

@media screen and (max-width: 767px) {
  .terms-section ul {
    margin: 16px 0;
  }
}

.terms-section li {
  font-size: 16px;
  line-height: 175%;
  margin-bottom: 12px;
  position: relative;
  padding-left: 24px;
}

.terms-section li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  background: var(--theme-accent);
  border-radius: 50%;
  transform: translateY(-50%);
}

@media screen and (max-width: 1240px) {
  .terms-section li {
    font-size: 15px;
    padding-left: 22px;
  }
  
  .terms-section li::before {
    width: 5px;
    height: 5px;
    top: 11px;
  }
}

@media screen and (max-width: 767px) {
  .terms-section li {
    font-size: 14px;
    margin-bottom: 10px;
    padding-left: 20px;
  }
  
  .terms-section li::before {
    width: 4px;
    height: 4px;
    top: 10px;
  }
}

.terms-section strong {
  color: var(--theme-primary-text);
  font-weight: 600;
}

.terms-section a {
  color: var(--theme-accent);
  text-decoration: underline;
  transition: var(--transition-default);
}

.terms-section a:hover {
  color: var(--theme-accent-hover);
  text-decoration: none;
}

.terms-section blockquote {
  margin: 24px 0;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.02);
  border-left: 4px solid var(--theme-accent);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  position: relative;
}

@media screen and (max-width: 767px) {
  .terms-section blockquote {
    margin: 20px 0;
    padding: 16px 20px;
  }
}

.wrapper.active .terms-section blockquote {
  background: rgba(0, 0, 0, 0.01);
}

.terms-section code {
  background: rgba(255, 255, 255, 0.05);
  color: var(--theme-accent);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
}

.wrapper.active .terms-section code {
  background: rgba(0, 0, 0, 0.03);
}

.terms-section pre {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--theme-border-color);
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  overflow-x: auto;
  font-family: 'Courier New', monospace;
  line-height: 1.4;
}

@media screen and (max-width: 767px) {
  .terms-section pre {
    padding: 16px;
    margin: 16px 0;
  }
}

.wrapper.active .terms-section pre {
  background: rgba(0, 0, 0, 0.01);
}

.terms-section pre code {
  background: none;
  padding: 0;
  color: var(--theme-text-color);
}

.terms-definitions {
  margin-left: 2em;
}

@media screen and (max-width: 767px) {
  .terms-definitions {
    margin-left: 1.5em;
  }
}

.terms-requisites {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--theme-border-color);
  border-radius: 12px;
  padding: 30px;
  margin: 20px 0;
}

@media screen and (max-width: 767px) {
  .terms-requisites {
    padding: 20px;
    margin: 16px 0;
  }
}

.wrapper.active .terms-requisites {
  background: rgba(0, 0, 0, 0.015);
}

.terms-requisites-section {
  margin-bottom: 25px;
}

.terms-requisites-section:last-child {
  margin-bottom: 0;
}

.terms-requisites-section h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--theme-accent);
  margin-bottom: 12px;
  border-bottom: 1px solid var(--theme-border-color);
  padding-bottom: 8px;
}

@media screen and (max-width: 1240px) {
  .terms-requisites-section h4 {
    font-size: 17px;
  }
}

@media screen and (max-width: 767px) {
  .terms-requisites-section h4 {
    font-size: 16px;
    margin-bottom: 10px;
    padding-bottom: 6px;
  }
}

.terms-requisites-section p {
  margin-bottom: 8px;
  line-height: 1.6;
}

.terms-requisites-section p:last-child {
  margin-bottom: 0;
}

.terms-page__updated {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--theme-border-color);
  margin-top: 40px;
}

@media screen and (max-width: 767px) {
  .terms-page__updated {
    margin-top: 30px;
    padding-top: 20px;
  }
}

.terms-page__updated p {
  font-size: 14px;
  opacity: 0.7;
  margin: 0;
}

@media screen and (max-width: 767px) {
  .terms-page__updated p {
    font-size: 13px;
  }
}

