/**
 * 凯诺仕「網站使用條款及細則」页面样式
 * ------------------------------------------------------------------
 * 正文沿用原站 design-system 的 .chr-rich-text__body /
 * .chr-rich-text__unordered-list 排版规则，本文件只补：
 *   1. 语言区块切换（.terms-lang[hidden]）
 *   2. 面包屑
 *   3. 标题居中（原站标题被 <center> 包住，这里用 CSS 还原）
 *   4. 阅读体验优化（行高、段间距、列表缩进）
 */

.terms-main {
  min-height: 40vh;
}

/* ---------- 语言区块 ---------- */
.terms-lang[hidden] {
  display: none !important;
}

/* ---------- 面包屑 ---------- */
.terms-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "ABCArizonaSans", Arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.4;
  color: #6b6b6b;
}

.terms-breadcrumb__link {
  color: #6b6b6b;
  text-decoration: none;
  transition: color 0.3s cubic-bezier(0.39, 0.58, 0.57, 1);
}

.terms-breadcrumb__link:hover,
.terms-breadcrumb__link:focus-visible {
  color: #000;
  text-decoration: underline;
}

.terms-breadcrumb__sep {
  color: #b0b0b0;
}

.terms-breadcrumb__current {
  color: #000;
}

/* ---------- 标题 ---------- */
.terms-title {
  text-align: center;
  margin: 0 0 2.5rem;
  font-family: "ABCArizonaSerif", Georgia, "Songti SC", serif;
  font-style: normal;
  font-weight: 300;
  font-size: 2rem;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .terms-title {
    font-size: 2.5rem;
  }
}

/* ---------- 正文 ---------- */
.terms-body {
  font-family: "ABCArizonaSans", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #222;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.9;
}

.terms-body p {
  margin: 0 0 1.25rem;
}

.terms-body p:last-child {
  margin-bottom: 0;
}

.terms-body strong {
  font-weight: 500;
  color: #000;
}

.terms-body a {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s cubic-bezier(0.39, 0.58, 0.57, 1);
}

.terms-body a:hover,
.terms-body a:focus-visible {
  color: #8b1a1a;
}

/* 无序列表（原站 .chr-rich-text__unordered-list） */
.terms-body ul.chr-rich-text__unordered-list {
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
  list-style: disc;
}

.terms-body ul.chr-rich-text__unordered-list > li {
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}

.terms-body ul.chr-rich-text__unordered-list > li p {
  margin: 0;
}

/* ---------- 隐私政策表格 ---------- */
.privacy-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 2rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  border: 1px solid #e0e0e0;
}

.privacy-table thead th {
  background: #f5f1ea;
  color: #222;
  font-weight: 600;
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 2px solid #d9b166;
  font-size: 0.9rem;
}

.privacy-table tbody td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid #eee;
  vertical-align: top;
  color: #333;
}

.privacy-table tbody tr:hover {
  background: #faf8f4;
}

.privacy-table tbody tr:last-child td {
  border-bottom: none;
}

.privacy-table th:nth-child(1),
.privacy-table td:nth-child(1) {
  width: 22%;
  min-width: 160px;
}

.privacy-table th:nth-child(2),
.privacy-table td:nth-child(2) {
  width: 48%;
}

.privacy-table th:nth-child(3),
.privacy-table td:nth-child(3) {
  width: 30%;
  min-width: 130px;
}

/* ---------- 移动端 ---------- */
@media (max-width: 767px) {
  .terms-body {
    font-size: 0.9375rem;
    line-height: 1.85;
  }

  .terms-title {
    font-size: 1.75rem;
    margin-bottom: 1.75rem;
  }

  .privacy-table {
    font-size: 0.85rem;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .privacy-table th,
  .privacy-table td {
    white-space: normal;
  }
}
