:root {
  --legal-red: #c8102e;
  --legal-ink: #191919;
  --legal-muted: #5c5b59;
  --legal-line: #dedbd7;
  --legal-soft: #f5f2ed;
}

body.legal-page {
  margin: 0;
  color: var(--legal-ink);
  background: #fff;
  font-family: "Merriweather Sans", Arial, sans-serif;
}

.legal-page .site-header {
  position: relative;
}

.legal-page .legal-main {
  min-height: 70vh;
  padding: 86px 0 110px;
}

.legal-page .legal-shell {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

.legal-page .legal-hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--legal-line);
}

.legal-page .legal-eyebrow {
  margin: 0 0 16px;
  color: var(--legal-red);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.legal-page h1,
.legal-page h2 {
  font-family: Merriweather, Georgia, serif;
  font-weight: 400;
  letter-spacing: -.04em;
}

.legal-page h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: .98;
}

.legal-page .legal-lead {
  max-width: 760px;
  margin: 26px 0 0;
  color: var(--legal-muted);
  font-size: 17px;
  line-height: 1.75;
}

.legal-page .legal-updated {
  margin-top: 22px;
  color: var(--legal-muted);
  font-size: 13px;
}

.legal-page .legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 230px) minmax(0, 720px);
  justify-content: space-between;
  gap: 64px;
  padding-top: 56px;
}

.legal-page .legal-index {
  align-self: start;
  position: sticky;
  top: 28px;
  padding: 22px;
  border: 1px solid var(--legal-line);
  border-radius: 16px;
  background: var(--legal-soft);
}

.legal-page .legal-index strong {
  display: block;
  margin-bottom: 13px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.legal-page .legal-index a {
  display: block;
  padding: 7px 0;
  color: var(--legal-muted);
  font-size: 13px;
  text-decoration: none;
}

.legal-page .legal-index a:hover {
  color: var(--legal-red);
}

.legal-page .legal-content section {
  scroll-margin-top: 24px;
  padding: 0 0 42px;
}

.legal-page .legal-content h2 {
  margin: 0 0 18px;
  font-size: clamp(27px, 4vw, 38px);
  line-height: 1.1;
}

.legal-page .legal-content h3 {
  margin: 27px 0 10px;
  font-size: 17px;
}

.legal-page .legal-content p,
.legal-page .legal-content li {
  color: #3f3e3c;
  font-size: 15px;
  line-height: 1.78;
}

.legal-page .legal-content ul {
  margin: 14px 0 0;
  padding-left: 22px;
}

.legal-page .legal-content a {
  color: var(--legal-red);
}

.legal-page .legal-card {
  margin: 18px 0;
  padding: 22px;
  border: 1px solid var(--legal-line);
  border-radius: 16px;
  background: var(--legal-soft);
}

.legal-page .legal-card p:first-child {
  margin-top: 0;
}

.legal-page .legal-card p:last-child {
  margin-bottom: 0;
}

.legal-page .legal-table-wrap {
  margin: 18px 0;
  overflow-x: auto;
  border: 1px solid var(--legal-line);
  border-radius: 14px;
}

.legal-page table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.legal-page th,
.legal-page td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--legal-line);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
  line-height: 1.55;
}

.legal-page th {
  background: var(--legal-soft);
  font-weight: 700;
}

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

.legal-page .legal-note {
  padding-left: 18px;
  border-left: 3px solid var(--legal-red);
}

.legal-page .legal-top {
  display: inline-flex;
  margin-top: 12px;
  color: var(--legal-red);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 780px) {
  .legal-page .legal-main { padding-top: 36px; }
  .legal-page .legal-hero { padding-top: 38px; }
  .legal-page .legal-layout { grid-template-columns: 1fr; gap: 38px; }
  .legal-page .legal-index { position: static; }
  .legal-page .desktop-nav,
  .legal-page .header-section-link { display: none; }
  .legal-page .header-cta { display: inline-flex; }
  .legal-page .mobile-menu { display: none; }
}


/* JEVE: mantiene visibile la barra di scorrimento nelle pagine legali */
html:has(body.legal-page),body.legal-page{
  scrollbar-width:auto!important;
  -ms-overflow-style:auto!important;
}
html:has(body.legal-page)::-webkit-scrollbar,
body.legal-page::-webkit-scrollbar{
  display:block!important;
  width:12px!important;
  height:12px!important;
}
html:has(body.legal-page)::-webkit-scrollbar-thumb,
body.legal-page::-webkit-scrollbar-thumb{
  border:3px solid #fff;
  border-radius:999px;
  background:#b8b8b8;
}
html:has(body.legal-page)::-webkit-scrollbar-track,
body.legal-page::-webkit-scrollbar-track{
  background:#fff;
}
