:root {
  --bg: #ffffff;
  --surface: #f3f1ec;
  --border: rgba(0, 0, 0, 0.08);
  --text: #171717;
  --text-muted: #6b6763;
  --accent: #c1121f;
  --radius-pill: 999px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Lausanne, "Helvetica Neue", Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 5px;
}

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 2rem 12px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo img {
  display: block;
  height: 32px;
  width: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: Lausanne, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 500;
  height: 42px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(0, 0, 0, 0.14);
  color: var(--text);
  background: transparent;
  transition:
    background 0.1s ease,
    border-color 0.1s ease,
    transform 0.1s ease;
}

.btn:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.24);
}

.btn:active {
  transform: scale(0.98);
}

.legal-page {
  max-width: 920px;
  margin: 0 auto;
  padding: 64px 24px 80px;
}

.legal-hero {
  max-width: 720px;
  margin-bottom: 34px;
}

h1,
h2 {
  font-family: Goodman, "Times New Roman", serif;
  color: var(--text);
  letter-spacing: -0.04em;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(44px, 7vw, 74px);
  line-height: 0.95;
  text-wrap: balance;
}

.lead {
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.65;
  max-width: 62ch;
  text-wrap: pretty;
}

.legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 34px 34px 38px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.01),
    0 20px 46px rgba(0, 0, 0, 0.08);
}

h2 {
  margin: 28px 0 10px;
  font-size: clamp(30px, 4.2vw, 42px);
  line-height: 0.96;
}

h2:first-child {
  margin-top: 0;
}

p,
li {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(23, 23, 23, 0.83);
  max-width: 70ch;
}

p + p {
  margin-top: 12px;
}

ul {
  margin: 12px 0 0;
  padding-left: 22px;
}

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

a {
  color: inherit;
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  nav {
    padding: 16px 1rem 10px;
  }

  .legal-page {
    padding: 38px 16px 56px;
  }

  .legal-card {
    border-radius: 24px;
    padding: 24px 18px 28px;
  }
}
