.legal-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  background: #f7f8f8;
  color: #202326;
}

.legal-page .brand {
  font-size: 32px;
}

.legal-page .cta-icon img {
  filter: brightness(0) invert(1);
}

.legal-page a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 5px;
}

.legal-skip {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 20px;
  padding: 12px 18px;
  background: #fff;
  color: #202326;
  transform: translateY(-160%);
}

.legal-skip:focus {
  transform: translateY(0);
}

.legal-main {
  flex: 1;
  padding: 40px 0 76px;
  scroll-margin-top: 100px;
}

.legal-container {
  width: min(900px, calc(100% - 64px));
  margin-inline: auto;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  color: #62696f;
  font-size: 13px;
}

.legal-back:hover {
  color: var(--ink);
}

.legal-heading {
  position: relative;
  padding: 28px 0 32px;
  border-bottom: 1px solid #d9dddf;
}

.legal-heading::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--orange);
}

.legal-heading .section-badge {
  margin: 0 0 18px;
}

.legal-heading h1 {
  margin: 0;
  font-size: 52px;
  font-weight: 760;
  line-height: 1.1;
  letter-spacing: 0;
}

.legal-heading h1 > span {
  color: var(--orange);
}

.legal-basis {
  margin: 14px 0 0;
  color: #62696f;
  font-size: 14px;
  line-height: 1.6;
}

.legal-basis a,
.legal-details a {
  text-decoration: underline;
  text-decoration-color: #b8bec2;
  text-underline-offset: 4px;
}

.legal-basis a:hover,
.legal-details a:hover {
  color: #b72b0b;
  text-decoration-color: currentColor;
}

.legal-section {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 32px;
  padding: 30px 0;
  border-bottom: 1px solid #e0e3e5;
}

.legal-section h2 {
  margin: 3px 0 0;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.6;
  text-wrap: initial;
}

.legal-section address {
  font-size: 16px;
  font-style: normal;
  line-height: 1.8;
}

.legal-company {
  display: block;
  margin-bottom: 8px;
  font-size: 19px;
  font-weight: 650;
  line-height: 1.5;
}

.legal-details {
  display: grid;
  gap: 15px;
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

.legal-details > div {
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
  gap: 18px;
}

.legal-details dt {
  color: #62696f;
}

.legal-details dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.legal-tax-note {
  margin: 0 0 10px;
  color: #62696f;
  font-size: 15px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.legal-placeholder {
  margin: 0;
  color: #b72b0b;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}

.legal-footer {
  padding: 32px 0;
  background: #191b1c;
  color: #e7ebed;
}

.legal-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.legal-footer-brand {
  font-size: 23px;
  font-weight: 850;
  line-height: 1.3;
}

.legal-footer-brand span {
  display: block;
  margin-top: 4px;
  color: #aeb6bb;
  font-size: 11px;
  font-weight: 450;
}

.legal-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  font-size: 13px;
}

.legal-footer nav a {
  padding-block: 8px;
  color: #b9c0c4;
}

.legal-footer nav a:hover,
.legal-footer [aria-current="page"] {
  color: #fff;
}

@media (max-width: 980px) {
  .legal-page .site-header {
    gap: 0 20px;
    padding-top: 16px;
  }

  .legal-page .nav-links {
    display: flex;
    justify-content: flex-start;
    grid-column: 1 / -1;
    grid-row: 2;
    min-width: 0;
    max-width: 100%;
    gap: 24px;
    margin-top: 8px;
    overflow-x: auto;
    scrollbar-width: thin;
    white-space: nowrap;
  }

  .legal-page .nav-links a {
    flex-shrink: 0;
    padding-block: 12px;
  }

  .legal-page .header-cta {
    grid-column: 2;
    grid-row: 1;
  }

  .legal-section {
    grid-template-columns: 175px minmax(0, 1fr);
    gap: 24px;
  }
}

@media (max-width: 700px) {
  .legal-container {
    width: calc(100% - 40px);
  }

  .legal-page .brand {
    font-size: 26px;
  }

  .legal-main {
    padding: 24px 0 48px;
    scroll-margin-top: 120px;
  }

  .legal-heading {
    padding: 20px 0 26px;
  }

  .legal-heading h1 {
    font-size: 40px;
  }

  .legal-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding-block: 26px;
  }

  .legal-section h2 {
    margin: 0;
  }

  .legal-details > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
  }

  .legal-company {
    font-size: 18px;
  }

  .legal-footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
}
