/* Next Comacina — casa.css */
:root {
  --terracotta: #C25E3A;
  --terracotta-2: #A04527;
  --cobalt: #1E456C;
  --cobalt-2: #143352;
  --sand: #F2EAD9;
  --sand-2: #E8DDC4;
  --olive: #6B7F5F;
  --cream: #FBF7EE;
  --ink: #2A1F19;
  --ink-80: rgba(42,31,25,0.82);
  --ink-60: rgba(42,31,25,0.58);
  --ink-40: rgba(42,31,25,0.38);
  --ink-20: rgba(42,31,25,0.18);
  --gold: #D9A648;
  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-sans: 'Manrope', system-ui, sans-serif;
  --font-hand: 'Caveat', cursive;
  --gutter: clamp(20px, 4vw, 56px);
  --read: 720px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body { margin:0!important; padding:0!important; max-width:100vw!important; width:100%!important; overflow-x:clip!important; }
main { display: block; width: 100%; }
body > nav, body > main, body > main > section, body > main > header, body > footer, body > main > div.full-bleed {
  width: 100vw !important; max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
}
body { font-family: var(--font-sans); background: var(--sand); color: var(--ink); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; background: var(--sand-2); }
img.broken { background: linear-gradient(135deg, var(--sand-2) 0%, var(--sand) 100%); }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--terracotta); color: var(--cream); }

body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.85' numOctaves='2'/><feColorMatrix values='0 0 0 0 0.66 0 0 0 0 0.55 0 0 0 0 0.4 0 0 0 0.04 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  z-index: 1; opacity: 0.6;
}
body > * { position: relative; z-index: 2; }

/* NAV */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 18px var(--gutter); display: flex; justify-content: space-between; align-items: center; transition: all 0.4s var(--ease); color: var(--cream); background: rgba(42,31,25,0.28); backdrop-filter: blur(6px); }
.nav.scrolled { background: rgba(251,247,238,0.94); backdrop-filter: blur(14px); color: var(--ink); padding: 12px var(--gutter); box-shadow: 0 2px 20px rgba(0,0,0,0.06); }
.nav-brand { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 22px; display: inline-flex; align-items: center; }
.nav-brand img { height: 66px; width: auto; display: block; background: transparent; filter: brightness(0) invert(1); transition: filter 0.4s var(--ease), height 0.4s var(--ease); }
.nav.scrolled .nav-brand img { height: 54px; filter: none; }
@media (max-width: 900px) { .nav-brand img { height: 54px; } .nav.scrolled .nav-brand img { height: 46px; } }
.nav-menu { display: flex; gap: 30px; list-style: none; }
.nav-menu a { font-size: 13px; letter-spacing: 0.04em; font-weight: 500; }
.nav-cta { background: var(--terracotta); color: var(--cream); padding: 11px 22px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.nav-cta:hover { background: var(--terracotta-2); }
.nav-burger { display: none; }
@media (max-width: 900px) {
  .nav-menu { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: flex; flex-direction: column; gap: 5px; padding: 8px; cursor: pointer; }
  .nav-burger span { width: 22px; height: 2px; background: currentColor; transition: transform 0.4s ease, opacity 0.3s ease; }
}

.skiptranslate { display: none !important; }
body { top: 0 !important; }

.nav-drawer { position: fixed; inset: 0; z-index: 999; background: var(--sand); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; opacity: 0; visibility: hidden; transition: opacity 0.45s var(--ease), visibility 0.45s var(--ease); padding: 90px 24px 60px; overflow-y: auto; }
.nav-drawer::before { content: ""; position: absolute; inset: 14px; border: 1.5px dashed rgba(42,31,25,0.18); pointer-events: none; }
.nav-drawer .drawer-eyebrow { font-family: var(--font-hand); font-size: 28px; color: var(--terracotta); transform: rotate(-3deg); margin-bottom: 8px; opacity: 0; transition: opacity 0.5s var(--ease) 0.1s; }
.nav-drawer.open { opacity: 1; visibility: visible; }
.nav-drawer.open .drawer-eyebrow { opacity: 1; }
.nav-drawer a { color: var(--ink); font-family: var(--font-display); font-style: italic; font-size: clamp(2rem, 8vw, 2.8rem); font-weight: 400; line-height: 1; opacity: 0; transform: translateY(12px); transition: opacity 0.55s var(--ease), transform 0.55s var(--ease), color 0.3s; position: relative; padding-bottom: 6px; }
.nav-drawer a:not(.drawer-cta)::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 0; height: 2px; background: var(--gold); transform: translateX(-50%); transition: width 0.4s var(--ease); }
.nav-drawer a:not(.drawer-cta):hover { color: var(--terracotta); }
.nav-drawer a:not(.drawer-cta):hover::after { width: 60%; }
.nav-drawer.open a { opacity: 1; transform: translateY(0); }
.nav-drawer.open a:nth-child(2) { transition-delay: 0.12s; }
.nav-drawer.open a:nth-child(3) { transition-delay: 0.18s; }
.nav-drawer.open a:nth-child(4) { transition-delay: 0.24s; }
.nav-drawer.open a:nth-child(5) { transition-delay: 0.30s; }
.nav-drawer .drawer-cta { margin-top: 24px; padding: 16px 36px; background: var(--gold); color: var(--ink); border-radius: 0; font-family: var(--font-sans); font-style: normal; font-size: 12px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; box-shadow: 6px 6px 0 var(--ink); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.nav-drawer .drawer-cta:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.nav-drawer-close { position: absolute; top: 22px; right: 22px; width: 44px; height: 44px; border: 1.5px solid var(--ink); border-radius: 50%; color: var(--ink); font-size: 26px; line-height: 1; display: flex; align-items: center; justify-content: center; background: var(--cream); cursor: pointer; transition: background 0.3s, transform 0.3s; }
.nav-drawer-close:hover { background: var(--terracotta); color: var(--cream); border-color: var(--terracotta); transform: rotate(90deg); }
body.menu-open { overflow: hidden; }
body.menu-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
body.menu-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* PAGE HERO (full-bleed, breadcrumb) */
.page-hero { position: relative; height: 62vh; min-height: 440px; overflow: hidden; color: var(--cream); display: flex; align-items: flex-end; }
.page-hero-bg { position: absolute; inset: 0; background: #111; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.32) 0%, rgba(0,0,0,0.72) 100%); }
.page-hero-content { position: relative; z-index: 3; padding: 0 var(--gutter) 56px; width: 100%; max-width: 1200px; margin: 0 auto; }
.breadcrumb { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-sans); font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(251,247,238,0.85); margin-bottom: 22px; transition: color 0.3s, gap 0.3s; }
.breadcrumb::before { content: '\2190'; }
.breadcrumb:hover { color: var(--gold); gap: 12px; }
.page-hero-content .chapter-num { color: var(--gold); }
.page-hero-content .chapter-tag { color: rgba(251,247,238,0.85); border-color: var(--gold); }
.page-hero-content h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1.08; letter-spacing: -0.01em; max-width: 16ch; }
.page-hero-content h1 em { font-style: italic; color: var(--cream); background: var(--terracotta); padding: 0 0.2em 0.06em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.page-hero-content .sub { font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 46ch; margin-top: 18px; opacity: 0.95; }

/* CHAPTER (single col centered) */
.chapter { padding: clamp(72px, 11vw, 130px) var(--gutter); }
.chapter-inner { max-width: var(--read); margin: 0 auto; }
.chapter-cluster { padding-top: clamp(8px, 2vw, 20px); padding-bottom: clamp(56px, 9vw, 100px); }
.chapter-num { font-family: var(--font-hand); color: var(--terracotta); font-size: 36px; font-weight: 600; display: block; margin-bottom: 4px; transform: rotate(-3deg); }
.chapter-tag { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-60); font-weight: 600; margin-bottom: 28px; display: inline-block; padding-bottom: 6px; border-bottom: 2px solid var(--terracotta); }
.chapter-h { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 4.5vw, 3.6rem); line-height: 1.1; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 40px; }
.chapter-h em { font-style: italic; color: var(--terracotta); }
.chapter-body p { font-size: 17px; line-height: 1.8; color: var(--ink-80); margin-bottom: 22px; }
.chapter-body .first-p::first-letter { font-family: var(--font-display); font-size: 72px; font-weight: 400; float: left; line-height: 0.85; margin: 6px 14px 0 0; color: var(--terracotta); }
.chapter-quote { margin: 56px 0; padding: 32px 40px; border-left: 4px solid var(--terracotta); background: rgba(194,94,58,0.06); font-family: var(--font-display); font-style: italic; font-size: 22px; color: var(--ink); line-height: 1.5; }
.chapter-quote cite { display: block; margin-top: 16px; font-size: 13px; font-style: normal; color: var(--ink-60); letter-spacing: 0.16em; text-transform: uppercase; font-family: var(--font-sans); font-weight: 600; }

/* FULL-BLEED PHOTO BREAK */
.full-bleed { height: 66vh; min-height: 440px; position: relative; overflow: hidden; margin: 0; }
.full-bleed img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.full-bleed.with-quote::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.55) 100%); }
.fb-overlay { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 var(--gutter); color: var(--cream); }
.fb-overlay blockquote { font-family: var(--font-display); font-style: italic; font-size: clamp(1.6rem, 3.5vw, 3rem); line-height: 1.3; max-width: 26ch; }
.fb-overlay cite { display: block; margin-top: 24px; font-size: 12px; font-style: normal; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.8; font-family: var(--font-sans); }
@media (max-width: 700px) { .full-bleed { height: 48vh; min-height: 340px; } }

/* NUMBERS */
.numbers-flex { background: var(--cream); padding: 60px var(--gutter); border-top: 1px dashed var(--ink-20); border-bottom: 1px dashed var(--ink-20); }
.numbers-flex-inner { max-width: var(--read); margin: 0 auto; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.nf { text-align: center; }
.nf .v { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 500; line-height: 1; color: var(--terracotta); }
.nf .v em { font-style: italic; color: var(--gold); font-size: 0.55em; vertical-align: super; }
.nf .l { font-family: var(--font-hand); font-size: 18px; color: var(--ink-60); margin-top: 4px; transform: rotate(-2deg); display: inline-block; }

/* PHOTO CLUSTER */
.photo-cluster { margin: 56px 0; display: grid; grid-template-columns: 2fr 1fr; gap: 16px; height: 360px; }
.photo-cluster .pc-main, .photo-cluster .pc-side { overflow: hidden; border-radius: 4px; }
.photo-cluster .pc-side { display: flex; flex-direction: column; gap: 16px; }
.photo-cluster .pc-side > div { flex: 1; overflow: hidden; }
.photo-cluster img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); cursor: pointer; }
.photo-cluster img:hover { transform: scale(1.04); }
@media (max-width: 700px) { .photo-cluster { grid-template-columns: 1fr; height: auto; } .photo-cluster .pc-main { height: 240px; } .photo-cluster .pc-side { flex-direction: row; } .photo-cluster .pc-side > div { height: 160px; } }

/* POLAROID GALLERY */
.polaroid-section { background: var(--cream); padding: clamp(80px, 12vw, 140px) var(--gutter); position: relative; overflow: hidden; }
.polaroid-section .chapter-inner { max-width: 1200px; }
.polaroid-section .chapter-h { text-align: center; }
.polaroid-section .chapter-tag { display: block; text-align: center; margin: 0 auto 28px; width: fit-content; }
.polaroid-grid { margin-top: 80px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; max-width: 1100px; margin-left: auto; margin-right: auto; }
.polaroid { background: var(--cream); padding: 12px 12px 60px; box-shadow: 0 8px 30px -10px rgba(0,0,0,0.18); cursor: pointer; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); position: relative; }
.polaroid:nth-child(odd) { transform: rotate(-2deg); }
.polaroid:nth-child(even) { transform: rotate(2deg); }
.polaroid:nth-child(3n) { transform: rotate(-3deg); }
.polaroid:hover { transform: rotate(0deg) translateY(-8px) scale(1.04); box-shadow: 0 24px 60px -10px rgba(0,0,0,0.3); z-index: 10; }
.polaroid img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.polaroid .pcap { position: absolute; bottom: 12px; left: 16px; right: 16px; font-family: var(--font-hand); font-size: 18px; color: var(--ink-80); text-align: center; }
@media (max-width: 900px) { .polaroid-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .polaroid-grid { grid-template-columns: 1fr; max-width: 280px; } }

/* CLOSING CTA — voucher-style */
.villa-cta-sec { background: var(--cobalt); color: var(--cream); padding: clamp(80px, 12vw, 140px) var(--gutter); }
.villa-cta-sec .chapter-inner { max-width: 820px; text-align: center; }
.villa-cta-sec .chapter-tag { color: var(--gold); border-color: var(--gold); }
.villa-cta-sec .chapter-h { color: var(--cream); }
.villa-cta-sec .chapter-h em { color: var(--gold); }
.villa-cta-sec p { font-family: var(--font-display); font-style: italic; font-size: clamp(17px, 2vw, 20px); color: rgba(251,247,238,0.9); max-width: 52ch; margin: 0 auto 40px; }
.btn-primary { background: var(--terracotta); color: var(--cream); padding: 18px 34px; border-radius: 999px; font-weight: 600; font-size: 14.5px; display: inline-flex; align-items: center; gap: 12px; transition: all 0.3s var(--ease); box-shadow: 0 12px 40px -8px rgba(194,94,58,0.5); }
.btn-primary:hover { background: var(--terracotta-2); transform: translateY(-3px); }

/* FOOTER */
footer { background: var(--ink); color: var(--sand); padding: 64px var(--gutter) 24px; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; }
.footer-brand .footer-logo { height: 130px; width: auto; background: transparent; margin-bottom: 16px; }
.footer-brand p { color: rgba(242,234,217,0.7); font-size: 14px; max-width: 36ch; }
.footer-col h5 { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; font-weight: 600; }
.footer-col a, .footer-col p { display: block; color: rgba(242,234,217,0.75); font-size: 14px; margin-bottom: 8px; transition: color 0.3s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(242,234,217,0.15); margin-top: 48px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: rgba(242,234,217,0.5); }
.footer-bottom a { color: var(--gold); }
@media (max-width: 700px) { .footer-top { grid-template-columns: 1fr; gap: 32px; } }

/* LIGHTBOX (semplice, un solo close · niente frecce doppie) */
.lb { position: fixed; inset: 0; z-index: 9990; background: rgba(20,51,82,0.96); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.4s; }
.lb.open { opacity: 1; visibility: visible; }
.lb-img { max-width: 90vw; max-height: 85vh; }
.lb-close { position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 1.5px solid rgba(251,247,238,0.4); display: flex; align-items: center; justify-content: center; color: var(--cream); transition: background 0.3s; top: 24px; right: 24px; }
.lb-close::before, .lb-close::after { content:""; position:absolute; width: 18px; height: 1.5px; background: currentColor; }
.lb-close::before { transform: rotate(45deg); } .lb-close::after { transform: rotate(-45deg); }
.lb-close:hover { background: var(--terracotta); border-color: var(--terracotta); }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity:1!important; transform:none!important; } }

/* Footer legal + cookie + policy modal (identici all'index) */
.footer-legal { display: flex; justify-content: center; align-items: center; gap: 22px; flex-wrap: wrap; padding: 18px var(--gutter) 0; font-size: 12px; color: rgba(242,234,217,0.6); border-top: 1px solid rgba(242,234,217,0.12); font-family: var(--font-display); font-style: italic; font-size: 14px; }
.footer-legal a { color: rgba(242,234,217,0.7); text-decoration: none; padding-bottom: 2px; border-bottom: 1px solid transparent; transition: color 0.3s, border-color 0.3s; }
.footer-legal a:hover { color: var(--gold); border-bottom-color: var(--gold); }
.footer-legal .sep { width: 3px; height: 3px; background: rgba(242,234,217,0.3); border-radius: 50%; }
@media (max-width: 600px) { .footer-legal { gap: 12px; font-size: 13px; } .footer-legal .sep { display: none; } }

.cookie-banner { position: fixed; left: clamp(16px, 3vw, 32px); right: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 32px); z-index: 150; background: var(--ink); color: var(--cream); border-radius: 4px; box-shadow: 0 30px 80px rgba(42,31,25,0.45); padding: clamp(20px, 2.5vw, 26px) clamp(22px, 3vw, 32px); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; transform: translateY(24px); opacity: 0; pointer-events: none; transition: transform .5s var(--ease), opacity .4s var(--ease); max-width: 1080px; margin: 0 auto; border: 1px solid rgba(217,166,72,0.25); }
.cookie-banner.visible { transform: translateY(0); opacity: 1; pointer-events: auto; }
.cookie-banner-text { font-size: 13.5px; line-height: 1.6; color: rgba(251,247,238,0.85); }
.cookie-banner-text h5 { font-family: var(--font-display); font-weight: 500; font-style: italic; font-size: 20px; color: var(--cream); margin-bottom: 6px; letter-spacing: -0.01em; }
.cookie-banner-text a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner-text a:hover { color: var(--cream); }
.cookie-banner-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.cookie-btn { font-family: var(--font-sans); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; padding: 12px 20px; border-radius: 999px; cursor: pointer; transition: all .25s ease; border: 1px solid transparent; white-space: nowrap; }
.cookie-btn.ghost { background: transparent; color: rgba(251,247,238,0.8); border-color: rgba(251,247,238,0.22); }
.cookie-btn.ghost:hover { color: var(--ink); border-color: var(--cream); background: var(--cream); }
.cookie-btn.primary { background: var(--terracotta); color: var(--cream); border-color: var(--terracotta); }
.cookie-btn.primary:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.cookie-btn.link { background: transparent; color: rgba(251,247,238,0.6); border: 0; padding: 12px 10px; text-decoration: underline; text-underline-offset: 4px; }
.cookie-btn.link:hover { color: var(--cream); }
@media (max-width: 820px) { .cookie-banner { grid-template-columns: 1fr; gap: 16px; padding: 20px 20px 18px; } .cookie-banner-actions { justify-content: flex-start; } .cookie-btn { flex: 1 1 calc(50% - 5px); text-align: center; padding: 12px 10px; } .cookie-btn.link { flex-basis: 100%; } }

.legal-overlay { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: clamp(16px, 3vw, 48px); background: rgba(42,31,25,0.78); backdrop-filter: saturate(1.1) blur(6px); -webkit-backdrop-filter: saturate(1.1) blur(6px); opacity: 0; transition: opacity .35s var(--ease); }
.legal-overlay.open { display: flex; opacity: 1; }
.legal-card { background: var(--cream); color: var(--ink); width: 100%; max-width: 860px; max-height: 92vh; border-radius: 4px; box-shadow: 0 40px 100px rgba(42,31,25,0.5); display: flex; flex-direction: column; overflow: hidden; transform: translateY(16px) scale(0.98); transition: transform .45s var(--ease); border: 1px solid var(--sand-2); }
.legal-overlay.open .legal-card { transform: translateY(0) scale(1); }
.legal-head { padding: 30px clamp(24px, 4vw, 44px) 22px; border-bottom: 1px solid rgba(42,31,25,0.1); display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; background: var(--cream); position: sticky; top: 0; z-index: 2; }
.legal-head .kicker { font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--terracotta-2); font-weight: 600; display: block; margin-bottom: 8px; }
.legal-head h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.8rem, 3.6vw, 2.4rem); line-height: 1.1; color: var(--ink); letter-spacing: -0.01em; }
.legal-head h3 em { font-style: italic; color: var(--terracotta); font-weight: 400; }
.legal-head .updated { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-40); margin-top: 8px; }
.legal-close { position: relative; flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--ink-20); background: transparent; cursor: pointer; color: var(--ink); transition: background .25s ease, border-color .25s ease, transform .25s ease; }
.legal-close:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); transform: rotate(90deg); }
.legal-close::before, .legal-close::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 1px; background: currentColor; }
.legal-close::before { transform: translate(-50%,-50%) rotate(45deg); }
.legal-close::after { transform: translate(-50%,-50%) rotate(-45deg); }
.legal-body { padding: 24px clamp(24px, 4vw, 44px) clamp(32px, 5vw, 48px); overflow-y: auto; flex: 1; font-size: 14.5px; line-height: 1.75; color: var(--ink-80); overscroll-behavior: contain; }
.legal-body .lead { font-size: 15.5px; font-family: var(--font-display); font-style: italic; color: var(--ink-80); margin-bottom: 28px; padding-bottom: 22px; border-bottom: 1px solid rgba(42,31,25,0.1); }
.legal-body h4 { font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; color: var(--ink); margin-top: 34px; margin-bottom: 12px; letter-spacing: -0.01em; scroll-margin-top: 120px; }
.legal-body h4:first-of-type { margin-top: 0; }
.legal-body h5 { font-family: var(--font-sans); font-weight: 700; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); margin-top: 22px; margin-bottom: 10px; }
.legal-body p { margin-bottom: 12px; }
.legal-body p strong, .legal-body li strong { color: var(--ink); font-weight: 700; }
.legal-body ul, .legal-body ol { padding-left: 20px; margin-bottom: 14px; }
.legal-body li { margin-bottom: 6px; }
.legal-body a { color: var(--terracotta-2); text-decoration: underline; text-underline-offset: 3px; }
.legal-body a:hover { color: var(--terracotta); }
.legal-body .callout { background: var(--sand-2); border-left: 3px solid var(--terracotta); padding: 14px 18px; margin: 18px 0; font-size: 14px; border-radius: 2px; }
.legal-body .placeholder { display: inline-block; background: rgba(217,166,72,0.18); color: var(--terracotta-2); padding: 1px 8px; border-radius: 3px; font-weight: 600; font-size: 0.95em; border: 1px dashed var(--gold); }
.legal-body table { width: 100%; border-collapse: collapse; margin: 14px 0 22px; font-size: 13.5px; }
.legal-body table th, .legal-body table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid rgba(42,31,25,0.1); vertical-align: top; }
.legal-body table th { font-family: var(--font-sans); font-weight: 700; color: var(--ink); background: var(--sand-2); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.legal-body table td { color: var(--ink-80); }
.legal-body .cookie-block { background: #fff; border: 1px solid rgba(42,31,25,0.1); border-radius: 3px; padding: 18px 22px; margin: 16px 0; }
.legal-body .cookie-block h5 { margin-top: 0; margin-bottom: 8px; }
.legal-body .cookie-block .tag { display: inline-block; font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; margin-left: 6px; font-weight: 700; vertical-align: 1px; }
.legal-body .tag-tech { background: rgba(42,31,25,0.1); color: var(--ink); }
.legal-body .tag-third { background: rgba(194,94,58,0.18); color: var(--terracotta-2); }
.legal-body .cookie-block dl { margin-top: 8px; font-size: 13px; }
.legal-body .cookie-block dl div { display: grid; grid-template-columns: 150px 1fr; padding: 6px 0; border-bottom: 1px dashed rgba(42,31,25,0.1); }
.legal-body .cookie-block dl div:last-child { border-bottom: 0; }
.legal-body .cookie-block dt { font-weight: 700; color: var(--ink); font-size: 12px; }
.legal-body .cookie-block dd { color: var(--ink-80); font-size: 13px; }
.legal-body .foot-note { margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(42,31,25,0.1); font-size: 12.5px; color: var(--ink-60); font-family: var(--font-display); font-style: italic; font-size: 14px; }
.cookie-prefs-card { max-width: 620px; }
.cookie-prefs-body { padding: 22px 32px 8px; overflow-y: auto; flex: 1; font-size: 14px; line-height: 1.6; color: var(--ink-80); }
.cookie-prefs-body p { margin-bottom: 12px; }
.cookie-prefs-body a { color: var(--terracotta-2); text-decoration: underline; text-underline-offset: 3px; }
.cookie-category { padding: 16px 0; border-bottom: 1px solid rgba(42,31,25,0.1); display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: flex-start; }
.cookie-category:last-of-type { border-bottom: 0; }
.cookie-category-title { font-weight: 700; font-size: 14px; color: var(--ink); margin-bottom: 4px; }
.cookie-category-desc { font-size: 13px; color: var(--ink-60); line-height: 1.55; }
.cookie-category .status { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-40); margin-top: 6px; font-weight: 700; }
.switch { position: relative; width: 46px; height: 26px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch .slider { position: absolute; inset: 0; background: var(--ink-20); border-radius: 999px; cursor: pointer; transition: background .2s ease; }
.switch .slider::before { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; background: var(--cream); border-radius: 50%; transition: transform .2s var(--ease); }
.switch input:checked + .slider { background: var(--terracotta); }
.switch input:checked + .slider::before { transform: translateX(20px); }
.switch input:disabled + .slider { background: rgba(194,94,58,0.55); cursor: not-allowed; }
.cookie-prefs-foot { padding: 18px 32px 24px; border-top: 1px solid rgba(42,31,25,0.1); display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.cookie-prefs-foot .cookie-btn.ghost { color: var(--ink-60); border-color: var(--ink-20); }
.cookie-prefs-foot .cookie-btn.ghost:hover { color: var(--cream); border-color: var(--ink); background: var(--ink); }
.cookie-prefs-foot .cookie-btn.primary { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.cookie-prefs-foot .cookie-btn.primary:hover { background: var(--terracotta); border-color: var(--terracotta); }
@media (max-width: 500px) { .cookie-prefs-body, .cookie-prefs-foot, .legal-head { padding-left: 20px; padding-right: 20px; } .cookie-prefs-foot { flex-direction: column; } .cookie-prefs-foot .cookie-btn { width: 100%; text-align: center; } }
body.no-scroll { overflow: hidden; }
