/* Shared legal pages style — Apple-like */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --black: #000; --black-soft: #1d1d1f; --white: #fff;
  --green: #1a3d2b; --green-mid: #2a5c42; --green-deep: #0e2418;
  --green-soft: #d6e4dc;
  --gray-100: #f5f5f7; --gray-200: #e8e8ed; --gray-300: #d2d2d7;
  --gray-text: #6e6e73; --gray-text-2: #86868b;
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--white); color: var(--black-soft);
  -webkit-font-smoothing: antialiased; letter-spacing: -.011em;
}
.serif { font-family: 'Cormorant Garamond', serif; }

nav.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
nav.topbar .nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 14px 22px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo img { height: 32px; width: auto; display: block; }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { font-size: .82rem; color: var(--black-soft); text-decoration: none; opacity: .88; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }
.nav-cta { background: var(--green); color: var(--white); padding: 7px 14px; border-radius: 980px; font-size: .8rem; font-weight: 500; text-decoration: none; transition: background .2s; }
.nav-cta:hover { background: var(--green-mid); }
.nav-toggle { display: none; background: transparent; border: 0; cursor: pointer; padding: 8px; margin-left: 8px; width: 38px; height: 38px; flex-direction: column; gap: 5px; align-items: center; justify-content: center; border-radius: 10px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--black-soft); border-radius: 2px; transition: transform .3s, opacity .2s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

main.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 140px 24px 100px;
}
.legal-eyebrow {
  font-size: .82rem; font-weight: 500; color: var(--green);
  margin-bottom: 18px; display: inline-block;
}
.legal h1 {
  font-size: clamp(2.2rem, 4.8vw, 3.6rem);
  font-weight: 700; letter-spacing: -.035em; line-height: 1.05;
  margin-bottom: 24px; color: var(--black);
}
.legal h1 em { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 500; color: var(--green); }
.legal-meta {
  font-size: .85rem; color: var(--gray-text-2); margin-bottom: 56px;
  padding-bottom: 28px; border-bottom: 1px solid var(--gray-200);
}
.legal h2 {
  font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em;
  margin: 48px 0 14px; color: var(--black);
}
.legal h3 {
  font-size: 1.05rem; font-weight: 600; letter-spacing: -.012em;
  margin: 28px 0 8px; color: var(--black-soft);
}
.legal p, .legal li {
  font-size: 1rem; color: var(--black-soft);
  line-height: 1.7; margin-bottom: 14px;
}
.legal ul, .legal ol { padding-left: 22px; margin-bottom: 18px; }
.legal li { margin-bottom: 8px; }
.legal strong { font-weight: 600; color: var(--black); }
.legal a { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--green-mid); }
.legal .placeholder-flag {
  display: inline-block; background: #fff8d8; color: #8a6d3b;
  font-size: .68rem; font-weight: 600; padding: 2px 8px;
  border-radius: 6px; letter-spacing: .3px; text-transform: uppercase;
  margin: 0 2px; vertical-align: middle;
}
.legal .callout {
  background: var(--gray-100); border-radius: 14px;
  padding: 20px 22px; margin: 22px 0;
  font-size: .92rem; color: var(--gray-text); line-height: 1.6;
}
.legal hr { border: 0; border-top: 1px solid var(--gray-200); margin: 56px 0 36px; }
.legal-toc {
  background: var(--gray-100); border-radius: 14px;
  padding: 20px 22px; margin-bottom: 48px;
}
.legal-toc h4 { font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--gray-text); margin-bottom: 12px; }
.legal-toc ol { padding-left: 18px; margin: 0; }
.legal-toc ol li { font-size: .92rem; margin-bottom: 4px; }

.legal-back {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 60px;
  font-size: .92rem; color: var(--green);
  text-decoration: none; font-weight: 500;
}
.legal-back::before { content: '‹'; font-size: 1.4em; transform: translateY(-1px); }

footer.site-footer-mini {
  max-width: 1200px; margin: 0 auto;
  padding: 32px 60px;
  border-top: 1px solid var(--gray-200);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
footer.site-footer-mini p, footer.site-footer-mini a { font-size: .76rem; color: var(--gray-text-2); text-decoration: none; }
footer.site-footer-mini a:hover { color: var(--green); }

/* ─── Full site footer (replicato da site.css per pagine legal) ─── */
footer.site-footer { max-width: 1200px; margin: 12px auto 24px; padding: 60px 60px 30px; background: var(--white); border-top: 1px solid var(--gray-200); }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 44px; }
.footer-brand img { height: 36px; width: auto; margin-bottom: 16px; }
.footer-brand p { font-size: .82rem; color: var(--gray-text); line-height: 1.65; max-width: 280px; margin-bottom: 22px; }
.footer-social { display: flex; gap: 10px; }
.social-btn { width: 36px; height: 36px; border-radius: 50%; background: var(--gray-100); display: flex; align-items: center; justify-content: center; font-size: .78rem; color: var(--black-soft); text-decoration: none; transition: background .2s; }
.social-btn:hover { background: var(--green-soft); color: var(--green); }
.footer-col h4 { font-size: .82rem; font-weight: 600; color: var(--black); margin-bottom: 14px; letter-spacing: -.005em; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; padding: 0; margin: 0; }
.footer-col ul li, .footer-col ul li a { font-size: .82rem; color: var(--gray-text); text-decoration: none; transition: color .2s; line-height: 1.55; margin: 0; }
.footer-col ul li a:hover { color: var(--green); }
.footer-legal { border-top: 1px solid var(--gray-200); padding-top: 22px; margin-bottom: 18px; }
.footer-legal p { font-size: .72rem; color: var(--gray-text-2); line-height: 1.7; max-width: 980px; margin: 0; }
.footer-bottom { border-top: 1px solid var(--gray-200); padding-top: 22px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p, .footer-bottom a { font-size: .76rem; color: var(--gray-text-2); text-decoration: none; margin: 0; }
.footer-bottom a:hover { color: var(--green); }

.footer-sitemap { border-top: 1px solid var(--gray-200); margin-top: 30px; }
.footer-sitemap > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0; font-size: .8rem; font-weight: 500; color: var(--gray-text);
  letter-spacing: -.005em; transition: color .2s;
}
.footer-sitemap > summary::-webkit-details-marker { display: none; }
.footer-sitemap > summary:hover { color: var(--black); }
.footer-sitemap-label { display: inline-flex; align-items: center; gap: 8px; }
.footer-sitemap-label::before { content: ''; width: 14px; height: 1px; background: currentColor; opacity: .5; }
.footer-sitemap-chevron { font-size: 1.2rem; line-height: 1; transition: transform .3s; opacity: .6; }
.footer-sitemap[open] .footer-sitemap-chevron { transform: rotate(90deg); }
.footer-sitemap[open] > summary { color: var(--black); }
.footer-sitemap-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; padding: 8px 0 28px; border-top: 1px solid var(--gray-200); margin-top: 4px; padding-top: 24px; }
.footer-sitemap-col h5 { font-size: .78rem; font-weight: 600; color: var(--black); margin-bottom: 10px; letter-spacing: -.005em; }
.footer-sitemap-col ul { list-style: none; display: flex; flex-direction: column; gap: 6px; padding: 0; margin: 0; }
.footer-sitemap-col ul li, .footer-sitemap-col ul li a { font-size: .78rem; color: var(--gray-text); text-decoration: none; transition: color .2s; line-height: 1.5; margin: 0; }
.footer-sitemap-col ul li a:hover { color: var(--green); }
@media (max-width: 1100px) {
  footer.site-footer { padding: 50px 40px 30px; margin: 8px 12px 20px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-sitemap-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  nav.topbar .nav-inner { padding: 12px 18px; gap: 10px; }
  .nav-logo img { height: 28px; }
  .nav-cta { padding: 6px 12px; font-size: .76rem; }
  .nav-links {
    position: fixed; top: 56px; left: 0; right: 0;
    flex-direction: column; gap: 0; align-items: stretch;
    background: rgba(255,255,255,0.98);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    padding: 14px 22px 22px;
    transform: translateY(-110%);
    transition: transform .35s cubic-bezier(.4,.0,.2,1);
    pointer-events: none;
    box-shadow: 0 18px 40px rgba(0,0,0,0.08);
  }
  .nav-links.open { transform: translateY(0); pointer-events: auto; }
  .nav-links li { border-bottom: 1px solid var(--gray-200); list-style: none; }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a { display: block; padding: 14px 4px; font-size: 1.02rem; opacity: 1; }
}
@media (max-width: 700px) {
  main.legal { padding: 110px 20px 70px; }
  footer.site-footer-mini { padding: 24px 24px; }
  footer.site-footer { padding: 40px 22px 24px; margin: 6px 8px; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .footer-sitemap-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-sitemap > summary { padding: 16px 0; font-size: .85rem; }
}
