/* ---------------------------------------------------------
   Page légale — Mise en page
   --------------------------------------------------------- */

.legal-main {
    min-height: 80vh;
    border-bottom: 4px solid white;
}

.legal-layout {
    display: grid;
    grid-template-columns: 40rem 1fr;
    align-items: stretch;
}

/* ---------------------------------------------------------
   Sidebar
   --------------------------------------------------------- */

.legal-sidebar {
    height: 100%;
    border-right: 4px solid white;
    padding: 12rem 0 10rem;
}

.legal-sidebar > nav {
    position: sticky;
    top: calc(var(--header-nav-height) + 3rem);
}

.legal-nav-pages {
    display: flex;
    flex-direction: column;
}

/* Lien page principale */
.legal-nav-item > a {
    display: block;
    padding: 0.7rem 0;
    font-weight: 500;
    text-transform: uppercase;
    transition: color var(--transition);
    line-height: 1.4;
    font-size: 1.6rem;
}

.legal-nav-item > a:hover {
    color: var(--blue);
}

/* Page active */
.legal-nav-item.is-current > a {
    color: var(--blue);
}

/* Sous-navigation ancres H2 */
.legal-nav-anchors {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0 0 1rem 2rem;
}

.legal-nav-anchors li > a {
	display: block;
	font-size: 1.1rem;
	transition: color var(--transition);
	line-height: 1.5;
	text-transform: uppercase;
	font-weight: 500;
    padding: 0.5rem 0;
}

.legal-nav-anchors li > a:hover {
    color: var(--blue);
}

.legal-nav-anchors li > a.is-active {
    color: var(--blue);
    font-weight: 500;
}

/* ---------------------------------------------------------
   Header article
   --------------------------------------------------------- */

.legal-content {
    padding: 10rem 0 10rem 10rem;
}

.legal-header {
    max-width: 100rem;
}

.legal-title {
    font-size: 10rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* ---------------------------------------------------------
   Corps de l'article
   --------------------------------------------------------- */

.legal-body {
    font-size: 1.4rem;
    line-height: 1.85;
    max-width: 100rem;
}

.legal-body h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 4rem;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    line-height: 1.2;
    scroll-margin-top: calc(var(--header-nav-height) + 2.5rem);
}

.legal-body h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    scroll-margin-top: calc(var(--header-nav-height) + 2.5rem);
}

.legal-body h2 + h3 {
    margin-top: 0;
}

.legal-body p {
    margin-top: 1.2rem;
}

.legal-body h3 + p {
    margin-top: 0;
}

.legal-body ul,
.legal-body ol {
    padding-left: 2rem;
    margin: 1.2rem 0 0 2rem;
}

.legal-body ul {
    list-style: none;
    position: relative;
}

.legal-body ul li,
.legal-nav-anchors li {
    position: relative;
}

.legal-body ul li::before {
	content: '';
	position: absolute;
	left: -19px;
	top: 11px;
	width: 10px;
	height: 2px;
	background-color: var(--blue);
}

.legal-nav-anchors li::before {
	content: '';
	position: absolute;
	left: -18.5px;
	top: 12px;
	width: 8.5px;
	height: 1.5px;
	background-color: black;
    transition: background-color var(--transition);
}

.legal-body ul li::after {
	content: '';
	position: absolute;
	left: -15px;
	top: 7px;
	width: 2px;
	height: 10px;
	background-color: var(--blue);
}

.legal-nav-anchors li::after {
	content: '';
	position: absolute;
	left: -15px;
	top: 8.5px;
	width: 1.5px;
	height: 8.5px;
	background-color: black;
    transition: background-color var(--transition);
}

.legal-nav-anchors li:has(a.is-active)::before,
.legal-nav-anchors li:has(a.is-active)::after,
.legal-nav-anchors li:hover::before,
.legal-nav-anchors li:hover::after {
    background-color: var(--blue);
}

.legal-body ol {
    list-style: decimal;
}

.legal-body li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.legal-body a {
    color: var(--blue);
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 3px;
    transition: text-decoration-color var(--transition);
}

.legal-body a:hover {
    text-decoration-color: var(--blue);
}

.legal-body strong,
.legal-body b {
    font-weight: 600;
}

.legal-body em {
    font-style: italic;
}

/* ---------------------------------------------------------
   Date de mise à jour
   --------------------------------------------------------- */

.legal-meta {
    position: relative;
	margin-top: 5rem;
	padding-top: 2rem;
	font-size: 1.2rem;
	color: var(--blue);
	text-transform: uppercase;
	font-style: italic;
	font-weight: 500;
}

.legal-meta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 16px;
    height: 1.5px;
    background-color: var(--blue);
}