/* Terms & Conditions Styles */
.terms-hero {
  background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
  color: white;
  padding: 4rem 1rem;
  text-align: center;
  margin-bottom: 2rem;
}

.terms-hero h1 {
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
  font-weight: 700;
  color: white;
  line-height: 1.2;
}

.last-updated {
  font-size: 1rem;
  opacity: 0.9;
  letter-spacing: 0.3px;
}

.terms-content {
  padding: 0 1rem 3rem;
  line-height: 1.7;
  color: #333;
  font-size: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.terms-intro {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eaeaea;
}

.terms-intro h2 {
  color: #203a43;
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
}

.notice-box {
  background-color: #f8f9fa;
  border-left: 4px solid #2c5364;
  padding: 1.2rem;
  margin: 1.5rem 0;
}

.notice-box p {
  margin-bottom: 0;
  color: #495057;
}

.terms-section {
  margin-bottom: 3rem;
}

.terms-section h3 {
  color: #0f2027;
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
  padding-top: 0.5rem;
  font-weight: 600;
}

.terms-section h4 {
  font-size: 1.2rem;
  margin: 1.5rem 0 0.8rem;
  color: #203a43;
  font-weight: 500;
}

.terms-section p {
  margin-bottom: 1.2rem;
  color: #495057;
  word-wrap: break-word;
}

.terms-section ul,
.terms-section ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.terms-section li {
  margin-bottom: 0.6rem;
  color: #495057;
  word-wrap: break-word;
}

.definition-list {
  list-style-type: none;
  padding-left: 0;
}

.definition-list li {
  margin-bottom: 1rem;
}

.definition-list strong {
  color: #0f2027;
}

address {
  font-style: normal;
  margin: 1.2rem 0;
  line-height: 1.6;
  word-wrap: break-word;
}

address a {
  color: #2c5364;
  text-decoration: none;
  word-break: break-all;
}

address a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (min-width: 768px) {
  .terms-hero {
    padding: 5rem 0;
    margin-bottom: 3rem;
  }

  .terms-hero h1 {
    font-size: 2.5rem;
  }

  .terms-content {
    padding: 0 2rem 4rem;
    font-size: 1.05rem;
  }

  .terms-intro h2 {
    font-size: 1.8rem;
  }

  .terms-section h3 {
    font-size: 1.6rem;
  }

  .terms-section h4 {
    font-size: 1.3rem;
  }
}

@media (min-width: 992px) {
  .terms-hero h1 {
    font-size: 2.8rem;
  }

  .terms-content {
    padding: 0 3rem 4rem;
  }
}

/* Small devices (phones, 576px and below) */
@media (max-width: 576px) {
  .terms-hero {
    padding: 3rem 1rem;
  }

  .terms-hero h1 {
    font-size: 1.9rem;
  }

  .last-updated {
    font-size: 0.9rem;
  }

  .terms-content {
    padding: 0 1rem 2.5rem;
    font-size: 0.95rem;
  }

  .terms-section ul,
  .terms-section ol {
    padding-left: 1.2rem;
  }
}

/* Extra small devices (phones, 375px and below) */
@media (max-width: 400px) {
  .terms-hero h1 {
    font-size: 1.7rem;
  }

  .terms-intro h2 {
    font-size: 1.3rem;
  }

  .terms-section h3 {
    font-size: 1.25rem;
  }

  .terms-section h4 {
    font-size: 1.1rem;
    margin: 1.2rem 0 0.7rem;
  }

  .terms-section p,
  .terms-section li {
    font-size: 0.9rem;
  }

  .notice-box {
    padding: 1rem;
    margin: 1.2rem 0;
  }
}

/* Text selection styling */
::selection {
  background: #203a43;
  color: white;
}
