/* Démos IA Légal & Cookies : pages légales et liens de pied de page.
   Les couleurs suivent le thème quand il définit --c-* (thème Les Démos IA),
   sinon des valeurs neutres prennent le relais. */

.dial-legal {
	--l-line: var(--c-line, rgba(128, 128, 128, .28));
	--l-surface: var(--c-surface, rgba(128, 128, 128, .08));
	--l-muted: var(--c-muted, inherit);
	--l-accent: var(--c-accent-text, currentColor);
	max-width: 780px; margin: 0 auto; line-height: 1.7;
}
.dial-legal h2 { margin: 2.4rem 0 .7rem; font-size: 1.35rem; line-height: 1.25; }
.dial-legal h3 { margin: 1.6rem 0 .4rem; font-size: 1.08rem; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.dial-legal p, .dial-legal li { color: inherit; }
.dial-legal ul { padding-left: 1.2rem; }
.dial-legal a { text-underline-offset: 3px; }
.dial-legal code { font-family: var(--f-mono, ui-monospace, monospace); font-size: .86em; background: var(--l-surface); padding: .12em .4em; border-radius: 6px; overflow-wrap: anywhere; }
.dial-updated { margin-top: 2.6rem; padding-top: 1rem; border-top: 1px solid var(--l-line); font-size: .85rem; opacity: .7; }
.dial-address { padding: .9rem 1.1rem; border-left: 3px solid var(--l-line); background: var(--l-surface); border-radius: 0 10px 10px 0; }

.dial-notice {
	margin: 0 0 2rem; padding: 1rem 1.2rem; border-radius: 12px; font-size: .95rem; line-height: 1.55;
	background: var(--l-surface); border: 1px solid var(--l-line); border-left: 4px solid var(--c-accent, #c8ff3d);
}
.dial-fic {
	display: inline-block; vertical-align: baseline; margin-left: .2em; padding: 0 .55em; border-radius: 999px;
	font-size: .72em; font-style: normal; font-weight: 600; letter-spacing: .02em; white-space: nowrap;
	background: color-mix(in srgb, var(--c-accent, #c8ff3d) 26%, transparent); border: 1px solid color-mix(in srgb, var(--c-accent, #c8ff3d) 55%, transparent);
}

.dial-list { list-style: none; margin: 1rem 0; padding: 0; border-top: 1px solid var(--l-line); }
.dial-list li { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--l-line); }
.dial-list li > span:first-child { opacity: .7; font-size: .92rem; }

.dial-table-wrap { overflow-x: auto; margin: 1rem 0 1.4rem; border: 1px solid var(--l-line); border-radius: 12px; }
.dial-table { width: 100%; border-collapse: collapse; font-size: .9rem; line-height: 1.5; }
.dial-table th, .dial-table td { text-align: left; vertical-align: top; padding: .75rem .9rem; border-bottom: 1px solid var(--l-line); }
.dial-table thead th { background: var(--l-surface); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.dial-table tbody tr:last-child td { border-bottom: 0; }

.dial-chip { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: .2em .7em; border-radius: 999px; background: var(--c-accent, #c8ff3d); color: var(--c-accent-ink, #111); }
.dial-chip--opt { background: transparent; color: inherit; border: 1px solid var(--l-line); }
.dial-ok { padding: .8rem 1.1rem; border-radius: 10px; background: var(--l-surface); border: 1px dashed var(--l-line); }

.dial-current-box { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap; margin: 1.2rem 0; padding: 1.1rem 1.3rem; border: 1px solid var(--l-line); border-radius: 14px; background: var(--l-surface); }
.dial-current { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .25rem; font-size: .92rem; }
.dial-current li { display: flex; align-items: center; gap: .5rem; }
.dial-current li::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: var(--l-line); flex: none; }
.dial-current li.is-on::before { background: #2f9e57; }
.dial-current li.is-off::before { background: #c9503c; }

.dial-btn {
	font: inherit; font-weight: 650; font-size: .92rem; cursor: pointer; padding: .7em 1.3em; border-radius: 999px; border: 0;
	background: var(--c-accent, #16181d); color: var(--c-accent-ink, #fff); transition: transform .2s ease, filter .2s ease;
}
.dial-btn:hover { transform: translateY(-2px); filter: brightness(1.07); }

/* Liens de pied de page */
.dial-links { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.1rem; font-size: inherit; }
.dial-links a, .dial-links__btn {
	color: inherit; opacity: .82; text-decoration: none; background: none; border: 0; padding: 0; font: inherit; cursor: pointer;
}
.dial-links a:hover, .dial-links__btn:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.dial-footbar { padding: 16px 20px 22px; text-align: center; font-size: .85rem; }
.dial-footbar .dial-links { justify-content: center; }

@media (max-width: 720px) {
	.dial-list li { grid-template-columns: 1fr; gap: .1rem; }
	.dial-table thead { display: none; }
	.dial-table, .dial-table tbody, .dial-table tr, .dial-table td { display: block; width: 100%; }
	.dial-table tr { padding: .6rem 0; border-bottom: 1px solid var(--l-line); }
	.dial-table tbody tr:last-child { border-bottom: 0; }
	.dial-table td { border: 0; padding: .25rem .9rem; }
	.dial-table td::before { content: attr(data-label); display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; opacity: .6; }
}
