/* ==========================================================================
   PÀGINA DE COOKIES (COMPLIANZ)
   ========================================================================== */

body.cmplz-document,
body.cmplz-document #main {
  background-color: #FFFFFF !important;
}

#main #cmplz-document {
  max-width: var(--max-w, 1440px);
  margin: 0 auto;
  padding: 64px; 
  font-family: var(--font-sans, system-ui, sans-serif);
  color: var(--c-desc, #0A0A0A);
  line-height: 1.6;
  background-color: #FFFFFF; 
}

#main #cmplz-document h2 {
  font-family: var(--font-sans, system-ui, sans-serif);
  color: var(--c-tit, #000078);
  font-size: 32px;
  font-weight: 700; 
  margin-top: 64px;
  margin-bottom: 24px;
  border-bottom: 1px solid #DCE6F8;
  padding-bottom: 16px;
}

#main #cmplz-document h2:first-child {
  margin-top: 0;
}

#main #cmplz-document h3 {
  font-family: var(--font-serif, Georgia, serif);
  color: var(--c-tit, #000078);
  font-size: 24px;
  font-weight: 400; 
  margin-top: 40px;
  margin-bottom: 16px;
}

#main #cmplz-document h4, 
#main #cmplz-document h5 {
  font-family: var(--font-sans, system-ui, sans-serif);
  color: var(--c-tit, #000078);
  font-size: 18px;
  font-weight: 700;
  margin-top: 24px;
  margin-bottom: 8px;
}

#main #cmplz-document p, 
#main #cmplz-document ul {
  font-size: 18px;
  margin-bottom: 16px;
}

#main #cmplz-document ul {
  padding-left: 24px;
}

#main #cmplz-document li {
  margin-bottom: 8px;
}

#main #cmplz-document a {
  color: var(--c-lnk-t, #000078);
  text-decoration: underline;
  font-weight: 600;
  transition: opacity 0.3s ease;
}

#main #cmplz-document a:hover {
  opacity: 0.8;
}

#main #cmplz-document details.cmplz-dropdown {
  background: #F5F7FA;
  border: 1px solid #DCE6F8;
  border-radius: 8px;
  margin-bottom: 16px;
  padding: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

#main #cmplz-document details.cmplz-dropdown[open] {
  background: #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 0, 120, 0.05);
}

#main #cmplz-document summary.cmplz-service-header,
#main #cmplz-document details.cmplz-dropdown summary,
#main #cmplz-document .cmplz-service-header::before,
#main #cmplz-document .cmplz-service-header::after,
#main #cmplz-document summary::before,
#main #cmplz-document summary::after {
  background-image: none !important;
  content: none !important;
}

#main #cmplz-document summary.cmplz-service-header {
  cursor: pointer;
  padding: 24px;
  list-style: none;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  background-color: transparent;
  position: relative;
}

#main #cmplz-document summary.cmplz-service-header::-webkit-details-marker {
  display: none !important;
}

#main #cmplz-document summary.cmplz-service-header > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 4px;
  flex: 1; 
  padding-right: 48px;
}

#main #cmplz-document summary.cmplz-service-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  font-family: var(--font-sans, system-ui, sans-serif);
}

#main #cmplz-document summary.cmplz-service-header p {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  color: #646970;
}

#main #cmplz-document summary.cmplz-service-header > div::after {
  content: '+';
  font-size: 24px;
  font-weight: 400;
  color: #000078;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid #DCE6F8;
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.3s ease;
  line-height: 1;
  padding-bottom: 2px;
}

#main #cmplz-document details[open] summary.cmplz-service-header > div::after {
  content: '-';
  background: #000078;
  color: #FFFFFF;
  border-color: #000078;
  padding-bottom: 4px;
}

#main #cmplz-document summary.cmplz-service-header input[type="checkbox"],
#main #cmplz-document summary.cmplz-service-header label {
  display: none !important;
}

#main #cmplz-document .cmplz-service-description,
#main #cmplz-document .cmplz-sharing-data {
  padding: 0 24px 16px 24px;
}

#main #cmplz-document .cmplz-service-description h4,
#main #cmplz-document .cmplz-sharing-data h4 {
  margin-top: 0;
  font-size: 16px;
}

#main #cmplz-document .cookies-per-purpose {
  margin: 0 24px 24px 24px;
  padding: 24px;
  background: #F5F7FA;
  border-radius: 8px;
  border: 1px solid #DCE6F8;
}

#main #cmplz-document .cookies-per-purpose .purpose h4 {
  margin-top: 0;
  margin-bottom: 16px;
  border-bottom: 1px solid #DCE6F8;
  padding-bottom: 8px;
}

#main #cmplz-document .name-header,
#main #cmplz-document .retention-header,
#main #cmplz-document .function-header {
  font-size: 14px;
  color: #646970;
  margin-top: 16px;
  margin-bottom: 4px;
}

#main #cmplz-document .name-header h5,
#main #cmplz-document .retention-header h5,
#main #cmplz-document .function-header h5 {
  margin: 0;
  font-size: 14px;
  color: inherit;
}

#main #cmplz-document .name,
#main #cmplz-document .retention,
#main #cmplz-document .function {
  font-size: 16px;
  font-weight: 700;
  color: #0A0A0A;
  word-break: break-word;
}

#main #cmplz-document .cmplz-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

#main #cmplz-document .cmplz-category {
  background: #F5F7FA;
  border: 1px solid #DCE6F8;
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#main #cmplz-document .cmplz-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  position: relative; 
}

#main #cmplz-document .cmplz-category-title {
  flex: 1;
  font-size: 20px;
  font-weight: 700;
  color: #000078;
}

#main #cmplz-document .cmplz-always-active,
#main #cmplz-document .cmplz-banner-checkbox {
  font-size: 14px;
  font-weight: 700;
  color: #09DE7D; 
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 48px;
  position: relative;
  z-index: 2; 
}

#main #cmplz-document .cmplz-category-header::after {
  content: '+';
  font-size: 24px;
  font-weight: 400;
  color: #000078;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid #DCE6F8;
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.3s ease;
  line-height: 1;
  padding-bottom: 2px;
  pointer-events: none; 
  z-index: 2;
}

#main #cmplz-document .cmplz-category-toggle {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0; 
  cursor: pointer;
  z-index: 1; 
  margin: 0;
  padding: 0;
  border: none;
}

#main #cmplz-document .cmplz-category:has(.cmplz-category-toggle[aria-expanded="true"]) {
  background: #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 0, 120, 0.05);
}

#main #cmplz-document .cmplz-category:has(.cmplz-category-toggle[aria-expanded="true"]) .cmplz-category-header::after {
  content: '-';
  background: #000078;
  color: #FFFFFF;
  border-color: #000078;
  padding-bottom: 4px;
}

#main #cmplz-document .cmplz-description {
  margin: 0 24px 24px 24px;
  padding-top: 16px;
  border-top: 1px solid #DCE6F8;
  font-size: 16px;
  color: #646970;
}

/* --------------------------------------------------------------------------
   7. RESPONSIVE MÒBIL
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  #main #cmplz-document {
    padding: 32px 24px; 
  }

  #main #cmplz-document h2 {
    font-size: 28px;
    margin-top: 40px;
  }

  #main #cmplz-document h3 {
    font-size: 20px;
  }

  #main #cmplz-document p, 
  #main #cmplz-document ul {
    font-size: 16px;
  }

  #main #cmplz-document summary.cmplz-service-header,
  #main #cmplz-document .cmplz-category-header {
    padding: 16px;
  }
  
  #main #cmplz-document summary.cmplz-service-header > div,
  #main #cmplz-document .cmplz-always-active,
  #main #cmplz-document .cmplz-banner-checkbox {
    padding-right: 40px;
    margin-right: 0;
  }

  #main #cmplz-document summary.cmplz-service-header > div::after,
  #main #cmplz-document .cmplz-category-header::after {
    right: 16px;
  }

  #main #cmplz-document .cookies-per-purpose {
    margin: 0 16px 16px 16px;
    padding: 16px;
  }
  
  #main #cmplz-document .cmplz-description {
    margin: 0 16px 16px 16px;
  }
}