/* GDPR — banner, avvisi, pagina privacy */
.privacy-page {
  min-height: 100vh;
  background: linear-gradient(165deg, #283442 0%, #2e3d4d 100%);
  color: #e8edf2;
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.65;
}

.privacy-header {
  border-bottom: 1px solid rgba(107, 159, 212, 0.2);
  padding: 1rem 0;
  background: rgba(18, 26, 38, 0.6);
}
.privacy-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.privacy-back {
  font-size: 0.82rem;
  color: #5dbfa0;
  text-decoration: none;
}
.privacy-back:hover { text-decoration: underline; }

.privacy-main {
  max-width: 720px;
  padding: 2rem 1rem 3rem;
}
.privacy-updated {
  font-size: 0.72rem;
  color: #8fa3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.privacy-main h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: #f2f6fa;
  margin-bottom: 0.75rem;
}
.privacy-lead { color: #b0bec8; margin-bottom: 2rem; }
.privacy-main section { margin-bottom: 1.75rem; }
.privacy-main h2 {
  font-size: 1rem;
  color: #5dbfa0;
  margin-bottom: 0.55rem;
}
.privacy-main p, .privacy-main li { font-size: 0.9rem; color: #b8c5d4; }
.privacy-main a { color: #5dbfa0; }
.privacy-main ul { padding-left: 1.2rem; }
.privacy-main li { margin-bottom: 0.35rem; }
.privacy-note {
  margin-top: 0.65rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  background: rgba(93, 191, 160, 0.1);
  border: 1px solid rgba(93, 191, 160, 0.22);
  font-size: 0.85rem !important;
}
.privacy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  margin: 0.65rem 0;
}
.privacy-table th, .privacy-table td {
  padding: 0.5rem 0.6rem;
  text-align: left;
  border: 1px solid rgba(107, 159, 212, 0.2);
  vertical-align: top;
}
.privacy-table th {
  background: rgba(12, 18, 28, 0.5);
  color: #8fa3b8;
  font-size: 0.68rem;
  text-transform: uppercase;
}
.privacy-contact {
  padding: 1.25rem;
  border-radius: 12px;
  background: rgba(18, 26, 38, 0.55);
  border: 1px solid rgba(93, 191, 160, 0.2);
}
.privacy-footer {
  text-align: center;
  padding: 1.25rem;
  font-size: 0.72rem;
  color: #6d8094;
  border-top: 1px solid rgba(107, 159, 212, 0.15);
}

/* Cookie banner */
.gdpr-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 1rem clamp(1rem, 3vw, 2rem);
  background: rgba(18, 26, 38, 0.96);
  border-top: 1px solid rgba(93, 191, 160, 0.3);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  animation: gdpr-slide-up 0.45s ease;
}
@keyframes gdpr-slide-up {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.gdpr-banner-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem 1.5rem;
}
.gdpr-banner-text {
  flex: 1 1 280px;
  font-size: 0.8rem;
  color: #b8c5d4;
  line-height: 1.55;
}
.gdpr-banner-text strong { color: #f2f6fa; display: block; margin-bottom: 0.25rem; font-size: 0.88rem; }
.gdpr-banner-text a { color: #5dbfa0; }
.gdpr-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.gdpr-btn {
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  border: none;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.gdpr-btn-accept {
  background: #1f9d6a;
  color: #fff;
}
.gdpr-btn-essential {
  background: transparent;
  color: #b8c5d4;
  border: 1px solid rgba(107, 159, 212, 0.35);
}
.gdpr-btn-settings {
  background: rgba(107, 159, 212, 0.15);
  color: #a8c8e8;
  border: 1px solid rgba(107, 159, 212, 0.3);
}
.gdpr-btn:hover { filter: brightness(1.08); }

/* Privacy — nel footer, non barra fissa in basso */
.gdpr-strip { display: none !important; }

.footer-gdpr-note {
  width: 100%;
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(107, 159, 212, 0.15);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.58rem;
  color: #6d8094;
  text-align: center;
  line-height: 1.5;
}
.footer-gdpr-note[hidden] { display: none !important; }
body.borsa-unlocked .footer-gdpr-note { display: block; }
.footer-gdpr-note a {
  color: #5dbfa0;
  text-decoration: none;
  font-weight: 600;
}
.footer-gdpr-note a:hover { text-decoration: underline; }
body.borsa-unlocked {
  padding-top: 0;
  padding-bottom: 0;
}
/* In area personale: niente banner cookie fisso, solo footer */
body.borsa-unlocked .gdpr-banner {
  display: none !important;
}

/* Landing privacy notice */
.gdpr-landing-notice {
  margin-top: 0.75rem;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  background: rgba(93, 191, 160, 0.08);
  border: 1px solid rgba(93, 191, 160, 0.2);
  font-size: 0.68rem;
  color: #8fa3b8;
  line-height: 1.5;
}
.gdpr-landing-notice a { color: #5dbfa0; }

/* Form consenso */
.auth-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.68rem !important;
  color: #8fa3b8 !important;
  line-height: 1.45 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 400 !important;
  cursor: pointer;
}
.auth-consent input {
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: #1f9d6a;
}
.auth-consent a { color: #5dbfa0; }
.auth-consent-opt { opacity: 0.9; }

.footer-privacy-link {
  font-size: 0.72rem;
  color: #5dbfa0 !important;
}

@media (max-width: 600px) {
  .gdpr-banner-inner { flex-direction: column; }
  .gdpr-banner-actions { width: 100%; }
  .gdpr-btn { flex: 1; text-align: center; }
}