/* ===================== LEGAL PAGES (Privacy / Cookie) ===================== */
.lg-section {
	background: #ffffff;
	padding: var(--section-space) 0;
}
@media (max-width: 767.98px) { .lg-section { padding: var(--section-space) 0; } }

.lg-container {
	width: 100%;
	max-width: var(--site-max-width);
	margin: 0 auto;
	padding: 0 var(--page-pad-x);
}

/* ---------- HEADER ---------- */
.lg-header {
	max-width: 820px;
	margin: 0 0 3rem;
}
.lg-eyebrow {
	display: inline-block;
	font-size: 0.78rem;
	font-weight: 700;
	color: #1E9BD7;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin-bottom: 1rem;
}
.lg-title {
	font-size: clamp(2rem, 4vw, 3.25rem);
	line-height: 1.08;
	font-weight: 700;
	letter-spacing: -0.04em;
	color: var(--text-dark);
	margin: 0 0 1rem;
}
.lg-subtitle {
	font-size: clamp(0.95rem, 1.15vw, 1.1rem);
	color: #6b7280;
	line-height: 1.6;
	margin: 0 0 1.25rem;
	max-width: 640px;
}
.lg-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 2rem;
	padding-top: 1rem;
	border-top: 1px solid #eef3f8;
}
.lg-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.82rem;
	color: #7a8a9a;
}
.lg-meta-item svg { width: 14px; height: 14px; color: #1E9BD7; }
.lg-meta-item strong { color: var(--text-dark); font-weight: 700; }

/* ---------- LAYOUT 2 COLONNE ---------- */
.lg-layout {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 4rem;
	align-items: start;
}
@media (max-width: 991.98px) {
	.lg-layout { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- TOC ---------- */
.lg-toc {
	position: sticky;
	top: 100px;
	background: #fafbfc;
	border: 1px solid #eef3f8;
	border-radius: 14px;
	padding: 1.5rem 1.25rem;
	align-self: start;
}
@media (max-width: 991.98px) {
	.lg-toc { position: static; }
}

.lg-toc-title {
	font-size: 0.75rem;
	font-weight: 800;
	color: #9ca3af;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin: 0 0 1rem;
}
.lg-toc-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	counter-reset: toc;
}
.lg-toc-list a {
	display: block;
	font-size: 0.85rem;
	color: #6b7280;
	text-decoration: none;
	line-height: 1.4;
	padding: 4px 0;
	transition: color .2s ease, padding-left .2s ease;
	border-left: 2px solid transparent;
	padding-left: 0;
}
.lg-toc-list a:hover {
	color: #1E9BD7;
	padding-left: 8px;
	border-left-color: #1E9BD7;
}
@media (max-width: 991.98px) {
	.lg-toc-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.4rem 1rem; }
}
@media (max-width: 575.98px) {
	.lg-toc-list { grid-template-columns: 1fr; }
}

/* ---------- CONTENUTO ---------- */
.lg-content {
	min-width: 0;
	max-width: 820px;
}
.lg-content > * + * { margin-top: 1.75rem; }

/* Callout */
.lg-callout {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 1rem 1.25rem;
	background: #f0f9ff;
	border: 1px solid #bae6fd;
	border-radius: 12px;
	font-size: 0.9rem;
	color: #0c4a6e;
	line-height: 1.55;
}
.lg-callout svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	margin-top: 2px;
	color: #0284c7;
}
.lg-callout p { margin: 0; }
.lg-callout a { color: #0284c7; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.lg-callout a:hover { color: #075985; }

/* Blocchi */
.lg-block h2 {
	font-size: clamp(1.25rem, 2vw, 1.65rem);
	font-weight: 700;
	color: var(--text-dark);
	letter-spacing: -0.025em;
	line-height: 1.25;
	margin: 0 0 1rem;
	padding-top: 0.5rem;
	scroll-margin-top: 100px;
}
.lg-block h3 {
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--text-dark);
	letter-spacing: -0.015em;
	line-height: 1.3;
	margin: 1.5rem 0 0.75rem;
}
.lg-block p {
	font-size: 0.95rem;
	color: #4a5b6c;
	line-height: 1.7;
	margin: 0 0 1rem;
}
.lg-block p:last-child { margin-bottom: 0; }
.lg-block a {
	color: #1E9BD7;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: color .2s ease;
}
.lg-block a:hover { color: #0A6FA8; }

/* Liste */
.lg-list {
	list-style: none;
	padding: 0;
	margin: 0 0 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}
.lg-list li {
	position: relative;
	padding-left: 22px;
	font-size: 0.93rem;
	color: #4a5b6c;
	line-height: 1.6;
}
.lg-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 9px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #1E9BD7;
}
.lg-list strong { color: var(--text-dark); font-weight: 700; }

/* Liste con link esterni */
.lg-list-external li::before {
	background: transparent;
	width: 14px;
	height: 14px;
	top: 5px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E9BD7' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M9 7h8v8'/%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
	border-radius: 0;
}

/* Card */
.lg-card {
	background: #fafbfc;
	border: 1px solid #eef3f8;
	border-radius: 12px;
	padding: 1.25rem 1.5rem;
	margin: 1rem 0;
}
.lg-card-line {
	font-size: 0.92rem;
	color: #4a5b6c;
	margin: 0 0 0.4rem;
	line-height: 1.5;
}
.lg-card-line:last-child { margin-bottom: 0; }
.lg-card-line strong { color: var(--text-dark); }

.lg-card-accent {
	background: linear-gradient(135deg, #f0f9ff 0%, #ecfdf5 100%);
	border-color: #bae6fd;
}
.lg-card-accent .lg-card-title {
	font-size: 0.95rem;
	font-weight: 800;
	color: var(--text-dark);
	margin: 0 0 0.6rem;
	letter-spacing: -0.015em;
}

/* Tabella */
.lg-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border: 1px solid #eef3f8;
	border-radius: 12px;
	margin: 1rem 0;
}
.lg-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.88rem;
	min-width: 520px;
}
.lg-table thead {
	background: #f7fafd;
}
.lg-table th {
	text-align: left;
	padding: 12px 16px;
	font-size: 0.72rem;
	font-weight: 800;
	color: #6b7280;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	border-bottom: 1px solid #eef3f8;
	white-space: nowrap;
}
.lg-table td {
	padding: 12px 16px;
	color: #4a5b6c;
	line-height: 1.5;
	border-bottom: 1px solid #f2f4f6;
	vertical-align: top;
}
.lg-table tbody tr:last-child td { border-bottom: none; }
.lg-table tbody tr:hover { background: #fafbfc; }
.lg-table em { color: #7a8a9a; font-style: normal; font-size: 0.82rem; }
.lg-table code {
	font-family: var(--font-body);
	font-size: 0.82rem;
	background: #f0f4f8;
	color: #0c4a6e;
	padding: 2px 6px;
	border-radius: 4px;
	white-space: nowrap;
}

/* Tag colorati nella tabella cookie */
.lg-tag {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	white-space: nowrap;
}
.lg-tag-necessary {
	background: #ecfdf5;
	color: #047857;
	border: 1px solid #a7f3d0;
}
.lg-tag-analytics {
	background: #eef6fd;
	color: #0A6FA8;
	border: 1px solid #bae6fd;
}
.lg-tag-marketing {
	background: #fef2f2;
	color: #b91c1c;
	border: 1px solid #fecaca;
}

/* Nota a piè di sezione */
.lg-note {
	font-size: 0.82rem;
	color: #7a8a9a;
	font-style: italic;
	line-height: 1.55;
	margin-top: 1rem;
	padding: 0.75rem 1rem;
	background: #fafbfc;
	border-left: 3px solid #1E9BD7;
	border-radius: 4px;
}

/* Highlight */
.lg-highlight {
	font-size: 0.9rem;
	color: #0c4a6e;
	background: #f0f9ff;
	padding: 0.9rem 1.1rem;
	border-radius: 8px;
	border-left: 3px solid #0284c7;
	margin: 1rem 0;
	line-height: 1.55;
}

/* ---------- COOKIE TYPES GRID ---------- */
.lg-cookie-types {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
	margin: 1.5rem 0;
}
@media (max-width: 767.98px) {
	.lg-cookie-types { grid-template-columns: 1fr; }
}

.lg-cookie-type {
	background: #ffffff;
	border: 1px solid #eef3f8;
	border-radius: 12px;
	padding: 1.25rem;
	transition: border-color .25s ease, box-shadow .25s ease;
}
.lg-cookie-type:hover {
	border-color: #d5e4f0;
	box-shadow: 0 8px 22px rgba(30, 60, 90, 0.06);
}

.lg-cookie-necessary {
	background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
	border-color: #a7f3d0;
}

.lg-cookie-head {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 0.75rem;
}
.lg-cookie-head h3 {
	font-size: 1rem;
	font-weight: 800;
	color: var(--text-dark);
	margin: 0;
	letter-spacing: -0.015em;
}

.lg-cookie-badge {
	display: inline-block;
	padding: 3px 10px;
	background: #047857;
	color: #ffffff;
	border-radius: 999px;
	font-size: 0.65rem;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	align-self: flex-start;
}
.lg-cookie-badge-opt {
	background: #f0f4f8;
	color: #6b7280;
}

.lg-cookie-type p {
	font-size: 0.85rem;
	color: #5a6675;
	line-height: 1.55;
	margin: 0 0 0.6rem;
}
.lg-cookie-type p:last-child { margin-bottom: 0; }
.lg-cookie-examples {
	font-size: 0.78rem !important;
	color: #7a8a9a !important;
	padding-top: 0.5rem;
	border-top: 1px solid #f2f4f6;
}
.lg-cookie-examples strong { color: #4a5b6c; }

/* ---------- AZIONI PREFERENZE ---------- */
.lg-preferences-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 1.5rem 0;
}

/* ---------- BOTTONI ---------- */
.lg-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 0.9rem 1.6rem;
	border-radius: 12px;
	font-weight: 700;
	font-size: 0.92rem;
	text-decoration: none;
	border: none;
	cursor: pointer;
	transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.lg-btn svg { width: 14px; height: 14px; transition: transform .3s ease; }
.lg-btn:hover svg { transform: translateX(4px); }

.lg-btn {
	background: linear-gradient(135deg, #00D4FF 0%, #1E9BD7 60%, #0A4F8F 100%);
	color: #ffffff;
	box-shadow: 0 10px 24px rgba(30, 155, 215, 0.35);
}
.lg-btn:hover {
	color: #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 16px 34px rgba(30, 155, 215, 0.5);
	filter: brightness(1.05);
}

.lg-btn-secondary {
	background: #ffffff;
	color: var(--text-dark);
	border: 1.5px solid #d0d8e2;
	box-shadow: none;
}
.lg-btn-secondary:hover {
	background: #f5f7f9;
	border-color: #1E9BD7;
	color: #1E9BD7;
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(30, 155, 215, 0.15);
}

/* ---------- CTA FINALE ---------- */
.lg-footer-cta {
	margin-top: 3rem;
	padding: 2rem;
	background: linear-gradient(135deg, #f7fbfe 0%, #eef7ee 100%);
	border: 1px solid #eef3f8;
	border-radius: 16px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
}
.lg-footer-cta p {
	font-size: 1rem;
	color: #4a5b6c;
	margin: 0;
	font-weight: 600;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 575.98px) {
	.lg-meta { flex-direction: column; gap: 0.5rem; }
	.lg-btn { width: 100%; justify-content: center; }
	.lg-card { padding: 1rem 1.15rem; }
	.lg-table th,
	.lg-table td { padding: 10px 12px; font-size: 0.83rem; }
	.lg-cookie-type { padding: 1rem 1.1rem; }
	.lg-footer-cta { padding: 1.5rem 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
	.lg-toc-list a,
	.lg-btn,
	.lg-cookie-type { transition: none !important; }
}