.policy-hero {
  background: var(--bs-dark, #212529);
  color: #fff;
  padding: 4rem 0 3rem;
  border-bottom: 3px solid #ff6600;
  position: relative;
  overflow: hidden;
}

.policy-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(255, 102, 0, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.policy-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 102, 0, 0.15);
  color: #ff6600;
  border: 1px solid rgba(255, 102, 0, 0.35);
  border-radius: 2rem;
  padding: 0.3rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.policy-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: 0.03em;
  line-height: 1.05;
  margin: 0.5rem 0 1rem;
  color: #fff;
}

.policy-title span {
  color: #ff6600;
}

.policy-subtitle {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
  max-width: 580px;
  line-height: 1.6;
}

.policy-update {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.82rem;
  margin-bottom: 0;
  font-family: 'IBM Plex Mono', monospace;
}

.policy-hero-icon {
  width: 160px;
  height: 160px;
  background: rgba(255, 102, 0, 0.08);
  border: 1px solid rgba(255, 102, 0, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: #ff6600;
}

/* --- Quick Nav --- */

.policy-quicknav {
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  position: sticky;
  top: 0;
  z-index: 100;
}

.policy-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border-radius: 2rem;
  background: #fff;
  border: 1px solid #dee2e6;
  color: #495057;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.policy-nav-link:hover {
  background: #ff6600;
  border-color: #ff6600;
  color: #fff;
}

/* --- Cards --- */

.policy-content {
  background: #f8f9fa;
}

.policy-card {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  border: 1px solid #e9ecef;
}

.policy-card-last {
  margin-bottom: 0;
}

.policy-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid #f0f0f0;
  background: #fafafa;
}

.policy-card-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  line-height: 1;
  color: #ff6600;
  opacity: 0.5;
  flex-shrink: 0;
  margin-top: 2px;
}

.policy-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: 0.2rem;
}

.policy-card-lead {
  font-size: 0.83rem;
  color: #6c757d;
  margin-bottom: 0;
}

.policy-card-body {
  padding: 1.75rem;
  line-height: 1.7;
  color: #343a40;
  font-size: 0.93rem;
}

/* --- Infobox titolare --- */

.policy-infobox {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 1.25rem;
  border: 1px solid #e9ecef;
}

.policy-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.policy-info-icon {
  font-size: 1.1rem;
  color: #ff6600;
  margin-top: 2px;
  flex-shrink: 0;
}

.policy-info-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #adb5bd;
  font-weight: 600;
}

.policy-info-value {
  font-weight: 600;
  color: #212529;
  font-size: 0.9rem;
}

/* --- Headings inside cards --- */

.policy-h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #ff6600;
  display: inline-block;
}

/* --- Highlight box --- */

.policy-highlight {
  background: rgba(255, 102, 0, 0.06);
  border-left: 3px solid #ff6600;
  border-radius: 0 8px 8px 0;
  padding: 0.9rem 1rem;
  font-size: 0.88rem;
  color: #343a40;
  display: flex;
  align-items: flex-start;
  gap: 0.25rem;
}

.policy-highlight-warn {
  background: rgba(255, 193, 7, 0.07);
  border-left-color: #ffc107;
}

/* --- Purpose list --- */

.policy-purpose-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.policy-purpose-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.policy-purpose-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 102, 0, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff6600;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* --- Table --- */

.policy-table {
  font-size: 0.88rem;
  border-radius: 8px;
  overflow: hidden;
}

.policy-table thead th {
  background: #212529;
  color: #fff;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  padding: 0.75rem 1rem;
}

.policy-table tbody td {
  padding: 0.75rem 1rem;
  vertical-align: middle;
  border-color: #f0f0f0;
}

.policy-table tbody tr:hover {
  background: rgba(255, 102, 0, 0.03);
}

/* --- Tags / badges --- */

.policy-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(255, 102, 0, 0.1);
  color: #cc5200;
  border: 1px solid rgba(255, 102, 0, 0.25);
  margin-right: 0.25rem;
}

.policy-tag-tech {
  background: rgba(25, 135, 84, 0.1);
  color: #146c43;
  border-color: rgba(25, 135, 84, 0.25);
}

.policy-tag-infra {
  background: rgba(13, 110, 253, 0.1);
  color: #084298;
  border-color: rgba(13, 110, 253, 0.25);
}

/* --- Third-party card --- */

.policy-third-party-card {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  border: 1px solid #e9ecef;
}

.policy-third-party-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.policy-third-party-logo {
  width: 50px;
  height: 50px;
  background: #212529;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #ff6600;
  flex-shrink: 0;
}

/* --- Cookie status --- */

.policy-cookie-status {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(25, 135, 84, 0.07);
  border: 1px solid rgba(25, 135, 84, 0.2);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
}

.policy-cookie-status-icon {
  width: 44px;
  height: 44px;
  background: rgba(25, 135, 84, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #198754;
  flex-shrink: 0;
}

/* --- Rights items --- */

.policy-right-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  height: 100%;
}

.policy-right-icon {
  font-size: 1.2rem;
  color: #ff6600;
  flex-shrink: 0;
  margin-top: 2px;
}

/* --- Links --- */

.policy-link {
  color: #ff6600;
  text-decoration: none;
  font-weight: 600;
}

.policy-link:hover {
  color: #cc5200;
  text-decoration: underline;
}

.policy-external-link {
  display: inline-flex;
  align-items: center;
  color: #ff6600;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.policy-external-link:hover {
  color: #cc5200;
  text-decoration: underline;
}

/* --- Browser links --- */

.policy-browser-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  font-size: 0.83rem;
  color: #495057;
  text-decoration: none;
  transition: all 0.2s;
}

.policy-browser-link:hover {
  border-color: #ff6600;
  color: #ff6600;
  background: rgba(255, 102, 0, 0.04);
}

/* --- Lists --- */

.policy-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0;
}

.policy-list li {
  padding: 0.3rem 0 0.3rem 1.5rem;
  position: relative;
  font-size: 0.9rem;
}

.policy-list li::before {
  content: '\F270';
  font-family: 'bootstrap-icons';
  color: #ff6600;
  position: absolute;
  left: 0;
  top: 0.32rem;
  font-size: 0.75rem;
}

/* --- Responsive tweaks --- */

@media (max-width: 575px) {
  .policy-card-header {
    padding: 1.1rem 1.1rem;
  }
}

@media (max-width: 575px) {
  .policy-card-body {
    padding: 1.25rem 1.1rem;
  }
}

@media (max-width: 575px) {
  .policy-quicknav {
    position: static;
  }
}

