/*
 * Terms of use and Privacy policy (theme 1.291.0, page-legal.php), to the
 * design of 28 Oct 2026 (handoff-legal-website, legal.css). One column,
 * mobile first: a Legal label, the title, Last updated and Version in a
 * grey box, a contents list that folds on a phone, numbered headings,
 * two-column tables that become cards on a phone, and the other policies
 * at the foot.
 */
.ph-legal { background: #fff; color: var(--ink-2, #5b6070); font-family: var(--font, 'Plus Jakarta Sans', -apple-system, system-ui, sans-serif); }
.ph-legal__in { box-sizing: border-box; max-width: 760px; margin: 0 auto; padding: 16px 16px 80px; }
.ph-legal__k { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3, #8f95a6); }
.ph-legal__title { margin: 6px 0 12px; color: var(--ink, #16181f); font-size: 26px; font-weight: 800; line-height: 1.15; letter-spacing: -.6px; text-wrap: balance; }
.ph-legal__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--surface, #f6f7f9); color: var(--ink-2, #5b6070); font-size: 13.5px; line-height: 1.5; }
.ph-legal__meta b { color: var(--ink, #16181f); }

.ph-legal__toc { margin: 22px 0 8px; overflow: hidden; border: 1px solid var(--line, #e4e6ec); border-radius: 16px; }
.ph-legal__toc summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 16px; color: var(--ink, #16181f); font-size: 15px; font-weight: 800; cursor: pointer; list-style: none; }
.ph-legal__toc summary::-webkit-details-marker { display: none; }
.ph-legal__toc summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--ink-3, #8f95a6); border-bottom: 2px solid var(--ink-3, #8f95a6); transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.ph-legal__toc[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.ph-legal__toc summary:focus-visible { outline: 2px solid var(--pink, #e8568a); outline-offset: -2px; }
.ph-legal__toc ol { display: grid; gap: 2px; margin: 0; padding: 4px 16px 14px 36px; border-top: 1px solid var(--line, #e4e6ec); font-size: 14.5px; }
.ph-legal__toc li { padding: 6px 0; }
.ph-legal__toc li::marker { color: var(--ink-3, #8f95a6); font-weight: 700; }
.ph-legal__toc a { color: var(--ink, #16181f); font-weight: 600; text-decoration: none; }
.ph-legal__toc a:hover { color: var(--pink-press, #c9376e); }

.ph-legal__body h2 { display: flex; gap: 10px; margin: 0 0 10px; padding-top: 28px; color: var(--ink, #16181f); font-size: 20px; font-weight: 800; line-height: 1.25; letter-spacing: -.3px; scroll-margin-top: 96px; }
.ph-legal__n { color: var(--ink-3, #8f95a6); font-variant-numeric: tabular-nums; }
.ph-legal__body li { color: var(--ink-2, #5b6070); font-size: 15.5px; line-height: 1.65; }
.ph-legal__body p { margin: 0 0 12px; color: var(--ink-2, #5b6070); font-size: 15.5px; line-height: 1.65; }
.ph-legal__body ul { display: grid; gap: 6px; margin: 0 0 12px; padding-left: 22px; }
.ph-legal__body li ul { margin: 6px 0 0; }
.ph-legal__body strong { color: var(--ink, #16181f); }
.ph-legal a { color: var(--pink-press, #c9376e); overflow-wrap: anywhere; }
.ph-legal a:hover { color: var(--ink, #16181f); }

.ph-legal__table { margin: 6px 0 16px; }
.ph-legal__table table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14.5px; line-height: 1.5; }
.ph-legal__table th { padding: 10px 14px; background: var(--surface, #f6f7f9); color: var(--ink-3, #8f95a6); font-size: 12px; font-weight: 800; letter-spacing: .04em; text-align: left; text-transform: uppercase; }
.ph-legal__table th:first-child { border-radius: 12px 0 0 12px; }
.ph-legal__table th:last-child { border-radius: 0 12px 12px 0; }
.ph-legal__table td { padding: 14px; border-bottom: 1px solid var(--line, #e4e6ec); color: var(--ink-2, #5b6070); vertical-align: top; }
.ph-legal__table td:first-child { width: 38%; color: var(--ink, #16181f); font-weight: 700; }

.ph-legal__f { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line, #e4e6ec); font-size: 14px; }
.ph-legal__f button { padding: 0; border: 0; background: none; color: var(--pink-press, #c9376e); font: inherit; text-decoration: underline; cursor: pointer; }
.ph-legal__f button:hover { color: var(--ink, #16181f); }

/* A phone: each table row becomes a card, its column name as a label. */
@media (max-width: 640px) {
	.ph-legal__table table, .ph-legal__table tbody { display: block; width: 100% !important; box-sizing: border-box; }
	.ph-legal__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.ph-legal__table tr { display: block; width: 100% !important; box-sizing: border-box; margin-bottom: 10px; padding: 4px 14px; border: 1px solid var(--line, #e4e6ec); border-radius: 14px; background: #fff; }
	.ph-legal__table td { display: block; width: 100% !important; box-sizing: border-box; padding: 10px 0; }
	.ph-legal__table td:last-child { border-bottom: 0; }
	.ph-legal__table td::before { content: attr(data-label); display: block; margin-bottom: 3px; color: var(--ink-3, #8f95a6); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
}

@media (min-width: 641px) {
	.ph-legal__in { padding-top: 24px; }
	.ph-legal__title { font-size: 30px; }
	.ph-legal__toc summary { cursor: default; }
	.ph-legal__toc summary::after { display: none; }
}
