/* MeTeOra · pagine legali (privacy.html, cookie.html)
   Si carica DOPO styles.css: ne riusa font, variabili e .wrap.
   Tutte le regole sono confinate in .lg-* per non interferire con la landing. */

.lg-body { background: var(--bg); }

/* header */
.lg-head {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.lg-head .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 76px;
}
.lg-brand { display: flex; flex-shrink: 0; }
.lg-brand img { width: 235px; height: 47px; }
.lg-back {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-size: 15px; font-weight: 600; color: var(--accent); text-decoration: none;
}
.lg-back:hover { color: var(--accent-press); text-decoration: underline; text-underline-offset: 3px; }

/* colonna di testo */
.lg-main { padding-block: clamp(40px, 7vw, 96px) clamp(56px, 8vw, 120px); }
.lg-doc { max-width: 70ch; margin-inline: auto; }
.lg-doc > * + * { margin-top: 1em; }

.lg-eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.lg-doc h1 {
  margin-top: .3em;
  font-size: clamp(34px, 5.2vw, 60px);
  line-height: 1.04;
}
.lg-updated { color: var(--ink-2); font-size: 15px; }
.lg-lead { font-size: 1.08em; color: var(--ink-2); }

.lg-doc h2 {
  margin-top: 2.4em;
  padding-top: .9em;
  border-top: 1px solid var(--line);
  font-size: clamp(24px, 2.6vw, 32px);
  letter-spacing: -.02em;
  line-height: 1.15;
  scroll-margin-top: 24px;
}
.lg-doc h3 {
  margin-top: 1.8em;
  font-size: clamp(18px, 1.4vw, 21px);
  line-height: 1.25;
  scroll-margin-top: 24px;
}
.lg-doc h2 + *, .lg-doc h3 + * { margin-top: .7em; }

.lg-doc p, .lg-doc li { color: var(--ink); }
.lg-doc strong { font-weight: 700; }

/* elenchi: styles.css li azzera, qui li ripristiniamo */
.lg-doc ul, .lg-doc ol { padding-left: 1.3em; }
.lg-doc ul { list-style: disc; }
.lg-doc ol { list-style: decimal; }
.lg-doc li + li { margin-top: .45em; }
.lg-doc li::marker { color: var(--accent); }

/* link */
.lg-doc a, .lg-foot a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.lg-doc a:hover, .lg-foot a:hover { color: var(--accent-press); text-decoration-thickness: 2px; }

/* indice */
.lg-toc {
  margin-top: 2em;
  padding: clamp(20px, 3vw, 32px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}
.lg-toc h2 {
  margin: 0; padding: 0; border: 0;
  font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2);
}
.lg-toc ol { margin-top: .9em; padding-left: 1.5em; }
.lg-toc li + li { margin-top: .35em; }
.lg-toc a { text-decoration: none; }
.lg-toc a:hover { text-decoration: underline; }

/* riquadri informativi */
.lg-note {
  padding: 18px 22px;
  background: var(--accent-tint);
  border-radius: 14px;
}
.lg-card {
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.lg-card p + p { margin-top: .4em; }

/* segnaposto da compilare */
.tbc {
  background: #FFF1B8;
  color: #5A4300;
  padding: 0 .3em;
  border-radius: 4px;
  font-weight: 600;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* tabelle: lo scroll orizzontale resta dentro il contenitore */
.lg-table {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.lg-table:focus-visible { outline-offset: 2px; }
.lg-table table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.45;
}
.lg-table caption {
  caption-side: top;
  text-align: left;
  padding: 14px 16px 10px;
  font-weight: 700;
  color: var(--ink);
}
.lg-table th, .lg-table td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--line);
}
.lg-table thead th {
  background: var(--accent-tint);
  font-weight: 700;
  white-space: nowrap;
}
.lg-table tbody th { font-weight: 700; }
.lg-table code { white-space: nowrap; }
.lg-table-hint { font-size: 14px; color: var(--ink-2); }
@media (min-width: 761px) { .lg-table-hint { display: none; } }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9em;
  background: rgba(20, 24, 54, .06);
  padding: .1em .35em;
  border-radius: 4px;
}

/* footer */
.lg-foot {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding-block: 36px 44px;
  font-size: 15px;
  color: var(--ink-2);
}
.lg-foot .wrap { display: grid; gap: 14px; }
.lg-foot strong { color: var(--ink); }
.lg-foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }

@media (max-width: 760px) {
  .lg-head .wrap { min-height: 60px; }
  .lg-brand img { width: 160px; height: 32px; }
  .lg-back { font-size: 14px; }
}

@media print {
  .lg-head, .lg-toc, .lg-foot nav { display: none; }
  .lg-body { background: #fff; }
  .lg-table { overflow: visible; border: 0; }
  .lg-table table { min-width: 0; }
  .lg-doc a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; color: #555; }
}
