/* ==============================
   Terms & Conditions Page Styles
   ============================== */

.terms-content {

  padding: 40px;
  border-radius: 8px;

}

.terms-sections {
  margin-top: 40px;
}

.terms-section {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #eee;
}

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

.terms-heading {
  
  font-size: 1.8rem;
  font-weight: bold;
  color: #2c3e50;
  margin: 0 0 20px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.terms-subsections h4 {
  
  font-size: 1.3rem;
  font-weight: bold;
  color: #34495e;
  margin: 25px 0 15px 0;
}

.terms-section p {
  
  line-height: 1.7;
  color: #555;
  margin-bottom: 15px;
  text-align: justify;
}

.terms-section ul {
  margin: 15px 0;
  padding-left: 30px;
}

.terms-section li {
  
  line-height: 1.6;
  color: #555;
  margin-bottom: 8px;
}

/* Cancellation Table */
.cancellation-table {
  margin: 20px 0;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.cancellation-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  background: #f9f9f9;
}

.cancellation-row:nth-child(even) {
  background: #fff;
}

.cancellation-row:last-child {
  border-bottom: none;
}

.timeframe {
  
  font-weight: bold;
  color: #2c3e50;
  flex: 1;
}

.refund-amount {
  
  font-weight: bold;
  color: #e74c3c;
  background: #fff3cd;
  padding: 5px 15px;
  border-radius: 4px;
  border: 1px solid #ffeaa7;
}

/* Contact Info Box */
.contact-info-box {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 20px;
  margin: 20px 0;
}

.contact-info-box p {
  margin: 8px 0;
  
  color: #495057;
}

.contact-info-box strong {
  color: #2c3e50;
}

/* Last Updated */
.last-updated {
  text-align: center;
  border-top: 2px solid #2c3e50;
  padding-top: 20px;
  margin-top: 40px;
}

.last-updated p {
  
  font-style: italic;
  color: #7f8c8d;
  margin: 0;
}

/* Policy Cards */
.policy-card {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 30px 25px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.policy-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
  border-color: #2c3e50;
}

.policy-icon {
  font-size: 3rem;
  color: #2c3e50;
  margin-bottom: 20px;
}

.policy-title {
  
  font-size: 1.4rem;
  font-weight: bold;
  color: #2c3e50;
  margin: 0 0 15px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.policy-text {
  
  color: #555;
  line-height: 1.6;
  margin: 0 0 20px 0;
}

.policy-link {
  
  color: #e74c3c;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid #e74c3c;
  padding-bottom: 5px;
  transition: all 0.3s ease;
}

.policy-link:hover {
  color: #c0392b;
  border-bottom-color: #c0392b;
}

/* Responsive Design for Terms Page */
@media (max-width: 768px) {
  .terms-content {
    padding: 20px;
  }

  .terms-heading {
    font-size: 1.5rem;
  }

  .terms-subsections h4 {
    font-size: 1.1rem;
  }
  
  .cancellation-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .timeframe,
  .refund-amount {
    width: 100%;
    text-align: center;
  }

  .policy-card {
    padding: 20px 15px;
  }

  .policy-icon {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .terms-content {
    padding: 15px;
  }

  .terms-heading {
    font-size: 1.3rem;
  }

  .terms-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
  }
}
