.legal-page {
    color: #1f2937;
}

.legal-page h1 {
    color: #111827;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.08;
}

.legal-page h2 {
    color: #111827;
    font-size: 1.4rem;
    font-weight: 750;
    margin-top: 2.5rem;
    margin-bottom: .8rem;
}

.legal-page h3 {
    color: #111827;
    font-size: 1.05rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: .5rem;
}

.legal-page p,
.legal-page li {
    line-height: 1.75;
}

.legal-page p,
.legal-page ul,
.legal-page ol,
.legal-page table {
    margin-bottom: 1rem;
}

.legal-page ul,
.legal-page ol {
    padding-left: 1.5rem;
}

.legal-page ul { list-style: disc; }
.legal-page ol { list-style: decimal; }

.legal-page a {
    color: #4f46e5;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-table {
    border-collapse: collapse;
    width: 100%;
}

.legal-table th,
.legal-table td {
    border: 1px solid #e5e7eb;
    padding: .75rem;
    text-align: left;
    vertical-align: top;
}

.legal-table th { background: #f9fafb; }

.legal-note {
    background: #eef2ff;
    border-left: 4px solid #4f46e5;
    border-radius: .5rem;
    padding: 1rem;
}

#cookie-consent-banner {
    background: #111827;
    bottom: 1rem;
    box-shadow: 0 20px 45px rgba(0, 0, 0, .28);
    color: white;
    left: 50%;
    max-height: calc(100vh - 2rem);
    max-width: 56rem;
    overflow-y: auto;
    padding: 1.25rem;
    position: fixed;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    z-index: 9999;
}

#cookie-consent-banner button {
    appearance: none;
    border: 0;
    border-radius: .65rem;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    padding: .7rem 1rem;
}

.cookie-primary { background: #6366f1; color: white; }
.cookie-secondary { background: white; color: #111827; }
.cookie-ghost { border: 1px solid #6b7280; color: white; }

/* Italian legal pages — consolidated MenuXS design system. Scoped so the
   other locales retain their current presentation until translated. */
.mx-legal-brand {
    margin: 0;
    background: var(--mx-cream);
    color: var(--mx-text-body);
    font-family: var(--mx-font-ui);
    -webkit-font-smoothing: antialiased;
}

.mx-legal-brand > nav {
    background: rgba(251, 246, 238, .96);
    border-bottom: 1px solid var(--mx-line);
}

.mx-legal-brand > nav > div {
    width: min(1180px, 100%);
    max-width: none;
    min-height: 76px;
    margin-inline: auto;
    padding-inline: var(--mx-gutter);
}

.mx-legal-brand > nav img { width: auto; height: 34px; }

.mx-legal-brand > nav a:last-child {
    color: var(--mx-terracotta);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.mx-legal-brand > nav a:last-child:hover { color: var(--mx-terracotta-dark); }

.mx-legal-brand .legal-page {
    width: min(960px, 100%);
    max-width: none;
    padding: 72px var(--mx-gutter) 96px;
    color: var(--mx-text-body);
}

.mx-legal-brand .legal-page > p:first-child {
    margin: 0 0 16px;
    color: var(--mx-terracotta);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.mx-legal-brand .legal-page h1 {
    margin: 0;
    color: var(--mx-ink);
    font-family: var(--mx-font-ui);
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 700;
    letter-spacing: -.045em;
    line-height: .98;
}

.mx-legal-brand .legal-page h1 + p {
    max-width: 780px;
    margin: 28px 0 0;
    color: var(--mx-text-muted);
    font-size: clamp(18px, 2vw, 21px);
    line-height: 1.6;
}

.mx-legal-brand .legal-page h2 {
    margin: 56px 0 16px;
    padding-top: 22px;
    border-top: 1px solid var(--mx-line);
    color: var(--mx-ink);
    font-family: var(--mx-font-ui);
    font-size: clamp(27px, 3vw, 36px);
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1.15;
}

.mx-legal-brand .legal-page h3 {
    margin: 32px 0 10px;
    color: var(--mx-ink);
    font-size: 20px;
    font-weight: 700;
}

.mx-legal-brand .legal-page p,
.mx-legal-brand .legal-page li {
    color: var(--mx-text-body);
    font-size: 16.5px;
    line-height: 1.75;
}

.mx-legal-brand .legal-page a {
    color: var(--mx-terracotta);
    text-decoration-color: rgba(216, 69, 43, .35);
    text-underline-offset: 3px;
}

.mx-legal-brand .legal-page a:hover { color: var(--mx-terracotta-dark); }

.mx-legal-brand .legal-note {
    margin-top: 32px;
    padding: 22px 24px;
    background: var(--mx-sand);
    border: 1px solid var(--mx-line);
    border-radius: var(--mx-radius-card);
    color: var(--mx-text-strong);
}

.mx-legal-brand .legal-note::before {
    content: attr(data-summary-label);
    display: table;
    margin: -4px 0 14px;
    padding: 6px 11px;
    background: var(--mx-ochre);
    border-radius: var(--mx-pill);
    color: var(--mx-ink);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.mx-legal-brand .legal-table {
    margin: 24px 0 32px;
    background: var(--mx-paper);
    border: 1px solid var(--mx-line);
    border-radius: var(--mx-radius-inner);
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}

.mx-legal-brand .legal-table th,
.mx-legal-brand .legal-table td {
    padding: 15px 16px;
    border: 0;
    border-right: 1px solid var(--mx-line-soft);
    border-bottom: 1px solid var(--mx-line-soft);
    color: var(--mx-text-body);
    font-size: 14.5px;
    line-height: 1.55;
}

.mx-legal-brand .legal-table th {
    background: var(--mx-sand);
    color: var(--mx-ink);
    font-weight: 700;
}

.mx-legal-brand .legal-table tr:last-child td { border-bottom: 0; }
.mx-legal-brand .legal-table th:last-child,
.mx-legal-brand .legal-table td:last-child { border-right: 0; }

.mx-legal-brand code {
    padding: 2px 5px;
    border-radius: 5px;
    background: var(--mx-sand);
    color: var(--mx-ink);
    font-size: .9em;
}

.mx-legal-brand button[data-cookie-preferences] {
    padding: 12px 20px;
    background: var(--mx-terracotta);
    border: 0;
    border-radius: var(--mx-pill);
    color: #fff;
    font-family: var(--mx-font-ui);
    font-weight: 700;
    cursor: pointer;
}

.mx-legal-brand button[data-cookie-preferences]:hover { background: var(--mx-terracotta-dark); }

.mx-legal-brand > footer {
    padding: 42px var(--mx-gutter);
    background: var(--mx-ink);
    color: var(--mx-on-dark-body);
}

.mx-legal-brand > footer > div {
    width: min(960px, 100%);
    max-width: none;
    margin-inline: auto;
}

.mx-legal-brand > footer p { margin: 0; color: var(--mx-on-dark-body); }
.mx-legal-brand > footer a {
    color: #fff !important;
    -webkit-text-fill-color: #fff;
    font-weight: 600;
    text-decoration: none;
}
.mx-legal-brand > footer a:hover { color: var(--mx-ochre) !important; -webkit-text-fill-color: var(--mx-ochre); }

/* The consent manager is shared by marketing and legal pages. Keep its brand
   treatment scoped to the common .mx root, not to a specific page template. */
.mx #cookie-consent-banner {
    background: var(--mx-ink);
    border: 1px solid var(--mx-line-on-dark);
    border-radius: var(--mx-radius-card);
    box-shadow: none;
    color: var(--mx-on-dark);
    font-family: var(--mx-font-ui);
}

.mx #cookie-consent-banner .cookie-primary { background: var(--mx-terracotta); color: #fff; }
.mx #cookie-consent-banner .cookie-secondary { background: var(--mx-cream); color: var(--mx-ink); }
.mx #cookie-consent-banner .cookie-ghost {
    background: transparent;
    border: 1px solid var(--mx-line-on-dark);
    color: var(--mx-on-dark);
}

@media (max-width: 720px) {
    .mx-legal-brand .legal-page { padding-top: 52px; padding-bottom: 72px; }
    .mx-legal-brand .legal-page h2 { margin-top: 44px; }
    .mx-legal-brand .legal-table { display: block; overflow-x: auto; }
    .mx-legal-brand > footer > div { align-items: flex-start; flex-direction: column; }
}
