/* ===========================
   GoSmooth — 使用條例 頁面專用樣式
   =========================== */

/* ── 主內容容器 ── */
.terms-of-use-page .tou-content {
  width: min(100% - 64px, 1180px);
  max-width: 1180px;
  margin-inline: auto;
  padding: 56px 0 64px;
  font-size: 16px;
  line-height: 1.8;
  color: #1A1A1A;
}

/* ── 簡潔頁面標題區 ── */
.terms-of-use-page .tou-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.terms-of-use-page .tou-header__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold-dark, #D49A10);
  background: rgba(238, 178, 27, 0.10);
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.terms-of-use-page .tou-header h1 {
  font-family: var(--font-serif, "Noto Serif TC", serif);
  font-size: 38px;
  font-weight: 700;
  color: #2A2A2A;
  margin: 0 0 8px;
  line-height: 1.3;
}

.terms-of-use-page .tou-header__subtitle {
  font-size: 16px;
  color: #888;
  margin: 0;
}

/* ── 引言段落 ── */
.terms-of-use-page .tou-intro {
  margin-bottom: 20px;
  color: #333;
}

/* ── 更新日期 ── */
.terms-of-use-page .tou-updated {
  font-size: 14px;
  color: #888;
  margin-bottom: 28px;
}

.terms-of-use-page .tou-updated--bottom {
  margin-bottom: 0;
  margin-top: 8px;
}

/* ── H2 章節標題 ── */
.terms-of-use-page .tou-content h2 {
  font-family: var(--font-serif, "Noto Serif TC", serif);
  font-size: 22px;
  font-weight: 600;
  color: #2A2A2A;
  margin-top: 48px;
  margin-bottom: 16px;
  padding-left: 16px;
  border-left: 3px solid var(--color-gold, #EEB21B);
  scroll-margin-top: calc(var(--site-header-height, 86px) + 24px);
}

/* ── 段落 ── */
.terms-of-use-page .tou-content p {
  margin-bottom: 14px;
  color: #333;
}

/* ── 粗體 ── */
.terms-of-use-page .tou-content strong {
  color: #1A1A1A;
  font-weight: 600;
}

/* ── 內文連結 ── */
.terms-of-use-page .tou-content a {
  color: #2A2A2A;
  text-decoration: underline;
  text-decoration-color: var(--color-gold, #EEB21B);
  text-underline-offset: 4px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.terms-of-use-page .tou-content a:hover,
.terms-of-use-page .tou-content a:focus {
  color: var(--color-gold-dark, #D49A10);
  text-decoration-color: var(--color-gold-dark, #D49A10);
}

.terms-of-use-page .tou-content a:focus-visible {
  outline: 2px solid var(--color-gold, #EEB21B);
  outline-offset: 2px;
}

/* ── code 元素 ── */
.terms-of-use-page .tou-content code {
  font-family: inherit;
  font-size: 0.95em;
  background: #F5F5F5;
  padding: 1px 6px;
  border-radius: 3px;
  color: #555;
}

/* ── 聯絡資料列表 ── */
.terms-of-use-page .tou-contact-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 48px;
}

.terms-of-use-page .tou-contact-list li {
  margin-bottom: 8px;
  color: #333;
}

/* ── 分隔線 ── */
.terms-of-use-page .tou-divider {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  margin: 48px 0 20px;
}

/* ══════════════════════════════════════════════
   響應式
   ══════════════════════════════════════════════ */

/* ── 平板端 (≤1024px) ── */
@media (max-width: 1024px) {
  .terms-of-use-page .tou-content {
    width: calc(100% - 56px);
    padding: 44px 0 52px;
  }

  .terms-of-use-page .tou-content h2 {
    font-size: 20px;
    margin-top: 40px;
  }

  .terms-of-use-page .tou-header h1 {
    font-size: 32px;
  }
}

/* ── 手機端 (≤768px) ── */
@media (max-width: 768px) {
  .terms-of-use-page .tou-content {
    width: calc(100% - 36px);
    padding: 32px 0 44px;
    font-size: 15px;
  }

  .terms-of-use-page .tou-content h2 {
    font-size: 18px;
    margin-top: 36px;
    padding-left: 12px;
  }

  .terms-of-use-page .tou-header h1 {
    font-size: 26px;
  }

  .terms-of-use-page .tou-header__subtitle {
    font-size: 14px;
  }

  .terms-of-use-page .tou-updated {
    font-size: 13px;
  }

  .terms-of-use-page .tou-content a {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

/* ══════════════════════════════════════════════
   列印樣式
   ══════════════════════════════════════════════ */
@media print {
  .terms-of-use-page .tou-content {
    width: 100%;
    max-width: 100%;
    padding: 0;
    font-size: 13px;
    line-height: 1.6;
  }

  .terms-of-use-page .tou-header h1 {
    font-size: 20px;
  }

  .terms-of-use-page .tou-content h2 {
    border-left: none;
    padding-left: 0;
    font-size: 16px;
    margin-top: 28px;
  }

  .terms-of-use-page .tou-content a {
    text-decoration: none;
    color: inherit;
  }
}
