:root {
  --primary: #5965fc;
  --secondary: #6c757d;
  --light-bg: #fff;
  --card-bg: #ffffff;
  --border: #e0e0e5;
  --text-color: #000;
  --text-secondary: #666;
}

body {
  background-color: var(--light-bg);
  font-family: "Satoshi", sans-serif;
  color: var(--text-color);
  line-height: 1.6;
}

footer a {
  color: #fff;
}

a {
  color: var(--primary);
}

ul {
  list-style: none;
  padding-left: 0;
}

tbody,
td,
tfoot,
th,
thead,
tr {
  border-color: #000000;
  border-style: solid;
  border-width: 1px;
}

.sidebar {
  background-color: var(--card-bg);
  padding: 1.5rem 1rem;
  border-right: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 91px;
  height: 90vh;
  overflow-y: auto;
}

.sidebar h1 {
  font-size: 1.37rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary);
  color: #2c3e50;
}

.nav-list {
  padding-left: 0;
  margin-bottom: 0;
}

.nav-list > .nav-item {
  margin-bottom: 0.5rem;
}

.nav-link {
  color: #374151;
  font-size: 1.065rem;
  transition: all 0.3s ease;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  position: relative;
}

.nav-link i {
  margin-right: 12px;
  width: 20px;
  text-align: center;
}

.nav-link:hover {
  background-color: rgba(89, 101, 252, 0.1);
  color: var(--primary);
}

.nav-link.active {
  font-weight: 600;
  color: var(--primary);
  position: relative;
  z-index: 5;
  box-shadow: 0 0 10px rgba(89, 101, 252, 0.3);
}

.nav-link.active::after,
.nav-link:hover::after {
  content: "✦";
  position: absolute;
  left: -16px;
  background: #fff;
  color: var(--primary);
  font-size: 14px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

/* Stili per sottomenu nidificato */
.submenu {
  padding-left: 1.5rem;
  margin-top: 0.25rem;
}

.submenu .nav-item {
  font-size: 1.065rem;
  font-weight: 500;
}

.submenu .submenu {
  padding-left: 1.5rem;
}

.submenu .submenu .nav-link {
  font-weight: 400;
}

.content {
  padding: 2rem;
  background-color: #fffbff;
}

.header-section {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

#sectionTitle {
  font-size: 1.75rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.section-description {
  color: var(--secondary);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.legal-card {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  margin-bottom: 2rem;
  padding: 2rem;
}

.legal-content {
  color: var(--text-color);
}

.legal-content h2 {
  color: var(--text-color);
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.legal-content h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-color);
}

.legal-content p {
  margin-bottom: 1rem;
}

.legal-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.legal-content ul li {
  margin-bottom: 0.5rem;
  position: relative;
}

.legal-content ul li:before {
  content: "•";
  color: var(--primary);
  position: absolute;
  left: -1rem;
}

.highlight-box {
  background-color: rgba(89, 101, 252, 0.05);
  border-left: 4px solid var(--primary);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 4px 4px 0;
}

.last-update {
  font-size: 0.9rem;
  color: var(--secondary);
  font-style: italic;
  margin-top: 2rem;
  text-align: left;
  padding-left: 20px;
}

@media (max-width: 991.98px) {
  .desktop-view {
    display: none;
  }

  .content {
    padding: 0;
  }

  .accordion-button:not(.collapsed) {
    background-color: #fff;
  }

  .accordion-button::after {
    padding-left: 21px;
  }
}

@media (min-width: 992px) {
  .accordion-item {
    border: none;
    background-color: #fffbff;
    padding-top: 50px;
  }

  .accordion-button {
    border: none;
    font-size: 28px;
    font-weight: 700;
    pointer-events: none;
    background-color: #fffbff;
    color: #000;
    text-transform: uppercase;
  }

  .accordion-button:not(.collapsed) {
    background-color: #fffbff;
  }

  .accordion-button::after {
    display: none;
  }

  .collapsed {
    pointer-events: none;
  }

  .collapse:not(.show) {
    display: block;
  }
}
