/*
 * Crazy Runners — legal pages (legal notice, terms of sale, delivery and returns, privacy policy, withdrawal).
 * Loaded on those pages only (inc/legal.php). The pages are plain text: headings, lists, a few tables, the model
 * withdrawal form, the online withdrawal function (inc/legal-withdrawal.php), and the marker of what the shop
 * still has to supply.
 */

/* What only the shop can supply: [crs_a_completer]. Meant to be seen. */
.crs-legal-blank {
	padding: 1px 6px;
	border-radius: var(--crs-radius-sm);
	background: #fff3bf;
	color: #5c3d00;
	font-weight: 600;
}

/* [crs_avant_ouverture]: what is settled at go-live by whoever puts the site online. Another colour: it is not a question put to the shop. */
.crs-legal-todo {
	padding: 1px 6px;
	border-radius: var(--crs-radius-sm);
	background: #e3ecf7;
	color: #1d3557;
	font-weight: 600;
}

/* Alone on its line, WordPress leaves a marker without a paragraph around it: it then takes the text column. */
.entry-content > .crs-legal-blank,
.entry-content > .crs-legal-todo {
	display: block;
}

/* Tables: delivery prices, personal data, cookies. They scroll sideways on a narrow screen rather than overflow. */
.entry-content table {
	display: block;
	width: 100%;
	overflow-x: auto;
	border-collapse: collapse;
	font-size: .9375rem;
}

.entry-content th,
.entry-content td {
	padding: 10px 14px;
	border: 1px solid var(--crs-border);
	text-align: left;
	vertical-align: top;
}

.entry-content thead th {
	background: var(--crs-surface);
	font-weight: 700;
}

/* The delivery price table: narrower than the text column, and aligned with its left edge. */
.crs-legal-tablewrap {
	overflow-x: auto;
}

.crs-legal-tablewrap .crs-legal-table {
	display: table;
	width: auto;
	min-width: min(100%, 420px);
	margin: 0;
}

.crs-legal-note {
	color: var(--crs-muted);
	font-size: .9375rem;
}

.entry-content code {
	overflow-wrap: anywhere;
}

/* The model withdrawal form of the law: a box, to print or copy. */
.crs-legal-form {
	margin-bottom: 1.5em;
	padding: 18px 22px;
	border: 1px solid var(--crs-text);
	border-radius: var(--crs-radius-sm);
	background: #fff;
}

.crs-legal-form ul {
	margin: 0 0 .75em;
	padding-left: 1.2em;
}

.crs-legal-form li {
	margin-bottom: .6em;
}

.crs-legal-form__intro,
.crs-legal-form__footnote {
	margin: 0 0 .75em;
	font-size: .9375rem;
}

.crs-legal-form__footnote {
	margin-bottom: 0;
}

/* The online withdrawal function. */
.crs-rt {
	margin-bottom: 2em;
	padding: 24px;
	border: 1px solid var(--crs-border);
	border-radius: var(--crs-radius);
	background: var(--crs-surface);
	scroll-margin-top: 120px;
}

/* Two classes: the theme gives every H2 of a page's content a top margin, which a box of its own does not want. */
.crs-rt .crs-rt__title {
	margin: 0 0 .6em;
	font-size: 1.25rem;
}

.crs-rt__field {
	margin: 0 0 18px;
}

.crs-rt__field label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
}

.crs-rt__field input,
.crs-rt__field textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--crs-text);
	border-radius: var(--crs-radius-sm);
	background: #fff;
	color: var(--crs-text);
	font: inherit;
}

.crs-rt__help {
	display: block;
	margin-top: 6px;
	color: var(--crs-muted);
	font-size: .875rem;
}

.crs-rt__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 22px;
	margin: 0;
}

.crs-rt__error {
	margin: 0 0 18px;
	padding: 12px 16px;
	border-left: 4px solid var(--crs-accent);
	background: #fff;
	font-weight: 600;
}

.crs-rt__summary {
	margin-bottom: 20px;
}

.crs-rt__summary p,
.crs-rt__statement p {
	margin: 0 0 .5em;
}

.crs-rt__statement {
	margin: 16px 0;
	padding: 14px 18px;
	border-left: 4px solid var(--crs-accent);
	background: #fff;
}

.crs-rt__done > :last-child {
	margin-bottom: 0;
}

.crs-rt__back {
	font-size: .9375rem;
}

/* A field people must not fill in: left to the robots that fill everything. */
.crs-rt__trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* The boxed notice on legal guarantees that the law requires in terms of sale (annex to article D. 211-2). */
.crs-legal-box {
	border: 1px solid currentColor;
	padding: 16px 20px;
	margin: 24px 0;
	font-size: 0.95em;
}

.crs-legal-box p {
	margin: 0 0 0.75em;
}

.crs-legal-box p:last-child {
	margin-bottom: 0;
}
