/* ═══════════════════════════════════════════════
   POLICY PAGES — stili condivisi
   Usato da: cookie-policy.php, privacy-policy.php
   Dipende da: style.css (tokens, reset, header,
   footer, BTT, cursor, reveal, animations)
═══════════════════════════════════════════════ */

/* ── LAYOUT ── */
.policy-page-wrap {
  position: relative;
  z-index: 2;
  padding-top: 64px;
  min-height: 100vh;
}
.policy-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── PAGE HEADER ── */
.page-header {
  padding: 5rem 0 3.5rem;
  text-align: center;
  position: relative;
}
.page-eyebrow {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  animation: fadeUp .7s ease .3s both;
}
.page-eyebrow::before,
.page-eyebrow::after {
  content: '';
  display: inline-block;
  width: 2rem;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}
.page-title {
  font-family: var(--sans);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--paper);
  animation: fadeUp .8s ease .5s both;
  margin-bottom: .5rem;
}
.page-title em      { font-style: italic; color: var(--gold); }
.page-title .dm-dot { color: var(--gold); }
.page-subtitle {
  font-family: var(--sans);
  font-size: clamp(.95rem, 1.5vw, 1.1rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.75;
  color: var(--text);
  max-width: 60ch;
  margin: .8rem auto 0;
  animation: fadeUp .7s ease .7s both;
}
.page-subtitle strong { font-style: normal; font-weight: 500; color: var(--paper); }
.page-divider {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-border), transparent);
  margin: 2.5rem auto 0;
  animation: fadeUp .7s ease .9s both;
}

/* ── META BAR ── */
.meta-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: .9rem 2rem;
  background: var(--glass);
  border: 1px solid var(--line);
  margin-bottom: 3rem;
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-soft);
  flex-wrap: wrap;
}
.meta-bar-item {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.meta-bar-item i      { color: var(--gold); font-size: .7rem; }
.meta-bar-item strong { color: var(--paper); }
.meta-bar-sep         { color: var(--gold); opacity: .4; }

/* ── TOC ── */
.toc {
  background: linear-gradient(135deg, rgba(255,215,0,.04), rgba(255,215,0,.02));
  border: 1px solid var(--gold-border);
  padding: 2rem 2.5rem;
  margin-bottom: 3rem;
}
.toc-title {
  font-family: var(--mono);
  font-size: .65rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  gap: .8rem;
}
.toc-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gold-border);
}
.toc-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .2rem;
}
.toc-list a {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .55rem 0;
  font-family: var(--mono);
  font-size: .65rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.toc-list a:hover { color: var(--gold); border-color: var(--gold-border); }
.toc-num {
  color: var(--text-muted);
  font-size: .55rem;
  min-width: 1.4rem;
}

/* ── POLICY SECTIONS ── */
.policy-section {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  padding: 2.8rem 3rem;
  margin-bottom: 2rem;
  position: relative;
}
.policy-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: linear-gradient(to bottom, var(--gold-border), transparent);
}
.section-eyebrow-sm {
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: .6;
  margin-bottom: .8rem;
}
.policy-section h2 {
  font-family: var(--sans);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 300;
  color: var(--paper);
  letter-spacing: -.01em;
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  gap: .9rem;
  line-height: 1.2;
}
.policy-section h2 i { color: var(--gold); font-size: 1.1rem; flex-shrink: 0; }
.policy-section h3 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 2rem 0 .9rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.policy-section h3::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.policy-section h3 i      { font-size: .9rem; }
.policy-section h4 {
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 500;
  color: var(--paper);
  margin: 1.4rem 0 .7rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.policy-section h4 i { color: var(--gold); font-size: .85rem; }
.policy-section p {
  font-family: var(--sans);
  font-size: clamp(.88rem, 1.3vw, .97rem);
  font-weight: 300;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 1rem;
}
.policy-section p strong { color: var(--paper); font-weight: 500; }
.policy-section ul { list-style: none; padding: 0; margin: .8rem 0 1rem; }
.policy-section li {
  font-family: var(--sans);
  font-size: clamp(.85rem, 1.2vw, .95rem);
  font-weight: 300;
  line-height: 1.7;
  color: var(--text);
  padding: .45rem 0 .45rem 1.4rem;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.policy-section li:last-child { border-bottom: none; }
.policy-section li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: .75rem;
  top: .52rem;
}
.policy-section a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-border);
  transition: border-color .2s, color .2s;
}
.policy-section a:hover { border-color: var(--gold); color: #ffe44d; }

/* ── DATA & COOKIE CARDS ── */
.data-card,
.cookie-card {
  background: rgba(245,242,235,.03);
  border: 1px solid var(--line);
  padding: 1.4rem 1.6rem;
  margin: 1.2rem 0;
  transition: border-color .25s;
}
.data-card:hover,
.cookie-card:hover { border-color: var(--gold-border); }

.cookie-name-tag {
  font-family: var(--mono);
  font-size: .85rem;
  letter-spacing: .06em;
  color: var(--gold);
  background: rgba(255,215,0,.08);
  border: 1px solid var(--gold-border);
  display: inline-block;
  padding: .2rem .7rem;
  margin-bottom: .9rem;
}
.card-label {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .9rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.card-label i { font-size: .75rem; }
.card-row {
  font-family: var(--sans);
  font-size: .88rem;
  font-weight: 300;
  color: var(--text);
  padding: .35rem 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}
.card-row:last-child { border-bottom: none; padding-bottom: 0; }
.card-row strong {
  color: var(--paper);
  font-weight: 500;
  min-width: 7rem;
  flex-shrink: 0;
  font-size: .82rem;
}

/* ── HIGHLIGHT BOX (privacy) ── */
.highlight-box {
  background: linear-gradient(135deg, rgba(255,215,0,.05), rgba(255,215,0,.02));
  border: 1px solid var(--gold-border);
  padding: 1.6rem 2rem;
  margin: 1.4rem 0;
}
.highlight-box h3 { margin-top: 0; }
.highlight-box p {
  font-family: var(--sans);
  font-size: clamp(.88rem, 1.3vw, .97rem);
  font-weight: 300;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: .8rem;
}
.highlight-box p:last-child { margin-bottom: 0; }
.highlight-box p strong { color: var(--paper); font-weight: 500; }
.highlight-box a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-border);
  transition: border-color .2s, color .2s;
}
.highlight-box a:hover { border-color: var(--gold); color: #ffe44d; }
.highlight-box ul { list-style: none; padding: 0; margin: .8rem 0; }
.highlight-box li {
  font-family: var(--sans);
  font-size: clamp(.85rem, 1.2vw, .95rem);
  font-weight: 300;
  line-height: 1.7;
  color: var(--text);
  padding: .4rem 0 .4rem 1.4rem;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.highlight-box li:last-child { border-bottom: none; }
.highlight-box li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: .75rem;
  top: .48rem;
}

/* ── THIRD PARTY SECTIONS (cookie) ── */
.third-party-section {
  background: linear-gradient(135deg, rgba(255,215,0,.04), rgba(255,215,0,.02));
  border: 1px solid var(--gold-border);
  padding: 1.8rem 2rem;
  margin: 1.6rem 0;
}
.tp-header {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-bottom: 1rem;
}
.tp-header h4 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--paper);
  margin: 0;
  letter-spacing: -.01em;
}
.tp-header i { color: var(--gold); font-size: 1rem; flex-shrink: 0; }
.tp-links {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding-top: .8rem;
  border-top: 1px solid var(--line);
}
.tp-links a {
  font-family: var(--mono);
  font-size: .65rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.tp-links a:hover { color: var(--gold); border-color: var(--gold-border); }
.tp-links a i     { font-size: .6rem; }

/* ── WARNING BOX ── */
.warning-box {
  background: rgba(0,255,136,.08);
  border: 1px solid rgba(0,255,136,.35);
  padding: 1.2rem 1.6rem;
  margin: 1.4rem 0;
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(0,255,136,.85);
}
.warning-box strong { color: #00ff88; font-weight: 500; }
.warning-box i      { margin-right: .6rem; opacity: .8; }

/* ── BROWSER GRID (cookie) ── */
.browser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.4rem 0;
}
.browser-card {
  background: rgba(245,242,235,.03);
  border: 1px solid var(--line);
  padding: 1.4rem 1.6rem;
  transition: border-color .25s, background .25s;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.browser-card:hover {
  border-color: var(--gold-border);
  background: rgba(255,215,0,.03);
}
.browser-card-icon { font-size: 1.4rem; color: var(--gold); }
.browser-card-name { font-family: var(--sans); font-size: .9rem; font-weight: 500; color: var(--paper); }
.browser-card-desc { font-family: var(--sans); font-size: .82rem; font-weight: 300; line-height: 1.6; color: var(--text-soft); }

/* ── RIGHTS GRID ── */
.rights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.4rem 0;
}
/* Privacy usa minmax(260px) — sovrascrittura locale */
.privacy-policy-page .rights-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.right-card {
  background: rgba(245,242,235,.03);
  border: 1px solid var(--line);
  padding: 1.2rem 1.4rem;
  transition: border-color .25s, background .25s;
}
.right-card:hover {
  border-color: var(--gold-border);
  background: rgba(255,215,0,.03);
}
.right-card-title {
  font-family: var(--mono);
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .5rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.right-card-title i { font-size: .7rem; }
.right-card p {
  font-family: var(--sans);
  font-size: .85rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
}

/* ── CONTACT BLOCK ── */
.contact-block {
  background: linear-gradient(135deg, rgba(255,215,0,.05), rgba(255,215,0,.02));
  border: 1px solid var(--gold-border);
  padding: 2.5rem 3rem;
  text-align: center;
  margin: 2rem 0;
}
.contact-block-title {
  font-family: var(--sans);
  font-size: 1.4rem;
  font-weight: 300;
  letter-spacing: -.01em;
  color: var(--paper);
  margin-bottom: .6rem;
}
.contact-block p {
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text);
  margin: .6rem auto 1.4rem;
  max-width: 56ch;
}
.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: .85rem 2rem;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 500;
  transition: background .2s, transform .2s;
}
.contact-btn:hover { background: #ffe44d; transform: translateY(-2px); }

/* ── POLICY FOOTER NOTE ── */
.policy-footer-note {
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .08em;
  color: var(--text-muted);
  text-align: center;
  padding: 1.8rem;
  border: 1px solid var(--line);
  margin: 3rem 0;
}
.policy-footer-note i { color: var(--gold); margin-right: .5rem; opacity: .7; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .policy-section { padding: 1.8rem 1.6rem; }
  .contact-block  { padding: 1.8rem 1.6rem; }
  .highlight-box  { padding: 1.2rem 1.4rem; }
}
@media (max-width: 600px) {
  .toc-list         { grid-template-columns: 1fr; }
  .policy-container { padding: 0 1.2rem; }
  .rights-grid,
  .privacy-policy-page .rights-grid { grid-template-columns: 1fr; }
}