/*
 * 法務ページ（プライバシーポリシー / 利用規約 / 特定商取引法に基づく表記 /
 * 返金および返品ポリシー）のテーブル装飾。
 *
 * 背景:
 *  - docs/legal/publish/*.html の <table> は枠線・余白なしの素の HTML で、
 *    列が単なる連続テキストに見えてしまう。
 *  - Lazy CSS（{@see inc/tdc-legal.php} で対象 4 ページのみ条件付き enqueue）
 *    として、シンプルな罫線テーブルに整形する。
 *  - `body.tdc-legal-page` は同ファイルの body_class フィルタで付与される
 *    対象ページ限定クラス（他ページの table には影響させない）。
 */

body.tdc-legal-page .entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 16px 0 24px;
	font-size: 14px;
	line-height: 1.6;
	background: #fff;
}

body.tdc-legal-page .entry-content th,
body.tdc-legal-page .entry-content td {
	border: 1px solid var(--tdc-border, #e6e0d6);
	padding: 10px 12px;
	text-align: left;
	vertical-align: top;
}

body.tdc-legal-page .entry-content thead th {
	background: var(--tdc-bg, #faf8f4);
	font-weight: 700;
	white-space: nowrap;
}

/* 特商法ページの行見出し（<tbody><tr><th>…</th><td>…</td></tr>）。 */
body.tdc-legal-page .entry-content tbody th {
	background: var(--tdc-bg, #faf8f4);
	font-weight: 700;
	width: 11em;
}

body.tdc-legal-page .entry-content tbody tr:nth-child(even) td {
	background: #fcfbf9;
}

body.tdc-legal-page .entry-content mark {
	background: #fff3b0;
	padding: 0 4px;
}

@media (max-width: 719px) {
	body.tdc-legal-page .entry-content table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		font-size: 13px;
	}

	body.tdc-legal-page .entry-content th,
	body.tdc-legal-page .entry-content td {
		padding: 8px 10px;
	}

	body.tdc-legal-page .entry-content tbody th {
		width: auto;
		min-width: 8em;
	}
}
