/* ==========================================================================
   Paginile legale: titluri de secțiune, nota „de validat”, placeholdere,
   formularul de retragere și tabelele de cookie-uri. Folosesc .page-card și
   .prose din temă.
   ========================================================================== */

/* Avertizarea „de validat de un jurist” */
.legal-note {
	padding: 14px 18px;
	border-radius: 14px;
	border: 1px solid #EFD98A;
	background: var(--c-amber-soft);
	color: var(--c-amber-ink);
	font-size: 14px;
	line-height: 1.6;
}

.legal-note strong {
	color: inherit;
}

/* Date încă necompletate în Customizer: [ … ] */
.legal-todo {
	padding: 1px 4px;
	border-radius: 4px;
	background: var(--c-amber-soft);
	color: var(--c-amber-ink);
}

/* Formularul de retragere (model) */
.legal-form {
	padding: 22px 24px;
	border-radius: 18px;
	border: 1.5px dashed var(--c-line-strong);
	background: var(--c-latte);
}

.legal-form__title {
	margin: 0;
	font-family: var(--f-head);
	font-size: 20px;
	font-weight: 800;
	color: var(--c-ink);
}

.legal-form__hint {
	margin: 6px 0 14px;
	font-size: 14px;
	color: var(--c-muted);
}

.legal-form__rows {
	margin: 0;
	padding-left: 1.25em;
	color: var(--c-ink);
}

/* Tabelul cookie-urilor */
.legal-table {
	overflow-x: auto;
	border: 1px solid var(--c-line);
	border-radius: 14px;
}

.legal-table table {
	width: 100%;
	min-width: 560px;
	border-collapse: collapse;
	font-size: 14px;
	line-height: 1.5;
}

.legal-table th,
.legal-table td {
	padding: 10px 14px;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid var(--c-line-soft);
}

.legal-table th {
	background: var(--c-latte);
	color: var(--c-ink);
	font-weight: 700;
}

.legal-table tr:last-child td {
	border-bottom: 0;
}

.legal-table code {
	font-size: 13px;
	color: var(--c-ink);
	word-break: break-word;
}

@media (max-width: 760px) {
	.legal-form {
		padding: 18px;
	}

	/* Tabelul devine o listă de carduri: fiecare cookie cu etichetele lui. */
	.legal-table {
		overflow: visible;
	}

	.legal-table table,
	.legal-table tbody,
	.legal-table tr,
	.legal-table td {
		display: block;
		min-width: 0;
	}

	.legal-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
	}

	.legal-table tr {
		padding: 12px 14px;
		border-bottom: 1px solid var(--c-line-soft);
	}

	.legal-table tr:last-child {
		border-bottom: 0;
	}

	.legal-table td {
		display: grid;
		grid-template-columns: 76px minmax(0, 1fr);
		gap: 10px;
		padding: 3px 0;
		border: 0;
	}

	.legal-table td::before {
		content: attr(data-label);
		font-weight: 700;
		color: var(--c-ink);
	}
}
