.cookie-consent,
.cookie-consent * {
  box-sizing: border-box;
}

.cookie-consent {
  position: fixed;
  z-index: 10050;
  right: 3vw;
  bottom: 2rem;
  left: 3vw;
  display: flex;
  max-width: 118rem;
  padding: 1.75rem 2.5rem;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: #ffffff;
  border: 1px solid rgba(43, 13, 13, 0.08);
  border-radius: 1rem;
  box-shadow: 0 1.5rem 4rem rgba(43, 13, 13, 0.18);
  color: #20261f;
  font-family: "Montserrat-Regular", Arial, Helvetica, sans-serif;
}

.cookie-consent__text {
  min-width: 0;
  font-size: 1.15rem;
  line-height: 1.5;
}

.cookie-consent__text strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: "Montserrat-Bold", Arial, Helvetica, sans-serif;
  font-size: 1.2rem;
}

.cookie-consent__text p {
  padding: 0;
  margin: 0;
}

.cookie-consent__text a {
  border-bottom: 1px solid currentColor;
  color: #f27f2b;
  text-decoration: none;
}

.cookie-consent__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 0.75rem;
}

.cookie-consent__button {
  min-height: 3.5rem;
  padding: 0.85rem 1.5rem;
  border: 2px solid #f9872f;
  border-radius: 0.75rem;
  font-family: "Montserrat-Bold", Arial, Helvetica, sans-serif;
  font-size: 1rem;
  cursor: pointer;
}

.cookie-consent__button:focus-visible,
.personal-data-consent input:focus-visible {
  outline: 3px solid #138eff;
  outline-offset: 3px;
}

.cookie-consent__button--primary {
  background: #f9872f;
  color: #ffffff;
}

.cookie-consent__button--secondary {
  background: #ffffff;
  color: #6f3a13;
}

.personal-data-consent {
  display: flex;
  width: 100%;
  margin-top: 0.9rem;
  align-items: flex-start;
  gap: 0.65rem;
  color: #2b0d0d;
  font-family: "Montserrat-Regular", Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
  line-height: 1.45;
  text-align: left;
}

.personal-data-consent input {
  width: 1.2rem;
  height: 1.2rem;
  min-width: 1.2rem;
  margin: 0.05rem 0 0;
  accent-color: #138eff;
  cursor: pointer;
}

.personal-data-consent a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.main-callback-block_form {
  flex-wrap: wrap;
}

.main-callback-block_form .personal-data-consent {
  width: 33.33%;
  margin-left: auto;
}

.footer-legal-links {
  display: flex;
  margin-top: 0.35rem;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.2rem 0.75rem;
}

.footer-legal-links a,
.footer-legal-links button {
  padding: 0;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.legal-page {
  min-height: 100vh;
  margin: 0;
  background: #fffaf2;
  color: #2b0d0d;
  font-family: "Montserrat-Regular", Arial, Helvetica, sans-serif;
}

.legal-content {
  width: min(100% - 2rem, 74rem);
  padding: 4rem 0 5rem;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.7;
}

.legal-content h1,
.legal-content h2,
.legal-content h3 {
  font-family: "Montserrat-Bold", Arial, Helvetica, sans-serif;
  line-height: 1.25;
}

.legal-content h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.legal-content h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.35rem;
}

.legal-content h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.05rem;
}

.legal-content p,
.legal-content ul,
.legal-content ol {
  margin: 0 0 1rem;
}

.legal-content li + li {
  margin-top: 0.4rem;
}

.legal-content a {
  color: #9d4b10;
}

.legal-meta,
.legal-note {
  padding: 1rem 1.25rem;
  background: #ffffff;
  border: 1px solid rgba(43, 13, 13, 0.12);
  border-radius: 0.8rem;
}

.legal-note {
  border-left: 0.35rem solid #f9b004;
}

.legal-table-wrap {
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

.legal-table th,
.legal-table td {
  padding: 0.8rem;
  border: 1px solid rgba(43, 13, 13, 0.14);
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: #fff1d2;
}

@media (max-width: 760px) {
  .cookie-consent {
    right: 0.75rem;
    bottom: 0.75rem;
    left: 0.75rem;
    padding: 1.25rem;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .cookie-consent__text {
    font-size: 1rem;
  }

  .cookie-consent__actions {
    flex-direction: column-reverse;
  }

  .cookie-consent__button {
    width: 100%;
  }

  .legal-content {
    padding-top: 2.5rem;
  }

  .main-callback-block_form .personal-data-consent {
    width: 100%;
  }
}
