/* ================================
   TERMS PAGE - Unified with USER style
   ================================ */

/* === 版面結構 === */
.terms-page {
  padding: 20px 50px;
}

.terms-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 40px;
}

/* === 側邊欄 (改成與 user 相同風格) === */
.terms-sidebar {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 40px 30px;
  box-shadow: none;
  position: static;
  top: auto;
  flex: 0 0 250px;
}

.terms-sidebar h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #000;
}

/* 清單樣式 */
.terms-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.terms-nav li {
  margin: 0;
}

/* 連結樣式 - 模仿 user.css */
.terms-nav a {
  display: block;
  padding: 15px 0;
  padding-left: 1rem;
  text-decoration: none;
  color: #999;
  border-bottom: 1px solid #999;
  font-size: 15px;
  transition: color 0.2s ease;
  border-radius: 0;
  background: transparent;
  transform: none;
}

.terms-nav a:hover {
  color: #666;
  border-bottom-color: #666;
  background: transparent;
}

.terms-nav li.active a {
  color: #000;
  font-weight: 500;
  border-bottom: 1px solid #000;
  background: transparent;
}

/* === 內容區 (右側) === */
.terms-content {
  flex: 1;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 40px 50px;
  line-height: 1.8;
  color: #333;
  font-size: 16px;
}

.terms-content h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #000;
}

.terms-content p {
  margin-bottom: 20px;
}

/* === 表格、清單等細節樣式 === */
.terms-content ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

.terms-content li {
  margin-bottom: 8px;
}

.terms-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
}

.terms-content th,
.terms-content td {
  border: 1px solid #ddd;
  padding: 10px 15px;
  text-align: left;
}

/* === 響應式調整 === */
@media (max-width: 992px) {
  .terms-container {
    flex-direction: column;
  }

  .terms-sidebar {
    flex: 1 1 100%;
    margin-bottom: 20px;
  }

  .terms-content {
    padding: 25px 20px;
  }
}
