/**
 * Castellanos — bandeau de préférences et pages légales.
 */

.cs-cookie-banner {
	position: fixed;
	z-index: 9000;
	right: 20px;
	bottom: 20px;
	width: min(400px, calc(100% - 40px));
	padding: 14px 16px 14px;
	background: var(--cs-soft, #faf8f8);
	color: var(--cs-ink, #030304);
	border: 1px solid var(--cs-line, rgba(3, 3, 4, 0.12));
	border-radius: var(--cs-radius-panel, 12px);
	box-shadow: 0 10px 28px rgba(3, 3, 4, 0.1);
}

.cs-cookie-banner[hidden] {
	display: none !important;
}

.cs-cookie-banner__title {
	margin: 0 0 6px;
	color: var(--cs-ink, #030304);
	font-family: var(--cs-font, "Raleway", system-ui, sans-serif);
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.cs-cookie-banner__text {
	margin: 0 0 12px;
	color: var(--cs-muted, #4a4a4a);
	font-family: var(--cs-font-body, "Montserrat", system-ui, sans-serif);
	font-size: 0.68rem;
	line-height: 1.5;
}

.cs-cookie-banner__text a,
.cs-legal__prose a,
.cs-cookie-preferences a {
	color: var(--cs-ink, #030304);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.cs-cookie-banner__text a {
	margin-left: 0.25em;
	white-space: nowrap;
}

.cs-cookie-banner__text a:hover,
.cs-legal__prose a:hover,
.cs-cookie-preferences a:hover {
	color: var(--cs-ink, #030304);
}

.cs-cookie-banner__actions {
	display: flex;
	align-items: stretch;
	gap: 8px;
}

.cs-cookie-banner__actions .ed-footer__contact-cta {
	flex: 1 1 0;
	margin: 0;
	padding: 0.45rem 0.65rem;
	border-width: 1px;
	font-size: 0.62rem;
	letter-spacing: 0.1em;
	line-height: 1.2;
	text-align: center;
}

/* Pages légales */
.cs-legal {
	padding: 0 0 clamp(3.5rem, 7vw, 6rem);
	background: var(--cs-white, #fff);
}

.cs-legal__shell {
	width: calc(100% - (var(--cs-shell-side) * 2));
	max-width: var(--cs-shell);
	margin: 0 auto;
	padding: 0 var(--cs-shell-inset);
	box-sizing: border-box;
}

.cs-legal__breadcrumb {
	padding-top: clamp(1.25rem, 3vw, 2rem);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.cs-legal__breadcrumb a {
	color: var(--cs-ink, #030304);
}

.cs-legal__breadcrumb span {
	margin-left: 0.4rem;
}

.cs-legal__intro.cs-cuisine__intro {
	width: 100%;
	max-width: 960px;
	padding-right: 0;
	padding-left: 0;
}

.cs-legal__lead.cs-cuisine__lead {
	max-width: 760px;
	text-align: center;
}

.cs-legal__sections {
	max-width: 1040px;
	margin: 0 auto;
	border-top: 1px solid var(--cs-line, rgba(3, 3, 4, 0.12));
}

.cs-legal__section,
.cs-cookie-preferences {
	display: grid;
	grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
	gap: clamp(2rem, 6vw, 5rem);
	padding: clamp(2.5rem, 5vw, 4.5rem) 0;
	border-bottom: 1px solid var(--cs-line, rgba(3, 3, 4, 0.12));
}

.cs-legal__kicker {
	margin: 0;
	color: var(--cs-muted, #4a4a4a);
	font-family: var(--cs-font, "Raleway", system-ui, sans-serif);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.cs-legal__section-title {
	margin: 0 0 1.25rem;
	color: var(--cs-teal, #3bb8a1);
	font-family: var(--cs-font, "Raleway", system-ui, sans-serif);
	font-size: clamp(1rem, 2vw, 1.35rem);
	font-weight: 700;
	letter-spacing: 0.16em;
	line-height: 1.35;
	text-transform: uppercase;
	text-wrap: balance;
}

.cs-legal__prose,
.cs-cookie-preferences__content {
	max-width: 760px;
	color: var(--cs-ink, #030304);
	font-family: var(--cs-font-body, "Montserrat", system-ui, sans-serif);
	font-size: var(--cs-font-body-size, 0.95rem);
	line-height: 1.75;
}

.cs-legal__prose p,
.cs-cookie-preferences__content p {
	margin: 0 0 1rem;
}

.cs-legal__prose p:last-child,
.cs-cookie-preferences__content p:last-child {
	margin-bottom: 0;
}

.cs-legal__prose code {
	padding: 0.08em 0.3em;
	background: var(--cs-soft-offers, #f3f7f6);
	font-size: 0.9em;
	overflow-wrap: anywhere;
}

/* Préférences sur la page cookies */
.cs-cookie-preferences {
	max-width: 1040px;
	margin: 0 auto;
	scroll-margin-top: 7rem;
}

.cs-cookie-preferences__lead {
	margin-bottom: 1.25rem !important;
}

.cs-cookie-preferences__fieldset {
	margin: 0;
	padding: 0;
	border: 0;
}

.cs-cookie-preferences__legend {
	margin: 0 0 0.65rem;
	color: var(--cs-ink, #030304);
	font-family: var(--cs-font, "Raleway", system-ui, sans-serif);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.cs-cookie-preferences__hint {
	color: var(--cs-muted, #4a4a4a);
	font-size: 0.9rem;
}

.cs-cookie-preferences__options {
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
	margin: 1.25rem 0;
}

.cs-cookie-preferences__option {
	display: flex;
	gap: 0.7rem;
	align-items: flex-start;
	cursor: pointer;
}

.cs-cookie-preferences__option input {
	flex-shrink: 0;
	margin-top: 0.35em;
	accent-color: var(--cs-teal, #3bb8a1);
}

.cs-cookie-preferences__submit {
	margin: 0;
}

.cs-cookie-preferences__status {
	margin-top: 1rem !important;
	color: var(--cs-ink, #030304);
	font-weight: 700;
}

.cs-cookie-preferences__status[hidden] {
	display: none !important;
}

@media (max-width: 700px) {
	.cs-cookie-banner {
		right: 0;
		bottom: 0;
		left: 0;
		width: 100%;
		padding: 12px 14px;
		border-right: 0;
		border-bottom: 0;
		border-left: 0;
		border-radius: 0;
	}

	.cs-cookie-banner__actions {
		gap: 6px;
	}

	.cs-cookie-banner__actions .ed-footer__contact-cta {
		padding: 0.4rem 0.5rem;
		letter-spacing: 0.08em;
	}

	.cs-legal__shell {
		width: auto;
		margin-right: var(--cs-shell-side);
		margin-left: var(--cs-shell-side);
		padding-right: 0;
		padding-left: 0;
	}

	.cs-legal__lead.cs-cuisine__lead {
		text-align: start;
	}

	.cs-legal__section,
	.cs-cookie-preferences {
		grid-template-columns: 1fr;
		gap: 1rem;
		padding-top: 1.75rem;
		padding-bottom: 1.75rem;
	}

	.cs-legal {
		padding-bottom: 2.75rem;
	}

	.cs-legal__section-title {
		margin-bottom: 0.85rem;
		font-size: 0.95rem;
		letter-spacing: 0.12em;
		overflow-wrap: anywhere;
	}

	.cs-legal__prose,
	.cs-cookie-preferences__content {
		font-size: 0.82rem;
		line-height: 1.65;
	}
}

@media (max-width: 359px) {
	.cs-cookie-banner__actions {
		flex-wrap: wrap;
	}

	.cs-cookie-banner__actions .ed-footer__contact-cta {
		flex-basis: 100%;
	}
}

/* Crédit de conception — signature graphique O3W. */
.cs-legal-credit {
	display: grid;
	grid-template-columns: 84px minmax(0, 1fr);
	gap: 1.35rem;
	align-items: center;
	padding: clamp(1.1rem, 3vw, 1.6rem);
	border: 1px solid rgba(59, 184, 161, 0.26);
	border-radius: var(--cs-radius-panel, 12px);
	background: linear-gradient(135deg, rgba(59, 184, 161, 0.09), rgba(255, 255, 255, 0.96));
}

.cs-legal-credit__mark {
	display: grid;
	width: 84px;
	height: 84px;
	place-items: center;
	border-radius: 50%;
	background: var(--cs-teal, #3bb8a1);
	color: #fff;
	font-family: var(--cs-font, "Raleway", system-ui, sans-serif);
	font-size: 1.2rem;
	font-weight: 900;
	letter-spacing: 0.12em;
}

.cs-legal-credit__eyebrow {
	margin-bottom: 0.25rem !important;
	color: var(--cs-muted, #4a4a4a);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.cs-legal-credit__name {
	margin-bottom: 0.35rem !important;
	font-family: var(--cs-font, "Raleway", system-ui, sans-serif);
	font-size: clamp(1rem, 2vw, 1.25rem);
}

.cs-legal-credit__body > p:not(.cs-legal-credit__eyebrow):not(.cs-legal-credit__name) {
	margin-bottom: 0.65rem;
}

.cs-legal-credit__link {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.cs-legal-credit__note {
	margin-top: 0.8rem !important;
	color: var(--cs-muted, #4a4a4a);
	font-size: 0.76rem;
}

@media (max-width: 560px) {
	.cs-legal-credit {
		grid-template-columns: 1fr;
	}

	.cs-legal-credit__mark {
		width: 68px;
		height: 68px;
	}
}
