/* Skyward Commerce : gabarit « Page légale ». */

.swc-legal__head,
.swc-legal__layout {
	max-width: 720px;
	margin-left: auto;
	margin-right: auto;
}

.swc-legal__layout.has-toc {
	max-width: 1040px;
}

.swc-legal__date {
	margin: 0 0 var(--swc-sp-5);
	color: var(--swc-text-soft);
	font-size: var(--swc-fs-s);
}

.swc-legal__body {
	font-size: 16px;
	line-height: 1.7;
}

.swc-legal__body h2 {
	margin: 2.2em 0 0.6em;
	padding-top: 0.2em;
	font-size: 22px;
	scroll-margin-top: 24px;
}

.swc-legal__body h3 {
	margin: 1.6em 0 0.5em;
	font-size: 17px;
}

.swc-legal__body > :first-child {
	margin-top: 0;
}

.swc-legal__body li {
	margin-bottom: 0.4em;
}

.swc-legal__body table {
	display: block;
	width: 100%;
	margin: 0 0 var(--swc-sp-5);
	overflow-x: auto;
	border-collapse: collapse;
	font-size: var(--swc-fs-s);
}

.swc-legal__body th,
.swc-legal__body td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--swc-line);
	text-align: left;
	vertical-align: top;
}

.swc-legal__body th {
	background: var(--swc-soft);
	font-weight: 600;
}

.swc-toc summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 48px;
	border-top: 1px solid var(--swc-line);
	border-bottom: 1px solid var(--swc-line);
	font-weight: 600;
	list-style: none;
	cursor: pointer;
}

.swc-toc summary::-webkit-details-marker {
	display: none;
}

.swc-toc summary::after {
	content: "+";
	font-size: 20px;
	font-weight: 400;
}

.swc-toc[open] summary::after {
	content: "\2212";
}

.swc-toc ol {
	margin: 0;
	padding: var(--swc-sp-3) 0;
	list-style: none;
}

.swc-toc li a {
	display: block;
	padding: 7px 0;
	color: var(--swc-text-soft);
	font-size: var(--swc-fs-s);
	line-height: 1.35;
}

.swc-toc li a:hover,
.swc-toc li a[aria-current] {
	color: var(--swc-ink);
}

.swc-toc li a[aria-current] {
	font-weight: 600;
}

@media (max-width: 767px) {
	.swc-legal__nav {
		margin-bottom: var(--swc-sp-5);
	}
}

@media (min-width: 768px) {
	.swc-legal__layout.has-toc {
		display: grid;
		grid-template-columns: 220px minmax(0, 720px);
		gap: 64px;
		align-items: start;
	}

	.swc-legal__nav {
		position: sticky;
		top: 24px;
	}

	body.admin-bar .swc-legal__nav {
		top: 56px;
	}

	.swc-toc summary {
		height: auto;
		padding-bottom: 10px;
		border: 0;
		border-bottom: 1px solid var(--swc-line);
		font-size: var(--swc-fs-xs);
		letter-spacing: 0.06em;
		text-transform: uppercase;
		pointer-events: none;
	}

	.swc-toc summary::after {
		content: none;
	}

	.swc-toc li a[aria-current] {
		box-shadow: -12px 0 0 -10px var(--swc-ink);
	}
}
