/* ===========================
   TERMS HERO
=========================== */
.terms-hero {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: #fff;
}

.terms-hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.terms-hero p {
  font-size: 1rem;
  color: #a0aec0;
}

/* ===========================
   TERMS MAIN LAYOUT
=========================== */
.terms-main {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: start;
}

/* ===========================
   SIDEBAR
=========================== */
.terms-sidebar {
  position: relative;
}

.terms-sidebar .sidebar-sticky {
  position: sticky;
  top: 24px;
  background: #f9fafb;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
}

.terms-sidebar .sidebar-sticky h3 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-color);
  margin-bottom: 16px;
}

.terms-sidebar .sidebar-sticky ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.terms-sidebar .sidebar-sticky ul li a {
  display: block;
  padding: 8px 12px;
  font-size: 0.9rem;
  color: #4a5568;
  text-decoration: none;
  border-radius: 6px;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.terms-sidebar .sidebar-sticky ul li a:hover {
  color: gray;
}

/* ===========================
   TERMS CONTENT
=========================== */
.terms-content {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.terms-intro {
  background: #eef2ff;
  border-left: 5px solid var(--primary-color);
  border-radius: 8px;
  padding: 24px 28px;
}

.terms-intro p {
  font-size: 0.97rem;
  color: #4a5568;
  line-height: 1.8;
  margin: 0;
}

/* ===========================
   TERMS SECTIONS
=========================== */
.terms-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-number {
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--primary-color);
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.05em;
}

.terms-section p {
  font-size: 0.97rem;
  color: #4a5568;
  line-height: 1.8;
  margin-bottom: 16px;
}

/* ===========================
   TERMS LIST
=========================== */
.terms-list {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.terms-list li {
  font-size: 0.97rem;
  color: #4a5568;
  line-height: 1.7;
  padding-left: 8px;
}

.terms-list li::marker {
  color: var(--primary-color);
}

/* ===========================
   TERMS HIGHLIGHT BOXES
=========================== */
.terms-highlight {
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 10px;
  padding: 18px 22px;
  margin: 16px 0;
}

.terms-highlight span {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.terms-highlight p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

.terms-highlight.warning {
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.terms-highlight.warning p {
  color: #92400e;
}

.terms-highlight.info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.terms-highlight.info p {
  color: #1e40af;
}

/* ===========================
   TERMS CARDS (User Accounts)
=========================== */
.terms-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.terms-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.terms-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.1);
}

.terms-card span {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 10px;
}

.terms-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.terms-card p {
  font-size: 0.9rem;
  color: #718096;
  line-height: 1.6;
  margin: 0;
}

/* ===========================
   PROHIBITED GRID
=========================== */
.prohibited-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.prohibited-card {
  background: #fff5f5;
  border: 1px solid #fed7d7;
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.2s ease;
}

.prohibited-card:hover {
  transform: translateY(-3px);
}

.prohibited-card span {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.prohibited-card p {
  font-size: 0.9rem;
  color: #c53030;
  margin: 0;
  line-height: 1.5;
}

/* ===========================
   CONTACT BOX
=========================== */
.terms-content .contact-box {
  background: #f9fafb;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.terms-content .contact-box p {
  font-size: 0.97rem;
  color: #4a5568;
  margin: 0;
}

.terms-content .contact-box a {
  color: var(--link-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.terms-content .contact-box a:hover {
  text-decoration: underline;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 900px) {
  .terms-main {
    grid-template-columns: 1fr;
  }

  .terms-sidebar {
    display: none;
  }
}

@media (max-width: 768px) {
  .terms-hero h1 {
    font-size: 2rem;
  }

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

  .terms-cards {
    grid-template-columns: 1fr;
  }

  .prohibited-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .terms-hero {
    padding: 60px 16px;
  }

  .terms-hero h1 {
    font-size: 1.7rem;
  }

  .terms-highlight {
    flex-direction: column;
    gap: 8px;
  }
}
