.sc-widget,
.sc-widget * {
  box-sizing: border-box;
}

.sc-widget {
  position: fixed;
  z-index: 10001;
  left: 24px;
  bottom: 24px;
  width: calc(100% - 48px);
  max-width: 480px;
  padding: 24px;
  overflow: hidden;
  color: #faf7f2;
  font-family: ubuntu_regular, Arial, sans-serif;
  background:
    linear-gradient(135deg, rgba(129, 118, 62, 0.3), transparent 42%),
    rgba(50, 83, 75, 0.97);
  border: 1px solid rgba(250, 247, 242, 0.24);
  box-shadow: 0 22px 55px rgba(24, 42, 38, 0.38);
  animation: sc-widget-show 0.45s ease both;
}

.sc-widget::before {
  content: "";
  display: block;
  width: 70px;
  height: 2px;
  margin: 0 0 16px;
  background: #a9bbb6;
}

.sc-widget__text {
  margin: 0 0 18px;
  color: rgba(250, 247, 242, 0.94);
  font-size: 14px;
  line-height: 1.55;
}

.sc-widget__text a,
.sc-widget__text a:visited {
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  transition: border-color 0.2s ease, opacity 0.2s ease;
}

.sc-widget__text a:hover {
  border-color: #ffffff;
  opacity: 0.82;
}

.sc-widget__actions {
  display: flex;
  gap: 12px;
  width: 100%;
}

.sc-widget__button {
  flex: 1 1 0;
  min-width: 0;
  min-height: 46px;
  padding: 12px 16px;
  color: #faf7f2;
  font-family: ubuntu_medium, Arial, sans-serif;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid rgba(250, 247, 242, 0.55);
  border-radius: 0;
  cursor: pointer;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.sc-widget__button:hover {
  transform: translateY(-1px);
}

.sc-widget__button:focus-visible,
.sc-widget__text a:focus-visible {
  outline: 2px solid #faf7f2;
  outline-offset: 3px;
}

.sc-widget__button--accept {
  color: #455d58;
  background: #faf7f2;
  border-color: #faf7f2;
}

.sc-widget__button--accept:hover {
  color: #32534b;
  background: #ffffff;
  border-color: #ffffff;
}

.sc-widget__button--reject:hover {
  color: #455d58;
  background: #a9bbb6;
  border-color: #a9bbb6;
}

.legal-document {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 20px 0 80px;
  color: #455d58;
  font-family: ubuntu_regular, Arial, sans-serif;
}

.legal-document__title {
  margin: 0 0 42px;
  color: #455d58;
  font-family: agora_bold, Georgia, serif;
  font-size: 34px;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.contentpg .legal-document__title {
  line-height: 1.15;
}

.legal-document__section {
  margin: 34px 0 14px;
  color: #455d58;
  font-family: agora_bold, Georgia, serif;
  font-size: 24px;
  line-height: 1.25;
}

.legal-document .legal-document__paragraph,
.legal-document .legal-document__list li {
  margin: 0 0 12px;
  color: #455d58;
  font-family: ubuntu_regular, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-align: left;
}

.legal-document__list {
  margin: 4px 0 18px;
  padding: 0;
  list-style: none;
}

.legal-document__list li {
  position: relative;
  padding-left: 24px;
}

.legal-document__list li::before {
  content: "-";
  position: absolute;
  left: 4px;
  top: 0;
}

.legal-document a,
.legal-document a:visited {
  color: #70a443;
  text-decoration: none;
  overflow-wrap: anywhere;
  border-bottom: 1px solid rgba(112, 164, 67, 0.45);
}

.legal-document a:hover {
  color: #455d58;
  border-color: #455d58;
}

@keyframes sc-widget-show {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 767px) {
  .sc-widget {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    max-width: none;
    padding: 18px;
  }

  .sc-widget__text {
    font-size: 13px;
    line-height: 1.5;
  }

  .legal-document {
    padding: 10px 0 50px;
  }

  .legal-document__title {
    margin-bottom: 30px;
    font-size: 27px;
  }

  .legal-document__section {
    margin-top: 28px;
    font-size: 21px;
  }

  .legal-document .legal-document__paragraph,
  .legal-document .legal-document__list li {
    font-size: 15px;
    line-height: 1.55;
  }
}

@media (max-width: 420px) {
  .sc-widget__actions {
    gap: 8px;
  }

  .sc-widget__button {
    min-height: 44px;
    padding: 10px 8px;
    font-size: 11px;
    letter-spacing: 0.06em;
  }
}
