:root {
  --legal-orange: #ff8800;
  --legal-dark: #080b10;
  --legal-ink: #17202a;
  --legal-muted: #59616b;
  --legal-paper: #f7f7f5;
  --legal-white: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-width: 320px;
  background: var(--legal-paper);
}

body {
  color: var(--legal-ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.7;
}

.legal-page-header {
  color: var(--legal-white);
  background: var(--legal-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-page-header-inner {
  display: flex;
  width: min(1120px, calc(100% - 64px));
  min-height: 92px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.legal-page-logo {
  display: inline-flex;
  align-items: center;
}

.legal-page-logo img {
  display: block;
  width: 150px;
  height: auto;
  filter: brightness(0) invert(1);
}

.legal-page-back {
  color: #e7e9ec;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: color 150ms ease;
}

.legal-page-back:hover,
.legal-page-back:focus-visible,
.legal-page-content a:hover,
.legal-page-content a:focus-visible {
  color: var(--legal-orange);
}

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

.legal-page-main {
  padding: clamp(58px, 7vw, 96px) 0;
}

.legal-page-content {
  width: min(820px, calc(100% - 64px));
  margin: 0 auto;
  padding: clamp(34px, 5vw, 64px);
  background: var(--legal-white);
  border: 1px solid rgba(23, 32, 42, 0.08);
  border-radius: 10px;
  box-shadow: 0 18px 44px rgba(17, 25, 35, 0.08);
}

.legal-page-title {
  margin: 0 0 clamp(38px, 5vw, 58px);
  color: var(--legal-dark);
  font-family: "Arial Narrow", Arial, Helvetica, sans-serif;
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 900;
  line-height: 0.98;
}

.legal-page-section + .legal-page-section {
  margin-top: 36px;
}

.legal-page-section h2 {
  margin: 0 0 12px;
  color: var(--legal-dark);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.25;
}

.legal-page-section h2::before {
  display: block;
  width: 38px;
  height: 3px;
  margin-bottom: 12px;
  background: var(--legal-orange);
  content: "";
}

.legal-page-section p {
  margin: 0;
  color: var(--legal-muted);
  font-size: 16px;
}

.legal-page-section p + p {
  margin-top: 16px;
}

.legal-page-content a {
  color: var(--legal-ink);
  font-weight: 700;
  text-decoration-color: var(--legal-orange);
  text-underline-offset: 3px;
}

@media (max-width: 700px) {
  .legal-page-header-inner {
    width: calc(100% - 32px);
    min-height: 76px;
  }

  .legal-page-logo img {
    width: 122px;
  }

  .legal-page-main {
    padding: 32px 0;
  }

  .legal-page-content {
    width: calc(100% - 32px);
    padding: 28px 22px;
    border-radius: 8px;
  }

  .legal-page-title {
    margin-bottom: 36px;
    font-size: 38px;
  }

  .legal-page-section + .legal-page-section {
    margin-top: 30px;
  }

  .legal-page-section p {
    font-size: 15px;
  }
}
