:root {
  color-scheme: light;
  --ink: #183046;
  --muted: #5d6f7f;
  --line: #dce6ec;
  --brand: #078a8f;
  --brand-dark: #056c72;
  --surface: #ffffff;
  --soft: #f2f8f8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
}

a {
  color: var(--brand-dark);
}

.legal-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

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

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

.legal-header img {
  display: block;
  width: 160px;
  height: 72px;
  object-fit: contain;
}

.legal-header a {
  font-weight: 700;
  text-decoration: none;
}

.legal-main {
  margin-top: 32px;
  margin-bottom: 32px;
  padding: clamp(24px, 5vw, 54px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 16px 44px rgba(24, 48, 70, 0.08);
}

.legal-kicker {
  margin: 0 0 6px;
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.12;
}

h2 {
  margin-top: 34px;
  font-size: 1.25rem;
  line-height: 1.3;
}

.updated,
.note {
  color: var(--muted);
}

.summary,
.contact-box {
  padding: 18px 20px;
  background: var(--soft);
  border-left: 4px solid var(--brand);
  border-radius: 10px;
}

li + li {
  margin-top: 7px;
}

.legal-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 8px 0 32px;
  color: var(--muted);
  font-size: 0.92rem;
}

.legal-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

@media (max-width: 620px) {
  .legal-header__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding: 10px 0 16px;
  }

  .legal-main {
    margin-top: 18px;
  }
}
