.ls-legal-document {
  max-width: 52rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.ls-legal-document h2 {
  margin-top: 1.4em;
  font-size: 1.2em;
}

.ls-legal-document ul {
  padding-left: 1.4em;
}

.ls-legal-document li {
  margin-bottom: .6em;
}

.ls-legal-footer {
  position: relative;
  z-index: 9999;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem 1.25rem;
  padding: 1rem 1rem 3.75rem;
  pointer-events: none;
}

.ls-legal-footer a {
  pointer-events: auto;
}

.ls-legal-form {
  clear: both;
  margin: .85rem 0;
  font-size: .9em;
  line-height: 1.45;
}

.ls-legal-form p {
  margin: 0 0 .45rem;
}

.ls-legal-form input[type="checkbox"] {
  appearance: auto;
  width: auto;
  margin: 0 .3em 0 0;
}

.ls-legal-form a,
.ls-legal-footer a,
#ls-cookie-panel a {
  text-decoration: underline;
  text-underline-offset: .12em;
}

#ls-cookie-panel {
  position: fixed;
  z-index: 10000;
  left: max(12px, env(safe-area-inset-left));
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  max-width: 58rem;
  margin-inline: auto;
  padding: 14px 18px;
  background: #fff;
  color: #222;
  border: 1px solid #a5a5a5;
  border-radius: 8px;
  box-shadow: 0 3px 18px #0003;
  text-align: left;
  font-size: 15px;
  line-height: 1.4;
}

#ls-cookie-panel[hidden]:not(:target) {
  display: none !important;
}

#ls-cookie-panel[hidden]:target {
  display: block;
}

.ls-cookie-form {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0;
}

.ls-cookie-form p {
  flex: 1;
  margin: 0;
}

.ls-cookie-form button {
  flex: none;
  min-height: 42px;
  padding: 8px 15px;
  background: #ff7c00;
  color: #222;
  border: 0;
  border-radius: 4px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

body:has(#ls-cookie-panel:not([hidden])) .ls-legal-footer {
  margin-bottom: 8rem;
}

@media (max-width: 580px) {
  .ls-cookie-form {
    align-items: flex-start;
    flex-direction: column;
    gap: .6rem;
  }
  body:has(#ls-cookie-panel:not([hidden])) .ls-legal-footer {
    margin-bottom: 15rem;
  }
}
