/* Legal and company-data pages (inc/document.php). Stefano 2026-11-10.
   cj-doc--paper:   policies and notices. H1 on pink, the text on a white sheet (paper exception, base.css §2).
   cj-doc--imprint: /imprint/ on pink, the /contatti direct-lines pattern (content: staging/tools/imprint-rebuild.php).
   WordPress constrained layout centres children with margin-inline auto !important: set only margin-block on children. */

/* ---------- 1. Paper: the sheet ---------- */
body.cj-doc--paper .entry-content {
	width: var(--cj-doc-sheet); /* the title above sits on this edge (base.css) */
	max-width: none;
	margin: 0 auto clamp(3rem, 9vh, 6rem);
	padding: clamp(1.5rem, 5vw, 4rem);
	border-radius: 4px;
	background: var(--cj-white);
	color: var(--cj-anthracite);
	box-shadow: 0 30px 60px -30px rgba(80, 0, 35, 0.6);
	--theme-text-color: var(--cj-anthracite);
	--theme-heading-color: var(--cj-anthracite);
	--theme-link-initial-color: var(--cj-pink-20);
	--theme-link-hover-color: var(--cj-pink-40);
	--theme-block-max-width: 100%;
}
body.cj-doc--paper .entry-content > * { max-width: 100%; }

/* Reading type: 17px regular, 66–72ch lines. */
body.cj-doc--paper .entry-content :is(p, li, td, th, dd, summary p) {
	font-size: 1.0625rem;
	font-weight: 400;
	line-height: 1.65;
	color: var(--cj-anthracite);
	text-align: left;
}
body.cj-doc--paper .entry-content > p:first-child { font-size: 1.1875rem; color: var(--cj-slate); } /* "Ultimo aggiornamento" / opening line */
body.cj-doc--paper .entry-content :is(strong, b) { font-weight: 600; }

body.cj-doc--paper .entry-content :is(h2, h3, h4, h5) {
	color: var(--cj-anthracite);
	text-align: left;
	text-transform: none;
	letter-spacing: -0.01em;
}
body.cj-doc--paper .entry-content h2 {
	margin-block: 2.75rem 1rem;
	padding-top: 1.5rem;
	border-top: 1px solid #dfe1e5;
	font-size: clamp(1.375rem, 1.1rem + 0.8vw, 1.75rem);
	font-weight: 700;
	line-height: 1.2;
}
body.cj-doc--paper .entry-content > h2:first-child,
body.cj-doc--paper .entry-content > :first-child h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
body.cj-doc--paper .entry-content h3 { margin-block: 2rem 0.6rem; font-size: 1.1875rem; font-weight: 700; line-height: 1.3; }
/* h4/h5: spaced-caps labels, as on /contatti (small print: bold). */
body.cj-doc--paper .entry-content :is(h4, h5) {
	margin-block: 1.5rem 0.4rem;
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--cj-slate);
}

body.cj-doc--paper .entry-content a {
	color: var(--cj-pink-20);
	font-weight: 500;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
	overflow-wrap: anywhere;
}
body.cj-doc--paper .entry-content a:is(:hover, :focus-visible) { color: var(--cj-pink-40); text-decoration-thickness: 2px; }
body.cj-doc--paper .entry-content a:focus-visible { outline: 2px solid var(--cj-pink-20); outline-offset: 2px; }

body.cj-doc--paper .entry-content :is(ul, ol) { padding-left: 1.25rem; }
body.cj-doc--paper .entry-content li { margin-block: 0.35rem; }
body.cj-doc--paper .entry-content li::marker { color: var(--cj-pink-20); }
body.cj-doc--paper .entry-content hr { margin-block: 2.5rem; border: 0; border-top: 1px solid #dfe1e5; }

/* Tables (privacy-email, Complianz cookie lists): hairlines, surface header, scroll on phones. */
body.cj-doc--paper .entry-content figure.wp-block-table { overflow-x: auto; }
body.cj-doc--paper .entry-content table { width: 100%; border-collapse: collapse; border: 0; }
body.cj-doc--paper .entry-content :is(th, td) {
	padding: 0.6rem 0.75rem;
	border: 0;
	border-bottom: 1px solid #dfe1e5;
	font-size: 0.9375rem;
	vertical-align: top;
}
body.cj-doc--paper .entry-content :is(th, thead td) { background: var(--cj-surface); font-weight: 700; }

/* ---------- 2. Paper: Complianz documents (cookie policy, terms) ---------- */
/* Service accordions ("Cookie inseriti") and the consent categories ("Gestisci le tue impostazioni"):
   the plugin paints them pale pink with white type. Neutral rows on the sheet instead. */
body.cj-doc--paper :is(#cmplz-document, .cmplz-document) { max-width: none; font-size: inherit; }
body.cj-doc--paper .entry-content details:is(.cmplz-dropdown, .cmplz-category) {
	margin: 0 0 0.5rem;
	border: 1px solid #dfe1e5;
	border-radius: 4px;
	background: var(--cj-white);
}
body.cj-doc--paper .entry-content details:is(.cmplz-dropdown, .cmplz-category) > summary {
	padding: 0.75rem 1rem;
	background: var(--cj-surface);
	color: var(--cj-anthracite);
	cursor: pointer;
}
body.cj-doc--paper .entry-content details[open]:is(.cmplz-dropdown, .cmplz-category) > summary { border-bottom: 1px solid #dfe1e5; }
body.cj-doc--paper .entry-content details:is(.cmplz-dropdown, .cmplz-category) > summary :is(h3, p, span, .cmplz-category-title) {
	margin: 0;
	font-size: 1rem;
	color: var(--cj-anthracite);
}
body.cj-doc--paper .entry-content details:is(.cmplz-dropdown, .cmplz-category) > summary p { font-size: 0.875rem; font-weight: 600; color: var(--cj-slate); }
body.cj-doc--paper .entry-content details:is(.cmplz-dropdown, .cmplz-category) > :not(summary) { padding: 0.25rem 1rem 0.75rem; }
body.cj-doc--paper .entry-content details :is(.cmplz-always-active) { color: var(--cj-pink-20); font-weight: 700; }
body.cj-doc--paper .entry-content .cmplz-icon svg,
body.cj-doc--paper .entry-content summary svg { fill: var(--cj-anthracite); }

/* ---------- 3. Imprint (on pink) ---------- */
body.cj-doc--imprint #main .entry-content { display: block; max-width: none; margin: 0; }
.cj-doc--imprint .entry-content > * { max-width: none; }

/* .cj-imp-intro padding: base.css page box. */
.cj-doc--imprint .entry-content .cj-imp-eyebrow {
	margin-block: 0 0.75rem;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}
.cj-doc--imprint .entry-content .cj-imp-lede {
	/* Legal pages carry no lede (Stefano 2026-11-12): the intro is running copy, at the large-type rule size. */
	max-width: 60ch;
	margin-block: 0;
	font-size: clamp(1.125rem, 1.02rem + 0.45vw, 1.375rem);
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: 0;
}

.cj-doc--imprint .entry-content .cj-imp-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(2rem, 5vw, 5rem);
	align-items: start;
	padding-bottom: clamp(3rem, 9vh, 6rem);
}
@media (max-width: 899px) {
	.cj-doc--imprint .entry-content .cj-imp-grid { grid-template-columns: minmax(0, 1fr); }
}
.cj-doc--imprint .entry-content .cj-imp-grid > * { margin-block: 0; }
.cj-doc--imprint .entry-content .cj-imp-section > * { margin-block: 0; }

.cj-doc--imprint .entry-content .cj-imp-section h2 {
	margin-block: 0 1rem;
	font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
	font-weight: 700;
	line-height: 1.1;
	text-align: left;
	text-transform: none;
}
.cj-doc--imprint .entry-content .cj-imp-line {
	padding: 0.9rem 0;
	border-top: 1px solid rgba(255, 255, 255, 0.55);
	font-size: 1.25rem;
	font-weight: 500;
	line-height: 1.35;
	overflow-wrap: anywhere;
}
.cj-doc--imprint .entry-content .cj-imp-line:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.55); }
.cj-doc--imprint .entry-content .cj-imp-label {
	display: block;
	margin-bottom: 0.2rem;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}
.cj-doc--imprint .entry-content .cj-imp-line a {
	color: inherit;
	font-weight: 600;
	text-decoration: none;
	border-bottom: 2px solid currentColor;
}
.cj-doc--imprint .entry-content .cj-imp-line a:is(:hover, :focus-visible) { border-bottom-color: transparent; }
.cj-doc--imprint .entry-content .cj-imp-line a:focus-visible { outline: 2px solid var(--cj-white); outline-offset: 3px; }
/* Long numbers read better in tabular figures. */
.cj-doc--imprint .entry-content .cj-imp-line { font-variant-numeric: tabular-nums; }
