@import url("/assets/css/app.css");

body {
  position: relative;
  padding-top: 5%;
  padding-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  line-height: 1.6;
}

.logo {
  width: 100px;
  height: 50px;
  position: fixed;
  left: 25px;
  top: 10px;
}

.pp {
  width: 60%;
  color: var(--color-black);
}

.pp h1 {
  font-size: 80px;
  text-align: center;
  width: 100%;
}

.metadata {
  text-align: center;
  font-size: 0.9em;
  opacity: 0.9;
  margin-top: 20px;
}

.policy-nav {
  padding: 20px;
  width: 95%;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 4px var(--light-dark-color);
  margin-top: 30px;
  margin-bottom: 30px;
  background-color: var(--light-white-color2);
  position: sticky;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  top: 20px;
  z-index: 100;
  border: 2px solid var(--light-dark-color);
  margin-left: 2.5%;
}

.policy-nav h3 {
  margin-bottom: 15px;
  color: var(--main-color);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-link {
  padding: 6px 12px;
  background: none;
  border-radius: var(--border-radius);
  text-decoration: none;
  color: var(--color-black-opacity);
  font-size: 0.9em;
  transition: all var(--short-anim-secs) ease;
  border: 2px solid var(--light-dark-color);
}

.nav-link:hover {
  background: var(--main-color);
  color: white;
  transform: translateY(-2px);
}

.policy-content {
  background: var(--color-white);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 2px 4px var(--light-dark-color);
  margin-bottom: 30px;
}

.section {
  margin-bottom: 40px;
  scroll-margin-top: 100px;
}

.section h2 {
  color: var(--main-color);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e9ecef;
  font-size: 1.8em;
}

.section h3 {
  color: var(--color-black-opacity);
  margin: 25px 0 15px 0;
  font-size: 1.3em;
}

.section p {
  margin-bottom: 15px;
  text-align: justify;
}

.section ul {
  margin: 15px 0;
  padding-left: 30px;
}

.section li {
  margin-bottom: var(--border-radius);
}

.highlight-box {
  background: #f8f9fa;
  border-left: 4px solid var(--main-color);
  padding: 20px;
  margin: 20px 0;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.9em;
  box-shadow: 0 1px 3px var(--light-dark-color);
}

.data-table th {
  background: var(--main-color);
  color: white;
  text-align: left;
  padding: 12px 15px;
  font-weight: 600;
}

.data-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #e9ecef;
}

.data-table tr:nth-child(even) {
  background: #f8f9fa;
}

.data-table tr:hover {
  background: #e3f2fd;
}

.retention-table {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 2px 4px var(--light-dark-color);
}

.retention-table th {
  background: #8278da;
}

.contact-info {
  background: linear-gradient(135deg, var(--main-color) 0%, #8278da 100%);
  color: white;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  margin-top: 40px;
}

.contact-info h3 {
  margin-bottom: 20px;
  font-size: 1.5em;
  color: var(--color-white);
}

.contact-details {
  display: inline-block;
  text-align: left;
  background: var(--light-white-color);
  padding: 20px;
  border-radius: var(--border-radius);
  backdrop-filter: blur(10px);
}

.footer-links {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
  width: 100%;
  height: 505px;
}

.footer-link {
  color: var(--main-color);
  text-decoration: none;
  margin: 0 15px;
  font-weight: var(--thick-font-weight);
}

@media (max-width: 768px) {
  .policy-header h1 {
    font-size: 2em;
  }

  .policy-content {
    padding: 20px;
  }

  .nav-links {
    flex-direction: column;
  }

  .nav-link {
    text-align: center;
  }

  .data-table {
    font-size: 0.8em;
  }

  .data-table th,
  .data-table td {
    padding: var(--border-radius) 10px;
  }
}

.definition-list {
  background: #f8f9fa;
  padding: 20px;
  border-radius: var(--border-radius);
  margin: 20px 0;
}

.definition-item {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e9ecef;
}

.definition-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.definition-term {
  font-weight: bold;
  color: var(--main-color);
  margin-bottom: 5px;
}

.legal-basis {
  background: #e8f5e8;
  border-left: 4px solid #4caf50;
  padding: 15px;
  margin: 15px 0;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* Responsive Styles */
@media screen and (max-width: 1024px) {
  .pp {
    width: 75%;
  }
}

@media screen and (max-width: 768px) {
  body {
    padding-top: 70px;
  }

  .logo {
    width: 80px;
    height: 40px;
    left: 15px;
    top: 15px;
  }

  .pp {
    width: 90%;
  }

  .policy-nav {
    padding: 15px;
    top: 10px;
    width: 100%;
    margin-left: 0;
  }

  .nav-links {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links::-webkit-scrollbar {
    height: 3px;
  }

  .nav-links::-webkit-scrollbar-thumb {
    background: var(--light-dark-color);
    border-radius: var(--border-radius);
  }

  .nav-link {
    white-space: nowrap;
  }

  .policy-content {
    padding: 25px;
  }

  .section {
    scroll-margin-top: 80px;
  }

  .contact-info {
    padding: 20px;
  }

  .contact-details {
    padding: 15px;
    max-width: 100%;
  }

  .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .footer-link {
    margin: 0 5px;
  }
}

@media screen and (max-width: 480px) {
  body {
    padding-top: 60px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .logo {
    width: 60px;
    height: 30px;
    left: 10px;
    top: 10px;
  }

  .pp {
    width: 100%;
  }

  .policy-nav {
    padding: 12px;
  }

  .policy-nav h3 {
    margin-bottom: 10px;
  }

  .policy-content {
    padding: 15px;
  }

  .section {
    margin-bottom: 30px;
  }

  .section h2 {
    margin-bottom: 15px;
  }

  .section ul {
    padding-left: 20px;
  }

  .highlight-box {
    padding: 15px;
  }

  .data-table th,
  .data-table td {
    padding: 8px 10px;
  }

  .contact-info {
    padding: 15px;
    margin-top: 30px;
  }

  .contact-details {
    padding: 12px;
  }

  .definition-list {
    padding: 15px;
  }

  .definition-item {
    margin-bottom: 12px;
    padding-bottom: 12px;
  }

  .footer-link {
    font-size: 0.9rem;
    padding: 3px;
  }
}

/* Improve table scrolling on mobile */
@media screen and (max-width: 600px) {
  .data-table,
  .retention-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }

  .data-table::-webkit-scrollbar,
  .retention-table::-webkit-scrollbar {
    height: 4px;
  }

  .data-table::-webkit-scrollbar-thumb,
  .retention-table::-webkit-scrollbar-thumb {
    background: var(--light-dark-color);
    border-radius: var(--border-radius);
  }
}

/* Print styles */
@media print {
  .logo,
  .policy-nav,
  .footer-links {
    display: none;
  }

  body {
    padding: 0;
  }

  .pp {
    width: 100%;
  }

  .policy-content {
    box-shadow: none;
    padding: 0;
  }
}
