/* Base styles for Terms and Conditions section */
.terms-section {
  padding: 80px 20px;
  margin-top: 90px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.tob {
  margin-top: 25px;
}

.section-heading {
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
}

.subsection {
  margin: 20px 0;
}

.subsection h2 {
  font-size: 20px;
  margin-bottom: 10px;
}

.subsection p {
  font-size: 16px;
  margin-bottom: 10px;
}

.features-list {
  list-style: none;
  margin-bottom: 10px;
  padding-left: 0; /* Remove default padding */
}

.features-list li {
  font-size: 16px;
  margin: 5px 0;
  display: flex;
  align-items: flex-start; /* Align checkmark and text */
}

.features-list .checkmark {
  margin-right: 5px;
  font-size: 16px; /* Consistent checkmark size */
}

/* CTA Section */
.cta-section {
  text-align: center;
  padding: 20px;
  border-top: 1px solid #000;
}

.cta-section h1 {
  font-size: 20px;
  margin-bottom: 10px;
}

.cta-section p {
  font-size: 16px;
  margin-bottom: 10px;
}

/* Media Queries for Responsiveness */

/* Small devices (phones, 576px and below) */
@media (max-width: 576px) {
  .terms-section {
    padding: 40px 15px; /* Reduced padding for smaller screens */
    margin-top: 60px; /* Adjust for smaller navbar height */
  }

  .section-heading {
    font-size: 20px; /* Smaller heading for mobile */
    margin-bottom: 15px;
  }

  .subsection h2 {
    font-size: 18px; /* Slightly smaller subheading */
    margin-bottom: 8px;
  }

  .subsection p {
    font-size: 14px; /* Smaller text for readability */
    margin-bottom: 8px;
  }

  .features-list li {
    font-size: 14px; /* Adjust list item font size */
  }

  .features-list .checkmark {
    font-size: 14px; /* Match checkmark size */
  }

  .cta-section {
    padding: 15px; /* Reduced padding */
  }

  .cta-section h1 {
    font-size: 18px; /* Smaller CTA heading */
    margin-bottom: 8px;
  }

  .cta-section p {
    font-size: 14px; /* Smaller CTA text */
    margin-bottom: 8px;
  }
}

/* Medium devices (tablets, 577px to 768px) */
@media (min-width: 577px) and (max-width: 768px) {
  .terms-section {
    padding: 60px 20px; /* Moderate padding */
    margin-top: 70px;
  }

  .section-heading {
    font-size: 22px; /* Slightly smaller heading */
    margin-bottom: 18px;
  }

  .subsection h2 {
    font-size: 19px;
    margin-bottom: 9px;
  }

  .subsection p {
    font-size: 15px;
    margin-bottom: 9px;
  }

  .features-list li {
    font-size: 15px;
  }

  .features-list .checkmark {
    font-size: 15px;
  }

  .cta-section {
    padding: 18px;
  }

  .cta-section h1 {
    font-size: 19px;
    margin-bottom: 9px;
  }

  .cta-section p {
    font-size: 15px;
    margin-bottom: 9px;
  }
}

/* Large devices (desktops, 769px to 992px) */
@media (min-width: 769px) and (max-width: 992px) {
  .terms-section {
    padding: 70px 25px; /* Slightly adjusted padding */
    margin-top: 80px;
  }

  .section-heading {
    font-size: 23px;
  }

  .subsection h2 {
    font-size: 19px;
  }

  .subsection p {
    font-size: 15px;
  }

  .features-list li {
    font-size: 15px;
  }

  .features-list .checkmark {
    font-size: 15px;
  }

  .cta-section {
    padding: 18px;
  }

  .cta-section h1 {
    font-size: 19px;
  }

  .cta-section p {
    font-size: 15px;
  }
}

/* Extra-large devices (large desktops, 993px and above) */
@media (min-width: 993px) {
  .terms-section {
    max-width: 1200px; /* Cap max-width for larger screens */
    padding: 80px 30px; /* Comfortable padding */
  }

  .section-heading {
    font-size: 24px; /* Original size for large screens */
  }

  .subsection h2 {
    font-size: 20px;
  }

  .subsection p {
    font-size: 16px;
  }

  .features-list li {
    font-size: 16px;
  }

  .features-list .checkmark {
    font-size: 16px;
  }

  .cta-section {
    padding: 20px;
  }

  .cta-section h1 {
    font-size: 20px;
  }

  .cta-section p {
    font-size: 16px;
  }
}