/* Custom legal pages, privacy consent and cookie consent. */

/* Form consent */
.privacy-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0 8px;
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
}
.pum-theme-523 .pum-container,
.pum-theme-lightbox .pum-container {
  overflow: auto;
}
.prob {
  justify-content: center;
  display: flex;
  align-items: center;
}

.privacy-consent .privacy-consent__checkbox {
  appearance: auto;
  -webkit-appearance: checkbox;
  flex: 0 0 auto;
  width: 18px !important;
  height: 18px !important;
  min-height: 0 !important;
  margin: 1px 0 0 !important;
  padding: 0 !important;
  border: initial !important;
  background: initial !important;
  text-transform: none !important;
}

.privacy-consent a {
  color: inherit;
  text-decoration: underline;
}

.top_forma .privacy-consent,
.main_form .privacy-consent {
  color: #fff;
}

.privacy-consent__error {
  display: none;
  margin: 0 0 12px;
  color: #ffd9d9;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}

.privacy-consent__error.is-visible {
  display: block;
}

/* Cookie banner */
.cookie-consent {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 100000;
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 20px;
  border-radius: 16px;
  background: #fff;
  color: #333;
  box-shadow: 0 12px 44px rgba(0, 0, 0, 0.24);
  font-size: 14px;
  line-height: 1.45;
}

.cookie-consent__text {
  flex: 1 1 auto;
  margin: 0;
}

.cookie-consent__text a {
  color: #3c9f50;
  font-weight: 600;
  text-decoration: underline;
}

.cookie-consent__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.cookie-consent__button {
  min-width: 150px;
  padding: 13px 18px;
  border: 2px solid #60b265;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.cookie-consent__button--accept {
  background: #60b265;
  color: #fff;
}

.cookie-consent__button--necessary {
  background: #fff;
  color: #3f9448;
}

/* Legal document pages */
body.legal-page {
  margin: 0;
  background: #f3f5f3;
  color: #222;
}

/* Same homepage header markup. On an inner page it gets the homepage scrolled-state background immediately. */
.legal-page header {
  position: relative;
  left: auto;
  top: auto;
  width: 100%;
  padding: 20px 0;
  background: #000;
}
.legal-page header.fixMe {
  position: relative;
  padding: 20px 0;
  background: #000;
}
.legal-page .logo img {
  max-width: 178px;
  height: auto;
}

.legal-main {
  position: relative;
  z-index: 5;
  padding: 42px 0 64px;
}
.legal-document {
  max-width: 1120px;
  margin: 0 auto;
  padding: 42px 46px 54px;
  background: #fff;
  box-shadow: 0 7px 28px rgba(0, 0, 0, 0.07);
}
.legal-document h1 {
  margin: 0 0 10px;
  color: #169c43;
  font-size: 34px;
  line-height: 1.18;
  font-weight: 800;
}
.legal-published {
  margin: 0 0 28px;
  color: #666;
  font-size: 14px;
}
.legal-document__content {
  font-size: 15px;
  line-height: 1.58;
}
.legal-document__content p {
  margin: 0 0 13px;
}
.legal-document__content a {
  color: #178f3d;
  text-decoration: underline;
  overflow-wrap: anywhere;
}
.legal-document__content ul,
.legal-document__content ol {
  margin: 0 0 14px 20px;
  padding: 0;
  list-style: initial;
}
.legal-document__content li {
  margin-bottom: 5px;
}

/* PDF 2-column question/answer tables become independent web cards. */
.legal-info-list {
  display: grid;
  gap: 16px;
  margin: 24px 0 30px;
}
.legal-info-card {
  display: grid;
  grid-template-columns: minmax(190px, 25%) 1fr;
  border: 1px solid #d8e3d9;
  background: #fff;
}
.legal-info-card__title {
  padding: 18px 20px;
  background: #5fb768;
  color: #fff;
  font-weight: 700;
  line-height: 1.35;
}
.legal-info-card__body {
  min-width: 0;
  padding: 18px 22px;
}
.legal-info-card__body > :last-child {
  margin-bottom: 0;
}

/* The 4-column PDF table is much more readable as a card per processing purpose. */
.legal-purpose-list {
  display: grid;
  gap: 18px;
  margin: 24px 0 32px;
}
.legal-purpose-card {
  overflow: hidden;
  border: 1px solid #cfe0d1;
  background: #fff;
}
.legal-purpose-card__title {
  padding: 16px 20px;
  background: #5fb768;
  color: #fff;
}
.legal-purpose-card__eyebrow {
  display: block;
  margin-bottom: 5px;
  opacity: 0.8;
  font-size: 11px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.legal-purpose-card__heading {
  font-size: 17px;
  line-height: 1.4;
  font-weight: 700;
}
.legal-purpose-card__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
}
.legal-purpose-card__item {
  min-width: 0;
  padding: 17px 18px 20px;
  border-right: 1px solid #e1e8e2;
}
.legal-purpose-card__item:last-child {
  border-right: 0;
}
.legal-purpose-card__label,
.legal-recipient-card__label {
  margin-bottom: 8px;
  color: #3e7e47;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.legal-purpose-card__value {
  overflow-wrap: anywhere;
}
.legal-purpose-card__value > :last-child {
  margin-bottom: 0;
}

/* Third-party recipient matrix: no rowspan; each recipient/group is self-contained. */
.legal-recipient-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.legal-recipient-card {
  padding: 16px;
  border: 1px solid #dce5dd;
  background: #f8fbf8;
}
.legal-recipient-card__name {
  margin-bottom: 14px;
  color: #237f34;
  font-weight: 800;
}
.legal-recipient-card__field + .legal-recipient-card__field {
  margin-top: 14px;
}
.legal-recipient-card__value {
  overflow-wrap: anywhere;
}
.legal-recipient-note {
  margin-top: 15px;
  padding: 12px 14px;
  border-left: 4px solid #5fb768;
  background: #f3f9f4;
}

/* Keep homepage footer exactly styled; account for the added third line. */
.legal-page footer {
  margin-top: 0;
}
footer p:nth-child(3) {
  font-size: 16px;
}

@media (max-width: 991px) {
  .legal-page header {
    padding: 16px 0;
  }
  .legal-document {
    padding: 34px 30px 42px;
  }
  .legal-info-card {
    grid-template-columns: 210px 1fr;
  }
  .legal-purpose-card__grid {
    grid-template-columns: 1fr;
  }
  .legal-purpose-card__item {
    border-right: 0;
    border-bottom: 1px solid #e1e8e2;
  }
  .legal-purpose-card__item:last-child {
    border-bottom: 0;
  }
  .legal-recipient-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .legal-page header {
    padding: 12px 0;
  }
  .legal-main {
    padding: 18px 0 34px;
  }
  .legal-document {
    padding: 24px 16px 32px;
  }
  .legal-document h1 {
    font-size: 25px;
  }
  .legal-document__content {
    font-size: 14px;
    line-height: 1.5;
  }
  .legal-info-card {
    display: block;
  }
  .legal-info-card__title {
    padding: 13px 15px;
  }
  .legal-info-card__body {
    padding: 15px;
  }
  .legal-purpose-card__title {
    padding: 14px 15px;
  }
  .legal-purpose-card__item {
    padding: 14px 15px 16px;
  }
}
