:root {
  --bg: #f7f8f5;
  --surface: #ffffff;
  --text: #18201b;
  --muted: #707972;
  --accent: #4f7459;
  --accent-soft: #edf3ed;
  --border: #e4e8e3;
  --shadow: 0 10px 35px rgba(24, 32, 27, 0.045);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Inter,
    Arial,
    sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

.container {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
}

.legal {
  padding: 72px 0 90px;
}

h1,
h2 {
  letter-spacing: -0.025em;
}

h1 {
  margin: 0 0 42px;
  font-size: clamp(36px, 7vw, 54px);
  line-height: 1.05;
  font-weight: 720;
}

h2 {
  margin: 44px 0 18px;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 650;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 10px 26px;
  margin: 0 0 26px;
  box-shadow: var(--shadow);
}

.card h2 {
  margin: 18px 0 14px;
}

.card p {
  margin: 0;
  padding: 15px 0;
}

.card p + p {
  border-top: 1px solid var(--border);
}

a {
  color: var(--text);
  text-decoration: none;
  transition:
    color 0.16s ease,
    background 0.16s ease;
}

a:hover {
  color: var(--accent);
}

.legal > .container > p:first-child {
  margin: 0 0 30px;
}

.legal > .container > p:first-child a {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}

.meta {
  color: var(--muted);
  font-size: 14px;
}

::selection {
  background: var(--accent-soft);
}

@media (max-width: 600px) {
  .container {
    width: min(100% - 28px, 760px);
  }

  .legal {
    padding: 42px 0 64px;
  }

  h1 {
    margin-bottom: 30px;
    font-size: 38px;
  }

  h2 {
    margin-top: 34px;
  }

  .card {
    padding: 6px 20px;
    border-radius: 16px;
  }
}
