/**
 * Informativa privacy pilota — pagina statica pubblica (Portal / viewer).
 * Desktop: viewport lock, scroll solo nel riquadro (t1-desktop-no-browser-scroll.mdc).
 * Mobile: scroll browser ammesso.
 */

/* Mobile / tablet: scroll naturale pagina */
html:has(body.privacy-app) {
  height: auto;
  overflow: auto;
}

body.portal-app.privacy-app {
  min-height: 100dvh;
  height: auto;
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
}

.portal-shell.privacy-shell {
  height: auto;
  max-height: none;
  min-height: 0;
  overflow: visible;
  max-width: 42rem;
  justify-content: flex-start;
  padding-top: max(1.25rem, env(safe-area-inset-top));
  padding-bottom: max(2rem, env(safe-area-inset-bottom));
  gap: 0.75rem;
}

.privacy-app .portal-card.privacy-card {
  flex: none;
  min-height: auto;
  max-height: none;
  overflow: visible;
}

@media (min-width: 768px) {
  html:has(body.privacy-app),
  body.portal-app.privacy-app {
    height: 100dvh;
    max-height: 100dvh;
    min-height: 0;
    overflow: hidden;
    overscroll-behavior: none;
  }

  .portal-shell.privacy-shell {
    height: 100%;
    max-height: 100dvh;
    max-width: min(52rem, calc(100% - 3rem));
    overflow: hidden;
    justify-content: flex-start;
    padding-top: max(1.5rem, env(safe-area-inset-top));
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
    gap: 0.65rem;
  }

  .privacy-app .portal-header {
    align-items: flex-start;
    text-align: left;
    margin-bottom: 0.35rem;
  }

  .privacy-app .portal-hero-title,
  .privacy-app .portal-lead {
    text-align: left;
    flex-shrink: 0;
  }

  .privacy-app .portal-hero-title {
    font-size: 1.35rem;
    margin-bottom: 0.25rem;
  }

  .privacy-app .portal-lead {
    margin-bottom: 0.5rem;
  }

  .privacy-app .portal-card.privacy-card {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .privacy-body p,
  .privacy-body li {
    font-size: 0.92rem;
  }

  .privacy-table {
    font-size: 0.84rem;
  }

  .privacy-disclaimer {
    font-size: 0.82rem;
  }
}

.privacy-disclaimer {
  font-size: 0.78rem;
  color: #8a95a8;
  margin: 0 0 0.5rem;
  line-height: 1.45;
}

.privacy-body h2 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 1.35rem 0 0.45rem;
  letter-spacing: -0.01em;
  color: color-mix(in srgb, #f0f4f8 94%, var(--t1-cyan-gateway) 6%);
}

.privacy-body h2:first-child {
  margin-top: 0;
}

.privacy-body p,
.privacy-body li {
  font-size: 0.86rem;
  color: #b8c4d4;
  line-height: 1.55;
}

.privacy-body p {
  margin: 0 0 0.65rem;
}

.privacy-body ul {
  margin: 0 0 0.75rem;
  padding-left: 1.15rem;
}

.privacy-body li {
  margin-bottom: 0.35rem;
}

.privacy-table-wrap {
  overflow-x: auto;
  margin: 0 0 0.85rem;
}

.privacy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.privacy-table th,
.privacy-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.45rem 0.55rem;
  border-bottom: 1px solid color-mix(in srgb, #f0f4f8 12%, transparent);
  color: #b8c4d4;
  line-height: 1.4;
}

.privacy-table th {
  font-weight: 600;
  color: #d8e0ea;
  white-space: nowrap;
}

.privacy-contact-block {
  margin: 0 0 0.85rem;
  padding: 0.85rem 0.95rem;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--t1-cyan-gateway) 14%, rgba(255, 255, 255, 0.06));
  background: color-mix(in srgb, var(--t1-deep-black-elevated) 90%, var(--t1-cyan-gateway) 3%);
}

.privacy-contact__label {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #d8e0ea;
}

a.portal-primary.privacy-contact__cta {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  text-decoration: none;
  margin-top: 0;
}

.privacy-contact__address {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
  margin: 0.75rem 0 0.45rem;
}

.privacy-contact__email {
  font-size: 0.84rem;
  color: #e8ecf4;
  word-break: break-all;
}

.privacy-contact__copy {
  flex-shrink: 0;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  border: 1px solid color-mix(in srgb, var(--t1-cyan-gateway) 22%, rgba(255, 255, 255, 0.08));
  background: rgba(255, 255, 255, 0.04);
  color: #d8e0ea;
  font-family: var(--t1-font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.privacy-contact__copy:hover {
  border-color: color-mix(in srgb, var(--t1-cyan-gateway) 40%, transparent);
  color: var(--t1-cyan-gateway);
}

.privacy-contact__hint {
  margin: 0;
  font-size: 0.78rem;
  color: #8a95a8;
  line-height: 1.45;
}

.privacy-contact__link {
  color: color-mix(in srgb, var(--t1-cyan-gateway) 75%, #e8ecf4);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--t1-cyan-gateway) 35%, transparent);
  cursor: pointer;
}

.privacy-contact__link:hover {
  color: var(--t1-cyan-gateway);
}

.privacy-meta {
  font-size: 0.72rem;
  color: #6f7a8c;
  margin: 1.25rem 0 0;
  line-height: 1.45;
}

.privacy-back {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: var(--t1-cyan-gateway);
  text-decoration: none;
}

.privacy-back:hover {
  text-decoration: underline;
}

.share-footer__privacy-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.share-footer__privacy-link:hover {
  color: var(--t1-cyan-gateway);
}
