.popup-policies[hidden] {
  display: none;
}

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10002;
}

.popup-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 600px;
  background: white;
  padding: 1.5rem;
  /* border-radius: 12px; */
  z-index: 10003;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  max-height: 80vh;
  overflow-y: auto;
  font-size: 0.75rem;

  h1,
  h2,
  h3,
  h4 {
    margin-bottom: 1rem;
    text-align: justify;
    margin-top: 2rem;
  }

  h1 {
    margin-top: 0;
  }

  p {
    margin-bottom: 1rem;
    text-align: justify;

    &.sub-header {
      margin-bottom: .5rem;
    }
  }

  a {
    text-decoration: none;
    color: var(--red-mediapro-color);

    &:hover {
      text-decoration: underline;
      font-weight: 500;
    }
  }

  ul {
    list-style-type: disc;
    list-style-position: inside;
    margin-bottom: 1rem;
      li {
        margin-bottom: .33rem;
      }
    &.index-privacitat {
      list-style-type: none;
      li {
        padding-left: 1rem;
        margin-bottom: 0;
        ul {
          margin: 0;
          list-style-type: none;
        }
      }
    }
  }

  .small {
    font-size: 0.66rem;
  }

  .extra-pad-bot {
    padding-bottom: 2rem;
  }

  .underline {
    text-decoration: underline;
  }

  #showTableCookies {
    color: var(--red-mediapro-color);
    cursor: pointer;
  }

  #wrapperTableCookies {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;

    &.show {
      max-height: 1000px;
    }
  }

  table,
  th,
  td {
    border: 1px solid black;
    border-collapse: collapse;
    padding: 5px;
    text-align: justify;
  }
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;

  &:hover {
    color: var(--red-mediapro-color);
  }
}

/* 
<a href="https://ethics.mediapro.tv/ca">ethics.mediapro.tv</a>
<a href="mailto:dpd@mediapro.tv">dpd@mediapro.tv</a>
<span class="underline">
</span> */