/* Terms and conditions (tac.php), 2026-11-16 redesign. Same visual language as the
   detail and checkout; scoped under .tcg so the old theme doesn't leak in. */

.tcg {
	--tcg-blue: #1d4d8b;
	--tcg-blue-soft: #e8eff8;
	--tcg-ink: #1c2532;
	--tcg-text: #374353;
	--tcg-muted: #5e6b7b;
	--tcg-line: #e2e7ee;
	background: #f3f5f8;
	color: var(--tcg-ink);
	font-family: "Figtree", "Helvetica Neue", Arial, sans-serif;
	padding: 28px 0 56px;
}
.tcg *, .tcg *::before, .tcg *::after { box-sizing: border-box; }
.tcg-wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }

.tcg-head { margin-bottom: 22px; }
.tcg-kicker { margin: 0; color: var(--tcg-blue); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.tcg-title { font-family: inherit; font-size: 32px; font-weight: 700; letter-spacing: -.015em; line-height: 1.15; margin: 6px 0 6px; color: var(--tcg-ink); text-transform: none; }
.tcg-lead { margin: 0; color: var(--tcg-muted); font-size: 15px; }

.tcg-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 28px; align-items: start; }

/* ---- Index -------------------------------------------------------------------- */
.tcg-toc { position: sticky; top: 16px; }
.tcg-toc-box { background: #fff; border: 1px solid var(--tcg-line); border-radius: 14px; padding: 16px 8px 12px 16px; max-height: calc(100vh - 32px); overflow-y: auto; scrollbar-width: thin; }
.tcg-toc-title { list-style: none; cursor: default; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--tcg-muted); margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; padding-right: 8px; }
.tcg-toc-title::-webkit-details-marker { display: none; }
.tcg-toc-title .fa { display: none; }
.tcg-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: tcg; }
.tcg-toc li { counter-increment: tcg; }
.tcg-toc a {
	display: flex; gap: 8px; padding: 6px 8px; border-radius: 8px;
	color: var(--tcg-text); font-size: 13.5px; line-height: 1.35; text-decoration: none;
	transition: background .15s, color .15s;
}
.tcg-toc a::before { content: counter(tcg); flex: none; min-width: 18px; color: var(--tcg-muted); font-weight: 600; font-size: 12px; padding-top: 1px; }
.tcg-toc a:hover { background: var(--tcg-blue-soft); color: var(--tcg-blue); text-decoration: none; }

/* ---- Document ------------------------------------------------------------------- */
.tcg-doc { background: #fff; border: 1px solid var(--tcg-line); border-radius: 14px; padding: 12px 40px 32px; }
.tcg-section { padding-top: 20px; scroll-margin-top: 16px; }
.tcg-section + .tcg-section { border-top: 1px solid var(--tcg-line); margin-top: 8px; }
.tcg-h2 { font-family: inherit; font-size: 20px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; margin: 0 0 10px; color: var(--tcg-ink); text-transform: none; }
.tcg-doc p { margin: 0 0 12px; color: var(--tcg-text); font-size: 15.5px; line-height: 1.7; max-width: 760px; overflow-wrap: anywhere; }
.tcg-doc a { color: var(--tcg-blue); }
.tcg-list { margin: 0 0 14px; padding-left: 22px; color: var(--tcg-text); font-size: 15.5px; line-height: 1.7; max-width: 740px; }
.tcg-list li { margin-bottom: 4px; padding-left: 4px; }
.tcg-list li::marker { color: var(--tcg-blue); font-weight: 700; }

/* ---- Mobile: index folded on top ---------------------------------------------------- */
@media (max-width: 991px) {
	.tcg { padding-top: 18px; }
	.tcg-title { font-size: 25px; }
	.tcg-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
	.tcg-toc { position: static; }
	.tcg-toc-box { max-height: none; padding: 0; }
	.tcg-toc-title { cursor: pointer; margin: 0; padding: 14px 16px; font-size: 13px; color: var(--tcg-blue); }
	.tcg-toc-title .fa { display: inline-block; transition: transform .2s; }
	.tcg-toc-box[open] .tcg-toc-title .fa { transform: rotate(180deg); }
	.tcg-toc ol { padding: 0 8px 10px; }
	.tcg-doc { padding: 4px 18px 22px; }
	.tcg-doc p, .tcg-list { font-size: 15px; }
}
