@font-face {
  font-family: "Bebas Neue";
  src: url("../fonts/BebasNeueBold.otf") format("opentype");
  font-weight: 500;
}

:root {
  color: #263640;
  background: #f4f7f9;
  font-family: "Fira Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f4f7f9;
}

a {
  color: #004e7f;
}

.legal-header {
  background: #ffffff;
  border-bottom: 1px solid #d9e2e8;
}

.legal-header__inner,
.legal-main,
.legal-footer__inner {
  width: min(100% - 32px, 1040px);
  margin: 0 auto;
}

.legal-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  gap: 24px;
}

.legal-header__logo {
  display: block;
  width: 170px;
  height: 64px;
  object-fit: contain;
}

.legal-header__back {
  font-weight: 500;
  text-decoration: none;
}

.legal-main {
  margin-top: 40px;
  margin-bottom: 56px;
  padding: 48px 56px;
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 14px 38px rgba(33, 62, 80, 0.08);
}

.legal-title {
  margin: 0;
  color: #004e7f;
  font-family: "Bebas Neue", "Arial Narrow", Arial, sans-serif;
  font-size: 52px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.legal-updated {
  margin: 24px 0 36px;
  color: #687780;
}

.legal-section {
  margin-top: 34px;
}

.legal-section h2 {
  margin: 0 0 14px;
  color: #004e7f;
  font-size: 25px;
  line-height: 1.3;
}

.legal-section h3 {
  margin: 24px 0 8px;
  color: #263640;
  font-size: 18px;
}

.legal-section p,
.legal-section ul,
.legal-section ol {
  margin: 0 0 12px;
}

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

.legal-section li {
  margin-bottom: 7px;
}

.legal-details {
  padding: 20px 24px;
  background: #eef5f8;
  border-left: 4px solid #004e7f;
}

.legal-details p:last-child {
  margin-bottom: 0;
}

.legal-documents {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 42px;
  padding-top: 26px;
  border-top: 1px solid #d9e2e8;
}

.legal-documents a {
  font-weight: 500;
}

.legal-footer {
  padding: 30px 0 38px;
  color: #e9f2f6;
  background: #004e7f;
}

.legal-footer a {
  color: #ffffff;
}

.legal-footer p {
  margin: 0 0 6px;
}

@media (max-width: 700px) {
  .legal-header__inner {
    min-height: 72px;
  }

  .legal-header__logo {
    width: 130px;
    height: 54px;
  }

  .legal-main {
    width: 100%;
    margin: 0;
    padding: 32px 20px 44px;
    border-radius: 0;
    box-shadow: none;
  }

  .legal-title {
    font-size: 36px;
  }

  .legal-section h2 {
    font-size: 21px;
  }

  .legal-details {
    padding: 16px;
  }
}
