/* Public reading pages (Contatti, Condizioni, Privacy, Guida) in the light language of the redesign, chosen by the
   owner on 1 November 2026: phone first (T1b, R2, U2), then the computer versions (Contatti D1 centred column,
   Condizioni/Privacy and Guida D2 two columns with the heading and index or button always in view). Loaded after
   styles.css, brand.css and site-chrome.css; the outer spacing stays the generated public-content-spacing block. */
body.legal-body { background: #fff; }
.legal-body .legal-main { color: #2b3a4d; }
.legal-main .page-kicker { display: block; margin-bottom: 14px; color: var(--brand-focus); font-size: 13px; font-weight: 800; line-height: 1.4; letter-spacing: .05em; text-transform: uppercase; }
.legal-main h1 { margin: 0; color: var(--brand-night); font-size: 36px; line-height: 1.06; letter-spacing: -.035em; }
.legal-main h1 .page-mark { position: relative; display: inline-block; color: var(--brand-accent); white-space: nowrap; }
.legal-main .page-swoosh { position: absolute; left: -2%; bottom: -.1em; width: 104%; height: .28em; overflow: visible; fill: none; stroke: var(--brand-accent); stroke-width: 5; stroke-linecap: round; }
.legal-main .page-swoosh path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: page-draw 800ms cubic-bezier(.65, 0, .35, 1) 500ms forwards; }
@keyframes page-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .legal-main .page-swoosh path { stroke-dashoffset: 0; animation: none; } }
.legal-main .legal-lead { margin: 14px 0 0; color: #4a5a6e; font-size: 16.5px; line-height: 1.55; }
.legal-main p { color: #2b3a4d; font-size: 15.5px; line-height: 1.65; }
.legal-main a { color: #8a5a00; text-decoration: underline; text-underline-offset: 3px; }
.legal-main .page-date { display: inline-block; margin: 16px 0 0; padding: 5px 12px; border-radius: 999px; background: var(--silver); color: #4a5a6e; font-size: 13.5px; font-weight: 600; line-height: 1.5; }

/* Sections: numbered, separated by a thin line; a section reached from the index stops below the sticky header. */
.legal-main .page-text { counter-reset: page-section; }
.legal-main .page-text h2 { counter-increment: page-section; display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; margin: 30px 0 10px; padding-top: 22px; border-top: 1px solid var(--brand-line-light); color: var(--brand-night); font-size: 20px; line-height: 1.25; letter-spacing: -.02em; scroll-margin-top: 72px; }
.legal-main .page-text h2::before { content: counter(page-section); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-accent); color: var(--brand-night); font-size: 14px; font-weight: 800; line-height: 1; }

/* Index of the legal pages (R2). */
.legal-main .page-toc { margin: 22px 0 0; padding: 16px 18px; border-radius: 18px; background: var(--silver); }
.legal-main .page-toc b { display: block; margin-bottom: 8px; color: var(--brand-night); font-size: 15px; }
.legal-main .page-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: page-toc; }
.legal-main .page-toc li { counter-increment: page-toc; }
.legal-main .page-toc a { display: grid; grid-template-columns: 26px 1fr; gap: 8px; align-items: center; min-height: 40px; color: var(--brand-night); font-size: 15px; font-weight: 600; line-height: 1.35; text-decoration: none; }
.legal-main .page-toc a::before { content: counter(page-toc); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--brand-accent); color: var(--brand-night); font-size: 12.5px; font-weight: 800; line-height: 1; }
.legal-main .page-toc a:hover { text-decoration: underline; }
.legal-main .page-up { display: inline-flex; align-items: center; min-height: 44px; margin-top: 26px; padding: 10px 16px; border: 1.5px solid var(--brand-line-light); border-radius: 999px; color: var(--brand-night); font-size: 14px; font-weight: 700; text-decoration: none; }

/* Guide (U2): the owner's M3 photos, the closing button. */
.legal-main .guide-shots, .legal-main .guide-pair { display: grid; gap: 8px; margin: 16px 0 6px; }
.legal-main .guide-shots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.legal-main .guide-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.legal-main :is(.guide-shots, .guide-pair) figure { position: relative; min-width: 0; margin: 0; }
.legal-main :is(.guide-shots, .guide-pair) img { display: block; width: 100%; height: auto; object-fit: cover; border-radius: 14px; }
.legal-main .guide-shots img { aspect-ratio: 1; }
.legal-main .guide-pair img { aspect-ratio: 4 / 3.2; }
.legal-main .guide-shots figcaption { display: block; margin-top: 6px; padding: 0; color: var(--brand-night); font-size: 12.5px; font-weight: 700; line-height: 1.4; text-align: center; }
.legal-main .guide-pair figure > span { position: absolute; top: 8px; left: 8px; padding: 3px 9px; border-radius: 999px; background: rgb(11 22 37 / .72); color: #fff; font-size: 12px; font-weight: 800; line-height: 1.4; }
.legal-main .guide-pair figure + figure > span { background: var(--brand-accent); color: var(--brand-night); }
.legal-main a.button { display: flex; justify-content: center; width: 100%; min-height: 56px; margin-top: 22px; border-radius: 999px; background: var(--brand-accent); color: var(--brand-night); font-size: 16px; text-decoration: none; }
.legal-main a.page-side-cta { display: none; }

/* Contatti (T1b): WhatsApp and email as rows of one card, the business data in a grey card. */
.page-contacts h2 { margin: 34px 0 10px; color: var(--brand-night); font-size: 21px; line-height: 1.25; letter-spacing: -.02em; }
.page-contacts .page-note { margin: 12px 0 0; color: #4a5a6e; font-size: 14px; line-height: 1.55; }
.page-contacts .contact-rows { margin: 24px 0 0; padding: 0; list-style: none; border: 1px solid var(--brand-line-light); border-radius: 22px; background: #fff; box-shadow: 0 22px 44px -32px rgb(11 22 37 / .4); }
.page-contacts .contact-rows li + li { border-top: 1px solid var(--brand-line-light); }
.page-contacts .contact-rows a { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; color: var(--brand-night); text-decoration: none; }
.page-contacts .contact-tile { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: #fff4e0; color: #b36900; }
.page-contacts .contact-tile svg { width: 22px; height: 22px; }
.page-contacts .contact-tile .contact-whatsapp-icon { fill: currentColor; stroke: none; }
.page-contacts .contact-rows small { display: block; color: #4a5a6e; font-size: 13px; line-height: 1.4; }
.page-contacts .contact-rows b { display: block; font-size: 16px; line-height: 1.4; white-space: nowrap; }
.page-contacts .contact-go { width: 18px; height: 18px; color: #b36900; stroke-width: 2; }
.page-contacts .contact-data { margin: 0; padding: 16px 18px; border-radius: 18px; background: var(--silver); color: var(--brand-night); font-size: 15px; line-height: 1.7; }
.page-contacts .contact-data b { display: block; margin-bottom: 2px; }

@media (min-width: 900px) {
  .legal-main .page-text h2 { scroll-margin-top: 112px; }
  /* D1 for Contatti: the phone's column, centred and a little larger. */
  .legal-body .legal-main.page-contacts { max-width: 680px; padding-inline: 24px; }
  .page-contacts h1 { font-size: 50px; }
  /* D2 for Condizioni, Privacy and Guida: the heading with the index (or the guide's button) on the left, in view
     below the 84 px header; the text on the right. */
  .legal-body .legal-main.page-split { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); column-gap: 80px; align-items: start; max-width: 1180px; padding-inline: 40px; }
  .page-split > .page-side { position: sticky; top: 108px; max-height: calc(100vh - 128px); overflow-y: auto; overscroll-behavior: contain; }
  .page-split > .page-text, .page-split > .page-up { grid-column: 2; }
  .page-split h1 { font-size: 46px; }
  .page-split .page-text > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
  .page-split > .page-up { display: none; }
  .page-split .page-side .legal-lead { margin-top: 16px; font-size: 17px; }
  .page-split a.page-side-cta { display: flex; max-width: 340px; margin-top: 28px; }
  .page-split .guide-shots, .page-split .guide-pair { gap: 12px; }
}
