body.terms-page {
  overflow-y: auto !important;
  overflow-x: hidden;
  width: 100%;
  height: auto;
  min-height: 100vh;
  min-height: 100dvh;
}

.terms-page .navigation {
  margin-bottom: 0;
  width: 100%;
}

.terms-main {
  flex: 1 0 auto;
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100dvh - var(--header-height));
  height: auto;
  padding: clamp(2rem, 5vw, 4rem) 0;
  display: flex;
  justify-content: center;
  margin-top: var(--header-height);
  width: 100%;
  box-sizing: border-box;
  overflow: visible;
  background: #fff;
}

.terms-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.terms-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--accent);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0 clamp(1rem, 3vw, 2rem);
}

.terms-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-muted);
  margin-top: 0;
  margin-bottom: 1.5rem;
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0 clamp(1rem, 3vw, 2rem);
}

.terms-content {
  background: #fff;
  border-radius: 0;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 3rem);
  box-shadow: none;
  border: none;
  width: 100%;
  max-width: 100%;
  margin: 0;
  margin-top: 0;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-wrap: break-word;
  position: relative;
}

.terms-section {
  margin-bottom: 2.5rem;
}

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

.terms-section h2 {
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1rem;
  margin-top: 2rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.terms-section h2:first-child {
  margin-top: 0;
}

.terms-section p {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 1rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.terms-section ul,
.terms-section ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.terms-section li {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.terms-section strong {
  font-weight: 600;
  color: var(--accent);
}

.terms-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2.5rem;
  align-items: center;
}

.terms-cta-button {
  display: inline-block;
  padding: clamp(1rem, 2.5vw, 1.4rem) clamp(2.5rem, 6vw, 3.5rem);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: #24e80b;
  border: 2px solid #24e80b;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  text-align: center;
  width: 100%;
  max-width: 400px;
}

.terms-cta-button:hover {
  background: #1fd309;
  border-color: #1fd309;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(36, 232, 11, 0.3);
}

.terms-cta-button:active {
  transform: translateY(0);
}

.back-link {
  display: inline-block;
  margin-top: 0;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.back-link:hover {
  opacity: 0.7;
}

@media (max-width: 900px) {
  .terms-content {
    padding: clamp(1.5rem, 4vw, 2rem);
    border-radius: 16px;
  }

  .terms-main{
    margin-top: 0;
  }

    .terms-title{
      margin-top: 1rem;
    }
  }

  @media (max-width: 400px) {

    main {
      .terms-main{
        margin-top: 0;
      }
    
        .terms-title{
          margin-top: 1rem;
        }
      }
  }