p {
  margin: 30px 0 !important;
}

h2 {
  color: var(--primary-color);
  font-size: 1.8rem;
  margin: 40px 0 20px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
  margin-top: 20px;
}

h3 {
  color: var(--black);
  font-size: 1.4rem;
  margin: 30px 0 15px 0;
  font-weight: 700;
}

#toc p {
  margin: 0 !important;
}
#toc p a {
  display: block;
  padding: 8px 15px;
  margin: 5px 0;
  background-color: #f8f9fa;
  border-left: 4px solid var(--primary-color);
  border-radius: 0 5px 5px 0;
  transition: all 0.3s ease;
  text-decoration: none;
}
#toc p a:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateX(5px);
}

ul {
  margin: 10px 0 !important;
  padding-left: 30px;
}
ul li {
  margin-bottom: 10px;
  position: relative;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  background-color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}
table th {
  background-color: var(--primary-color);
  color: white;
  padding: 15px;
  text-align: left;
  font-weight: 700;
  font-size: 1rem;
}
table td {
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
}
table td p {
  margin: 0;
  text-align: left;
}
table tbody tr {
  transition: background-color 0.3s ease;
}
table tbody tr:hover {
  background-color: #f8f9fa;
}
table tbody tr:nth-child(even) {
  background-color: #fafafa;
}

strong {
  color: var(--black);
  font-weight: 700;
}

h2[id], h3[id] {
  scroll-margin-top: 100px;
  position: relative;
}
h2[id]::before, h3[id]::before {
  content: "#";
  position: absolute;
  left: -25px;
  color: var(--primary-color);
  opacity: 0;
  transition: opacity 0.3s ease;
}
h2[id]:hover::before, h3[id]:hover::before {
  opacity: 0.7;
}

#contact + p {
  background-color: #e8f4f8;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--primary-color);
}
#contact + p a {
  font-weight: 600;
}

p:first-child {
  text-align: center;
  font-style: italic;
  color: #666;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 30px;
}

@media print {
  .privacy-policy .container {
    max-width: none;
    padding: 0;
  }
  .privacy-policy .container h2 {
    color: black;
    border-bottom-color: black;
  }
  .privacy-policy .container h3 {
    color: black;
  }
  .privacy-policy .container a {
    color: black;
    text-decoration: underline;
  }
  .privacy-policy .container table {
    box-shadow: none;
    border: 1px solid black;
  }
  .privacy-policy .container table th {
    background-color: #f0f0f0;
    color: black;
  }
  .privacy-policy .container #toc + p a {
    background-color: transparent;
    border: 1px solid black;
    color: black;
  }
}