.terms-main {
  padding: 2.5rem 1rem 6rem 1rem;
  background: var(--bg);
  min-height: 70vh;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
}

.terms-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(46, 139, 87, 0.15);
  padding: 2.5rem 2rem;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.terms-container:hover {
  border-color: var(--primary);
  box-shadow: 0 6px 30px rgba(46, 139, 87, 0.2);
}

.terms-container h1 {
  font-size: 2.5rem;
  color: var(--text);
  margin-bottom: 0.5rem;
  text-align: center;
  font-weight: 700;
}

.terms-intro {
  color: var(--muted-text);
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 3rem;
}

.terms-section {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--input-border);
  scroll-margin-top: 6rem;
}

.terms-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.terms-section h2 {
  font-size: 2rem;
  color: var(--text);
  margin-bottom: 1.5rem;
  font-weight: 700;
  padding-top: 1rem;
}

.terms-section h3 {
  font-size: 1.3rem;
  color: var(--text);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.terms-content {
  color: var(--text);
  line-height: 1.8;
}

.terms-content p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.terms-content p:last-child {
  margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .terms-main {
    padding: 6rem 0.5rem 4rem 0.5rem;
  }

  .terms-container {
    padding: 1.5rem 1.5rem;
    margin: 0 0.5rem;
  }

  .terms-container h1 {
    font-size: 2rem;
  }

  .terms-section h2 {
    font-size: 1.75rem;
  }

  .terms-section h3 {
    font-size: 1.2rem;
  }

  .terms-content p {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .terms-container {
    padding: 1.25rem 1rem;
  }

  .terms-container h1 {
    font-size: 1.75rem;
  }

  .terms-section h2 {
    font-size: 1.5rem;
  }

  .terms-section h3 {
    font-size: 1.1rem;
  }
}

