:root {
  --ink: #222222;
  --muted: #767676;
  --line: #e8e8e8;
  --paper: #ffffff;
  --soft: #f4f4f4;
  --max: 960px;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.legal-header,
.legal-main,
.legal-footer {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 11px;
}

.back-link {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.back-link:hover {
  color: var(--ink);
}

.legal-main {
  margin-top: 24px;
  padding: 64px 56px;
  border-radius: var(--radius);
  background: var(--soft);
}

.legal-content {
  max-width: 760px;
}

.legal-content h1 {
  margin: 0 0 42px;
  font-size: clamp(42px, 7vw, 88px);
  font-weight: 300;
  line-height: 0.98;
}

.legal-content h2 {
  margin: 44px 0 18px;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 430;
  line-height: 1.08;
}

.legal-content h3 {
  margin: 30px 0 12px;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.2;
}

.legal-content h4 {
  margin: 22px 0 8px;
  font-size: 17px;
  font-weight: 650;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.72;
}

.legal-content ul {
  padding-left: 22px;
}

.legal-content a {
  color: var(--ink);
  font-weight: 650;
}

.legal-mail-image {
  display: block;
  width: min(100%, 300px);
  height: auto;
  margin-top: 8px;
}

.legal-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 0 42px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 720px) {
  .legal-header,
  .legal-main,
  .legal-footer {
    width: min(calc(100% - 24px), var(--max));
  }

  .legal-header,
  .legal-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .legal-main {
    padding: 42px 22px;
  }
}
