/* Terms of Service Page Styles */
.terms-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
  color: #333;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Header Styles */
.terms-header {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.terms-header h1 {
  color: #ff6600;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 30px;
  position: relative;
  display: inline-block;
}

.terms-header h1:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #ff6600, #ffcc00);
  border-radius: 2px;
}

/* Navigation */
.terms-nav {
  background-color: #fff;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 5px;
  margin: 0 auto 40px;
  max-width: 800px;
  position: sticky;
  top: 20px;
  z-index: 100;
}

.terms-nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.terms-nav li {
  margin: 5px;
}

.terms-nav a {
  display: block;
  padding: 10px 20px;
  color: #555;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.terms-nav a:hover,
.terms-nav a.active {
  background-color: #ffcc00;
  color: #333;
  box-shadow: 0 2px 8px rgba(255, 204, 0, 0.3);
}

/* Section Styles */
.terms-section {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  padding: 30px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.section-header {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
}

.section-icon {
  background: linear-gradient(135deg, #ff6600, #ffcc00);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  box-shadow: 0 4px 10px rgba(255, 102, 0, 0.2);
}

.section-icon i {
  font-size: 24px;
  color: white;
}

.section-header h2 {
  color: #333;
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0;
  flex: 1;
}

.section-intro {
  background-color: #fff9e6;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
  border-left: 4px solid #ffcc00;
}

.section-intro p {
  margin: 0;
  line-height: 1.6;
}

/* Item Styles */
.prohibited-items,
.seller-rules,
.general-rules,
.penalties-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.prohibited-item,
.rule-item,
.penalty-item {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: flex-start;
  border: 1px solid #f0f0f0;
}

.prohibited-item:hover,
.rule-item:hover,
.penalty-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.item-icon {
  background: linear-gradient(135deg, #ff6600, #ffcc00);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  flex-shrink: 0;
}

.item-icon i {
  font-size: 20px;
  color: white;
}

.item-content {
  flex: 1;
}

.item-content h3 {
  color: #333;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 10px 0;
}

.item-content p {
  color: #666;
  margin: 0;
  line-height: 1.5;
}

/* Table Styles */
.penalty-table {
  margin-top: 40px;
}

.penalty-table h3 {
  color: #333;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.table-wrapper {
  overflow-x: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.penalty-table table {
  width: 100%;
  border-collapse: collapse;
  border: none;
}

.penalty-table th,
.penalty-table td {
  padding: 15px;
  text-align: left;
  border: none;
}

.penalty-table th {
  background-color: #ff6600;
  color: white;
  font-weight: 600;
}

.penalty-table th:first-child {
  border-top-left-radius: 8px;
}

.penalty-table th:last-child {
  border-top-right-radius: 8px;
}

.penalty-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.penalty-table tr:hover {
  background-color: #fff9e6;
}

/* Conclusion Section */
.conclusion {
  background: linear-gradient(to bottom right, #fff, #fff9e6);
}

.conclusion-content {
  padding: 20px;
  border-radius: 8px;
  line-height: 1.6;
}

.last-updated {
  text-align: center;
  margin-top: 30px;
  font-style: italic;
  color: #888;
}

/* Footer */
.terms-footer {
  text-align: center;
  margin-top: 40px;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff6600, #ffcc00);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(255, 102, 0, 0.3);
  position: fixed;
  bottom: 30px;
  right: 30px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(255, 102, 0, 0.4);
}

.back-to-top i {
  font-size: 20px;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .terms-container {
    padding: 20px 15px;
  }

  .terms-header h1 {
    font-size: 2rem;
  }

  .section-header {
    flex-direction: column;
    text-align: center;
  }

  .section-icon {
    margin-right: 0;
    margin-bottom: 15px;
  }

  .prohibited-items,
  .seller-rules,
  .general-rules,
  .penalties-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .terms-nav {
    padding: 5px;
    margin-bottom: 30px;
    position: relative;
    top: 0;
  }

  .terms-nav ul {
    flex-direction: column;
  }

  .terms-nav li {
    margin: 2px 0;
  }

  .terms-nav a {
    padding: 8px 15px;
    text-align: center;
  }

  .terms-section {
    padding: 20px;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .prohibited-item,
  .rule-item,
  .penalty-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .item-icon {
    margin-right: 0;
    margin-bottom: 15px;
  }

  .back-to-top {
    width: 40px;
    height: 40px;
    bottom: 20px;
    right: 20px;
  }
}

@media (max-width: 480px) {
  .terms-header h1 {
    font-size: 1.8rem;
  }

  .section-header h2 {
    font-size: 1.3rem;
  }

  .item-content h3 {
    font-size: 1.1rem;
  }

  .penalty-table th,
  .penalty-table td {
    padding: 10px;
  }
}
