/* ============================================================
   terms.css — 利用規約ページ (/terms) 本文のスタイル
   ヘッダ/フッタ/メインコンテンツ幅は base.css を共用する。
   ============================================================ */

/* 背景のグラデーションの上でも読みやすいよう、本文は LP と同じ半透明の白い面に載せる */
.terms-doc {
  padding: 48px 56px;
  border-radius: var(--radius);
  background: var(--surface);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04), 0 12px 32px -20px rgba(0, 0, 0, 0.2);
}
@media (max-width: 600px) {
  .terms-doc {
    padding: 28px 20px;
    border-radius: 16px;
  }
}

.terms-body {
  /* 全ページ共通の line-height: 1.8(base.css)は条文の密な文章には間延びしすぎるため
     1.65 に詰める。法務文書らしい情報密度を確保しつつ、窮屈にならない程度に抑えた */
  line-height: 1.65;
}
.terms-body h1,
.terms-body h2,
.terms-body h3 {
  /* LP と同じく、見出しは日本語の文節で折り返す(対応ブラウザのみ) */
  word-break: auto-phrase;
}
.terms-body h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line-strong);
}
.terms-body h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 3rem 0 1rem;
  scroll-margin-top: calc(var(--header-h) + 32px);
}
.terms-body h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  scroll-margin-top: calc(var(--header-h) + 32px);
}
.terms-body p {
  margin: 0.75rem 0;
}

/* 条文リスト: 第1階層は「1. 2. 3.」、第2階層以降は「(1)(2)(3)」 */
.terms-body ol {
  list-style: none;
  counter-reset: terms-item;
  padding-left: 0;
  margin: 0.5rem 0 1rem;
}
.terms-body ol > li {
  counter-increment: terms-item;
  position: relative;
  padding-left: 2.2em;
  margin: 0.5rem 0;
}
.terms-body ol > li::before {
  content: counter(terms-item) '. ';
  position: absolute;
  left: 0;
}
.terms-body ol ol {
  margin-top: 0.25rem;
}
.terms-body ol ol > li {
  padding-left: 2.6em;
}
.terms-body ol ol > li::before {
  content: '(' counter(terms-item) ') ';
}
.terms-body ul {
  padding-left: 1.5rem;
}

/* テーブル(特記事項の窓口など)。文字サイズは本文と統一する */
.terms-body table {
  border-collapse: collapse;
  width: 100%;
  margin: 1rem 0 1.5rem;
}
.terms-body th,
.terms-body td {
  border: 1px solid var(--line);
  padding: 0.5rem 0.75rem;
  text-align: left;
  vertical-align: top;
}
.terms-body th {
  background: rgba(0, 0, 0, 0.03);
  white-space: nowrap;
}
