/* ========================================
   System pages
   Privacy Policy / 404
======================================== */

.p-system-page {
  overflow: hidden;
  background: #efefef;
  color: #111;
}

.p-system-page__body {
}

.p-system-page__inner {
  width: min(calc(100% - 48px), 996px);
  margin-inline: auto;
}

.p-system-page__content {
  padding: 64px 72px;
  background: #fff;
}

.p-system-page__content > *:first-child {
  margin-top: 0;
}

.p-system-page__content > *:last-child {
  margin-bottom: 0;
}

.p-system-page__lead {
  font-weight: 500;
}

.p-system-page__meta {
  margin-top: 48px !important;
  text-align: right;
}

.p-system-page__sitemap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 56px;
}

.p-system-page__sitemap-group h2 {
  margin-top: 0;
}

.p-system-page__sitemap-group ul {
  margin-bottom: 0;
}

.p-system-page__content h1,
.p-system-page__content h2,
.p-system-page__content h3,
.p-system-page__content h4 {
  margin: 2.2em 0 0.8em;
  font-weight: 700;
  line-height: 1.6;
}

.p-system-page__content h1 {
  font-size: 28px;
}

.p-system-page__content h2 {
  font-size: 22px;
}

.p-system-page__content h3 {
  font-size: 18px;
}

.p-system-page__content p,
.p-system-page__content li,
.p-system-page__content dt,
.p-system-page__content dd {
  font-size: 15px;
  line-height: 2;
}

.p-system-page__content p {
  margin: 0 0 1.4em;
}

.p-system-page__content ul,
.p-system-page__content ol {
  margin: 1.2em 0;
  padding-left: 1.5em;
}

.p-system-page__content a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.p-system-page__content table {
  width: 100%;
  border-collapse: collapse;
}

.p-system-page__content th,
.p-system-page__content td {
  padding: 14px 16px;
  border: 1px solid #ccc;
  vertical-align: top;
}

/* 404 */
.p-system-page--404 .p-system-page__content {
  padding-block: 96px;
  text-align: center;
}

.p-system-page__404-code {
  margin: 0;
  font-family: "Limelight", sans-serif;
  font-size: 92px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.03em;
}

.p-system-page__404-title {
  margin: 24px 0 0;
  font-size: 24px;
  font-weight: 700;
}

.p-system-page__404-text {
  margin-top: 24px;
}

.p-system-page__404-label {
  margin: 0;
  color: #ef513f;
  font-family: "Limelight", sans-serif;
  font-size: 18px;
  letter-spacing: 0.12em;
}

.p-system-page__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  min-height: 52px;
  margin-top: 40px;
  padding: 12px 28px;
  background: #111;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.p-system-page__404-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin-top: 28px;
}

.p-system-page__404-nav a {
  color: #111;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
  .p-system-page__back:hover {
    opacity: 0.65;
  }
}

@media (max-width: 767px) {
  .p-system-page__inner {
    width: min(calc(100% - 40px), 100%);
  }

  .p-system-page__content {
    padding: 36px 20px;
  }

  .p-system-page__sitemap-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .p-system-page__content h1 {
    font-size: 22px;
  }

  .p-system-page__content h2 {
    font-size: 18px;
  }

  .p-system-page__content h3 {
    font-size: 16px;
  }

  .p-system-page__content p,
  .p-system-page__content li,
  .p-system-page__content dt,
  .p-system-page__content dd {
    font-size: 14px;
    line-height: 1.9;
  }

  .p-system-page--404 .p-system-page__content {
    padding-block: 64px;
  }

  .p-system-page__404-code {
    font-size: 64px;
  }

  .p-system-page__404-title {
    font-size: 20px;
  }

  .p-system-page__back {
    width: 100%;
    min-width: 0;
  }

  .p-system-page__404-label {
    font-size: 14px;
  }

  .p-system-page__404-nav {
    gap: 10px 20px;
    margin-top: 24px;
  }

  .p-system-page__404-nav a {
    font-size: 12px;
  }
}
