.legal-hero,
.legal-article,
.sitemap-content {
  font-family: Arial, Helvetica, sans-serif;
}

.legal-hero {
  position: relative;
  height: 300px;
  overflow: hidden;
  background: #26334b url('../images/about/about-banner.png') center center / cover no-repeat;
  color: #ffffff;
}

.legal-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(33, 45, 69, 0.46);
}

.legal-hero__content {
  position: relative;
  z-index: 1;
  height: 100%;
  padding-top: 77px;
}

.legal-hero h1 {
  margin: 0;
  color: #ffffff;
  font-family: 'CustomFont', Arial, Helvetica, sans-serif;
  font-size: 60px;
  font-weight: 700;
  line-height: 69px;
}

.legal-breadcrumb {
  min-height: 37px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: #ffffff;
  font-family: 'CustomFont', Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.legal-breadcrumb a:hover,
.legal-breadcrumb a:focus-visible {
  text-decoration: underline;
}

.legal-article {
  padding: 80px 0 90px;
  background: #ffffff;
}

.legal-article__inner {
  max-width: 1440px;
}

.legal-article__header {
  padding-bottom: 20px;
  border-bottom: 1px solid #e3e3e3;
  text-align: center;
}

.legal-article__header h2 {
  margin: 0;
  color: #222222;
  font-family: 'CustomFont', Arial, Helvetica, sans-serif;
  font-size: 40px;
  font-weight: 400;
  line-height: 52px;
}

.legal-richtext {
  margin-top: 30px;
  color: #4b4b4b;
  font-size: 16px;
  line-height: 30px;
  overflow-wrap: anywhere;
}

.legal-richtext > :first-child {
  margin-top: 0;
}

.legal-richtext > :last-child {
  margin-bottom: 0;
}

.legal-richtext h1,
.legal-richtext h2,
.legal-richtext h3,
.legal-richtext h4,
.legal-richtext h5,
.legal-richtext h6 {
  margin: 30px 0 12px;
  color: #222222;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  line-height: 1.4;
}

.legal-richtext h2 {
  font-size: 24px;
}

.legal-richtext h3 {
  font-size: 20px;
}

.legal-richtext p,
.legal-richtext ul,
.legal-richtext ol,
.legal-richtext table,
.legal-richtext blockquote {
  margin: 0 0 18px;
}

.legal-richtext ul,
.legal-richtext ol {
  padding-left: 24px;
}

.legal-richtext a {
  color: #0567cc;
  text-decoration: underline;
}

.legal-richtext img,
.legal-richtext video,
.legal-richtext iframe,
.legal-richtext table {
  max-width: 100%;
}

.legal-richtext img {
  height: auto;
}

.legal-richtext table {
  width: 100%;
  border-collapse: collapse;
}

.legal-richtext th,
.legal-richtext td {
  padding: 10px 12px;
  border: 1px solid #dedede;
  text-align: left;
}

.sitemap-content {
  padding: 32px 0 80px;
  background: #ffffff;
}

.sitemap-section {
  padding: 48px 0;
  border-bottom: 1px solid #e3e3e3;
}

.sitemap-section:last-child {
  border-bottom: 0;
}

.sitemap-section h2 {
  margin: 0 0 28px;
  color: #151515;
  font-family: 'CustomFont', Arial, Helvetica, sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 42px;
  overflow-wrap: anywhere;
}

.sitemap-grid {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 36px 48px;
  list-style: none;
}

.sitemap-group {
  min-width: 150px;
  max-width: 260px;
}

.sitemap-group__title {
  display: inline-block;
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
  color: #4b4b4b;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 26px;
  overflow-wrap: anywhere;
  transition: color 180ms ease;
}

.sitemap-group__title:hover,
.sitemap-group__title:focus-visible,
.sitemap-group__children a:hover,
.sitemap-group__children a:focus-visible {
  color: #0567cc;
}

.sitemap-group__children {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sitemap-group__children a {
  margin-top: 15px;
  display: block;
  color: #4c4c4c;
  font-size: 14px;
  line-height: 22px;
  overflow-wrap: anywhere;
  transition: color 180ms ease;
}

@media (max-width: 1199px) {
  .legal-hero {
    height: 260px;
  }

  .legal-hero__content {
    padding-top: 65px;
  }

  .legal-hero h1 {
    font-size: 48px;
    line-height: 58px;
  }
}

@media (max-width: 767px) {
  .legal-hero {
    height: 220px;
  }

  .legal-hero__content {
    padding-top: 52px;
  }

  .legal-hero h1 {
    font-size: 38px;
    line-height: 46px;
  }

  .legal-breadcrumb {
    margin-top: 8px;
  }

  .legal-article {
    padding: 48px 0 56px;
  }

  .legal-article__header {
    padding-bottom: 15px;
  }

  .legal-article__header h2 {
    font-size: 28px;
    line-height: 38px;
  }

  .legal-richtext {
    margin-top: 22px;
    font-size: 15px;
    line-height: 27px;
  }

  .sitemap-content {
    padding: 12px 0 48px;
  }

  .sitemap-section {
    padding: 36px 0;
  }

  .sitemap-section h2 {
    font-size: 26px;
    line-height: 34px;
  }

  .sitemap-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 20px;
  }

  .sitemap-group {
    min-width: 0;
    max-width: none;
  }
}

@media (max-width: 479px) {
  .legal-hero h1 {
    font-size: 32px;
    line-height: 39px;
  }

  .sitemap-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .legal-hero { height: 180px; }
  .legal-hero__content { padding-top: 38px; }
  .legal-hero h1 { font-size: 30px; line-height: 38px; }
  .legal-article { padding: 38px 0 44px; }
  .legal-article__header h2 { font-size: 25px; line-height: 34px; }
  .legal-richtext { margin-top: 18px; font-size: 14px; line-height: 25px; }
  .sitemap-content { padding: 8px 0 40px; }
  .sitemap-section { padding: 28px 0; }
  .sitemap-section h2 { font-size: 24px; line-height: 32px; }
}
