/* ==========================================================================
   Pagine legali (privacy, cookie, note legali) — layout di lettura.
   ========================================================================== */
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body.legal { background: var(--ivory, #fbf9f5); color: var(--text, #26344d); font-family: var(--font-body, 'Manrope', system-ui, sans-serif); line-height: 1.7; margin: 0; }
.ldoc-top { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line, #e2e7f0); }
.ldoc-top__in { max-width: 1040px; margin: 0 auto; padding: 12px var(--gutter, 24px); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ldoc-top img { height: 52px; width: auto; display: block; }
.ldoc-back { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--navy, #0a2856); text-decoration: none; padding: 10px 16px; border: 1.5px solid var(--navy, #0a2856); border-radius: 999px; white-space: nowrap; }
.ldoc-back:hover { background: var(--navy, #0a2856); color: #fff; }

.ldoc { max-width: 820px; margin: 0 auto; padding: clamp(36px, 6vw, 72px) var(--gutter, 24px) 72px; }
.ldoc__eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--orange-text, #b85400); margin: 0 0 12px; }
.ldoc h1 { font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif); font-weight: 500; font-size: clamp(38px, 6vw, 60px); line-height: 1.05; color: var(--navy, #0a2856); margin: 0 0 14px; }
.ldoc__meta { font-size: 13.5px; color: var(--muted, #5c6b85); margin: 0 0 28px; }
.ldoc__intro { font-size: 17px; line-height: 1.7; margin: 0 0 30px; }

.ltoc { background: #fff; border: 1px solid var(--line, #e2e7f0); border-radius: 16px; padding: 20px 24px; margin: 0 0 40px; }
.ltoc strong { display: block; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--navy, #0a2856); margin-bottom: 10px; }
.ltoc ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 32px; font-size: 14px; line-height: 1.8; }
.ltoc a { color: var(--navy, #0a2856); text-decoration: none; }
.ltoc a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) { .ltoc ol { columns: 1; } }

.ldoc section { margin: 0 0 38px; }
.ldoc h2 { font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif); font-weight: 600; font-size: clamp(25px, 3.4vw, 32px); line-height: 1.15; color: var(--navy, #0a2856); margin: 0 0 12px; padding-top: 8px; }
.ldoc h3 { font-size: 15px; font-weight: 800; color: var(--navy, #0a2856); margin: 22px 0 6px; }
.ldoc p { margin: 0 0 14px; font-size: 15.5px; }
.ldoc ul, .ldoc ol.l { margin: 0 0 16px; padding-left: 22px; font-size: 15.5px; }
.ldoc li { margin: 0 0 6px; }
.ldoc a { color: var(--navy, #0a2856); font-weight: 700; text-underline-offset: 3px; }
.ldoc strong { color: var(--navy, #0a2856); }
.ldoc address { font-style: normal; background: #fff; border-left: 3px solid var(--orange, #f77601); border-radius: 0 12px 12px 0; padding: 16px 20px; margin: 0 0 16px; font-size: 15px; line-height: 1.75; }
.lbox { background: var(--paper, #f4f6fa); border-radius: 14px; padding: 16px 20px; margin: 0 0 16px; font-size: 14.5px; }
.lbox p:last-child { margin-bottom: 0; }

.lscroll { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--line, #e2e7f0); border-radius: 14px; background: #fff; }
.ldoc table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 14px; line-height: 1.55; }
.ldoc th, .ldoc td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line, #e2e7f0); }
.ldoc th { background: var(--paper, #f4f6fa); color: var(--navy, #0a2856); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 800; }
.ldoc tr:last-child td { border-bottom: 0; }
.ldoc code { font: 600 13px/1.4 ui-monospace, Menlo, Consolas, monospace; background: var(--paper, #f4f6fa); padding: 2px 6px; border-radius: 6px; color: var(--navy, #0a2856); }

/* dati ancora da inserire: ben visibili finché non vengono completati */
.todo { background: #fff3a8; color: #5c4a00; padding: 1px 6px; border-radius: 6px; font-weight: 700; }

.ldoc__prefs { display: inline-flex; margin: 4px 0 16px; padding: 14px 24px; border-radius: 999px; border: 0; background: var(--navy, #0a2856); color: #fff; font: 800 12px/1 var(--font-body, 'Manrope', system-ui, sans-serif); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.ldoc__prefs:hover { background: var(--navy-700, #123a75); }

.lfoot { background: var(--navy-900, #061a3d); color: rgba(255,255,255,.78); }
.lfoot__in { max-width: 1040px; margin: 0 auto; padding: 34px var(--gutter, 24px); display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; font-size: 13px; line-height: 1.6; }
.lfoot a, .lfoot button { color: #fff; background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.lfoot__links { display: flex; flex-wrap: wrap; gap: 6px 18px; }

@media print {
  .ldoc-top, .lfoot, .ltoc, .ldoc__prefs, .ck, .ckp { display: none !important; }
  body.legal { background: #fff; }
  .ldoc { max-width: none; padding: 0; }
}
