/* =========================
   LEGAL + COOKIE CONSENT
========================= */

/* footer links */
.legalNav{
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 16px 0;
}

.legalNav__list{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.legalNav__list a,
.legalNav__btn{
  color: rgba(255,255,255,0.62);
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legalNav__list a:hover,
.legalNav__btn:hover{
  color: #fff;
}

.legalNav__btn{
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

/* buttons */
.cookieBtn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 2px solid #0f172a;
  border-radius: 12px;
  background: #0f172a;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.cookieBtn--outline{
  background: #fff;
  color: #0f172a;
}

.cookieLink{
  padding: 0;
  border: 0;
  background: transparent;
  color: #0f172a;
  font: inherit;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* notice */
.cookieNotice{
  position: fixed;
  z-index: 100000;
  left: 24px;
  bottom: 24px;
  width: min(480px, calc(100vw - 48px));
  padding: 22px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.22);
  color: #0f172a;
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.cookieNotice[hidden]{ display: none; }

.cookieNotice__title{
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
}

.cookieNotice__text{
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

.cookieNotice__actions,
.cookieDialog__actions{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 16px;
}

.cookieNotice__policy{
  display: inline-block;
  margin-top: 12px;
  color: #596579;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* dialog */
.cookieDialog{
  width: min(600px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: 18px;
  color: #0f172a;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.3);
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.cookieDialog::backdrop{ background: rgba(15, 23, 42, 0.55); }

.cookieDialog__body{ padding: 26px; }

.cookieDialog__body h2{
  margin: 0 0 10px;
  font-size: 22px;
}

.cookieDialog__body > p{
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

.cookieCategory{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 18px;
  padding: 14px 0;
  border-top: 1px solid rgba(15, 23, 42, 0.12);
  font-size: 15px;
}

.cookieCategory:first-of-type{ margin-top: 16px; }

.cookieCategory p{
  grid-column: 1 / -1;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #475569;
}

.cookieCategory__status{
  color: #087d6d;
  font-size: 13px;
  font-weight: 700;
}

.cookieCategory input{
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: #0f172a;
}

/* map placeholder */
.mapConsent{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  padding: 28px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(226, 232, 240, 0.75), rgba(241, 245, 249, 0.9)),
    repeating-linear-gradient(0deg, rgba(15, 23, 42, 0.06) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, rgba(15, 23, 42, 0.06) 0 1px, transparent 1px 44px);
}

.mapConsent__inner{
  width: min(100%, 440px);
  padding: 22px 24px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.14);
}

.mapConsent__inner[hidden]{ display: none; }

.mapConsent__title{
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}

.mapConsent__text{
  margin: 10px 0 18px;
  color: #475569;
  font-size: 13px;
  line-height: 1.55;
}

.mapConsent__actions{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 18px;
}

.mapConsent__actions a{
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.mapConsent.is-loaded{
  display: block;
  padding: 0;
}

.mapConsent__hide{
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 10px 16px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
  color: #0f172a;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

/* legal pages */
.legalPage{
  padding-top: 18px;
  padding-bottom: 56px;
}

.legalPage__content{
  max-width: 860px;
  font-size: 16px;
  line-height: 1.65;
}

.legalPage__content h2{
  margin: 34px 0 10px;
  font-size: 22px;
  line-height: 1.25;
}

.legalPage__content p{ margin: 0 0 12px; }

.legalPage__content ul{
  margin: 0 0 12px;
  padding-left: 22px;
}

.legalPage__content li + li{ margin-top: 8px; }

.legalPage__content a{
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.legalPage__content table{
  width: 100%;
  margin: 16px 0;
  border-collapse: collapse;
  font-size: 15px;
}

.legalPage__content th,
.legalPage__content td{
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  text-align: left;
  vertical-align: top;
}

.legalPage__content th{ background: #f1f5f9; }

.legalPage__content code{ overflow-wrap: anywhere; }

@media (max-width: 640px){
  .cookieNotice{
    left: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
    padding: 18px;
  }

  .cookieNotice__actions,
  .cookieDialog__actions{
    flex-direction: column;
    align-items: stretch;
  }

  .legalNav__list{
    flex-direction: column;
    align-items: center;
  }

  .legalPage__content table,
  .legalPage__content thead,
  .legalPage__content tbody,
  .legalPage__content tr,
  .legalPage__content th,
  .legalPage__content td{
    display: block;
  }

  .legalPage__content thead{ display: none; }

  .legalPage__content tr + tr{ margin-top: 10px; }
}

/* WhatsApp photo button on service pages */
.btn.waPhoto{
  gap: 8px;
  background: #25D366;
  border-color: #1FC75D;
  color: #fff;
}

.btn.waPhoto:hover{
  background: #1FC75D;
}

.waPhoto__icon{
  width: 18px;
  height: 18px;
  display: block;
}
