/* Global styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f7f9fc;
  color: #111;
}

/* Container */
.terms-container {
  display: flex;
  justify-content: center;
  padding: 80px 20px;
}

/* Card box */
.terms-box {
  background: white;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
  border-radius: 30px;
  padding: 40px 30px;
  max-width: 950px;
  width: 100%;
}

/* Heading */
.terms-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  color: #0b0f1c;
  margin-bottom: 10px;
}

.terms-line {
  width: 60px;
  height: 4px;
  background-color: #0aafff;
  border-radius: 2px;
  margin: 0 auto 40px auto;
}

/* List */
.terms-list {
  list-style: none;
  padding: 0;
}

.terms-list li {
  position: relative;
  background-color: #f9fbfd;
  border-radius: 15px;
  padding: 18px 22px 18px 28px;
  margin-bottom: 18px;
  font-size: 1rem;
  line-height: 1.6;
  color: #222;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

/* Hover effect */
.terms-list li:hover {
  background-color: #e6f3ff;
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.15);
}

/* Left-side animated border */
.terms-list li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 4px;
  border-left: 4px solid #1290ff;
  border-radius: 10px;
  transform: scaleY(0);
  transition: transform 0.3s ease;
  transform-origin: top;
}

.terms-list li:hover::before {
  transform: scaleY(1);
}

.term-number {
  color: #0a73e8;
  font-weight: 500;
  margin-right: 20px;
}

.term-heading {
  color: #000;
  font-weight: 700;
}


@media (max-width: 1200px) {
  .terms-box {
    padding: 35px 25px;
  }

  .terms-title {
    font-size: 2rem;
  }

  .terms-list li {
    font-size: 0.95rem;
    padding: 16px 22px 16px 26px;
  }
}

@media (max-width: 900px) {
  .terms-box {
    padding: 30px 20px;
  }

  .terms-title {
    font-size: 1.9rem;
  }

  .terms-list li {
    font-size: 0.9rem;
    padding: 16px 20px 16px 24px;
  }
}

@media (max-width: 768px) {
  .terms-box {
    padding: 25px 15px;
  }

  .terms-title {
    font-size: 1.7rem;
  }

  .terms-list li {
    font-size: 0.85rem;
    padding: 14px 18px 14px 22px;
  }
}

@media (max-width: 480px) {
  .terms-box {
    padding: 20px 12px;
  }

  .terms-title {
    font-size: 1.5rem;
  }

  .terms-line {
    width: 40px;
    height: 3px;
    margin-bottom: 25px;
  }

  .terms-list li {
    font-size: 0.8rem;
    padding: 14px 16px 14px 20px;
  }

  .term-number {
    margin-right: 12px;
  }
}
