/* Legal pages, footer legal block, cookie banner above Kommo */

/* Footer: documents, copyright, operator and short disclaimer */

.mos-legal-footer {
  border-top: 1px solid #dfe6fa;
  flex-flow: column;
  gap: 10px;
  width: 100%;
  margin-top: 2rem;
  padding-top: 1.5rem;
  display: flex;
}

.mos-legal-links {
  flex-flow: wrap;
  gap: 8px 20px;
  margin-bottom: 6px;
  display: flex;
}

.mos-legal-links a, .mos-legal-links button {
  color: var(--color-system--gray-700);
  font-family: Manrope, sans-serif;
  font-size: .9rem;
  line-height: 1.5;
  text-decoration: none;
}

.mos-legal-links button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

.mos-legal-links a:hover, .mos-legal-links button:hover {
  color: var(--color-system--primary-blue);
}

.mos-legal-copy, .mos-legal-operator, .mos-legal-disclaimer {
  color: #69768a;
  margin: 0;
  font-family: Manrope, sans-serif;
  font-size: .8rem;
  line-height: 1.55;
}

.mos-legal-copy {
  color: var(--color-system--gray-600);
  font-size: .9rem;
}

.mos-legal-operator a, .mos-legal-disclaimer a {
  color: inherit;
}

.mos-legal-disclaimer {
  max-width: 920px;
}

.mos-form-consent {
  color: #69768a;
  margin: 0;
  font-size: .8rem;
  line-height: 1.5;
}

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

/* Cookie banner (vanilla-cookieconsent, css/vendor/cookieconsent.css) above the Kommo chat.
   The banner already uses the max z-index (--cc-z-index: 2147483647), and Kommo's button.js copies the highest
   z-index on the page onto its holder/iframes as inline styles. With equal values the later DOM node wins, so keep
   Kommo one step below; !important beats Kommo's inline (non-important) styles. */
.amo-button-holder,
.amo-button__iframe,
iframe[src*='gso.kommo.com'] {
  z-index: 2147483646 !important;
}

/* Legal pages */

/* legal pages do not load the Webflow stylesheet, so the tokens the footer uses live here */
.legal-page {
  --color-system--gray-700: #344054;
  --color-system--gray-600: #475467;
  --color-system--primary-blue: #1c64eb;
  overflow-wrap: break-word;
  color: #344054;
  background: #fff;
  font-family: Manrope, sans-serif;
}

.legal-header {
  border-bottom: 1px solid #eaecf0;
}

.legal-page *, .legal-page *::before, .legal-page *::after {
  box-sizing: border-box;
}

.legal-header-inner, .legal-main, .legal-footer-inner {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.legal-header-inner {
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
  display: flex;
}

.legal-logo img {
  width: auto;
  height: 34px;
  display: block;
}

.legal-header-links {
  align-items: center;
  gap: 20px;
  font-size: .9rem;
  display: flex;
}

.legal-header-links a {
  color: #344054;
  text-decoration: none;
}

.legal-header-links a:hover {
  color: #1c64eb;
}

.legal-lang {
  border: 1px solid #dfe6fa;
  border-radius: 999px;
  padding: 4px 12px;
}

.legal-main {
  padding-top: 56px;
  padding-bottom: 72px;
}

.legal-main h1 {
  color: #101828;
  margin: 0;
  font-size: 2.4rem;
  font-weight: 500;
  line-height: 1.15;
}

.legal-meta {
  color: #636c7e;
  margin: 12px 0 28px;
  font-size: .95rem;
}

.legal-translation-note {
  color: #636c7e;
  margin: -16px 0 28px;
  font-size: .85rem;
  font-style: italic;
}

.legal-operator, .legal-note {
  border-radius: 12px;
  margin-bottom: 16px;
  padding: 16px 20px;
}

.legal-operator {
  background: #f5f8ff;
  border: 1px solid #dfe6fa;
}

.legal-note {
  background: #fff;
  border: 1px solid #dfe6fa;
}

.legal-box-label {
  color: #101828;
  margin: 0 0 4px !important;
  font-weight: 600;
}

.legal-operator a, .legal-note a {
  color: #1c64eb;
}

.legal-operator p, .legal-note p {
  margin: 0;
  font-size: .95rem;
}

.legal-toc {
  border-top: 1px solid #eaecf0;
  border-bottom: 1px solid #eaecf0;
  margin: 28px 0 8px;
  padding: 20px 0;
}

.legal-toc-title {
  color: #101828;
  margin: 0 0 10px;
  font-weight: 600;
}

.legal-toc ol {
  columns: 2;
  column-gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal-toc li {
  break-inside: avoid;
  margin: 0 0 6px;
  font-size: .9rem;
  line-height: 1.4;
}

.legal-toc a {
  color: #1c64eb;
  text-decoration: none;
}

.legal-toc a:hover {
  text-decoration: underline;
}

.legal-body h2 {
  color: #101828;
  scroll-margin-top: 24px;
  margin: 40px 0 12px;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.3;
}

.legal-body h3 {
  color: #101828;
  margin: 24px 0 8px;
  font-size: 1.05rem;
  font-weight: 600;
}

.legal-body p, .legal-body li {
  font-size: 1rem;
  line-height: 1.65;
}

.legal-body p {
  margin: 0 0 12px;
}

.legal-body ul {
  margin: 0 0 14px;
  padding-left: 22px;
}

.legal-body li {
  margin-bottom: 6px;
}

.legal-body a {
  color: #1c64eb;
}

.legal-table {
  margin: 8px 0 16px;
  overflow-x: auto;
}

.legal-table table {
  border-collapse: collapse;
  width: 100%;
  min-width: 620px;
  font-size: .9rem;
}

.legal-table th, .legal-table td {
  text-align: left;
  vertical-align: top;
  border: 1px solid #eaecf0;
  padding: 10px 12px;
  line-height: 1.45;
}

.legal-table th {
  color: #101828;
  background: #f5f8ff;
  font-weight: 600;
}

.legal-footer {
  background: #f9fafb;
  border-top: 1px solid #eaecf0;
}

.legal-footer-inner {
  padding-top: 8px;
  padding-bottom: 32px;
}

.legal-footer .mos-legal-footer {
  border-top: 0;
  margin-top: 0;
}

@media screen and (max-width: 767px) {
  .legal-main {
    padding-top: 36px;
    padding-bottom: 48px;
  }

  .legal-main h1 {
    font-size: 1.85rem;
  }

  .legal-toc ol {
    columns: 1;
  }
}

@media screen and (max-width: 479px) {
  .legal-header-inner, .legal-main, .legal-footer-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .legal-header-links {
    gap: 12px;
  }

  .legal-home {
    display: none;
  }
}
