:root {
  --red: #C7413B;
  --paper: #F7F5F0;
  --ink: rgba(52, 34, 32, 0.9);
  --ink-on-red: rgba(247, 245, 240, 0.9);
  --btn-ink: rgba(170, 58, 52, 0.9);
  --display: "Space Grotesk", system-ui, sans-serif;
  --max: 420px;
  --pad: 24px;
}

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

html {
  scroll-behavior: smooth;
  touch-action: manipulation;
}

body {
  font-family: var(--display);
  font-weight: 500;
  color: var(--ink-on-red);
  background: var(--red);
  -webkit-font-smoothing: antialiased;
  line-height: 1.45;
  min-height: 100svh;
  touch-action: manipulation;
  overscroll-behavior-x: none;
}

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

a:hover {
  opacity: 0.85;
}

.legal {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: calc(14px + 44px + 20px + env(safe-area-inset-top)) var(--pad) calc(40px + env(safe-area-inset-bottom));
}

.legal__back {
  position: absolute;
  top: calc(14px + env(safe-area-inset-top));
  left: 16px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink-on-red);
}

.legal__back:hover {
  opacity: 0.85;
}

.legal h1 {
  font-weight: 700;
  font-size: clamp(28px, 8vw, 36px);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.legal h2 {
  font-weight: 700;
  font-size: clamp(1.05rem, 4vw, 1.25rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 28px 0 10px;
}

.legal p,
.legal li {
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.legal ul {
  padding-left: 1.2em;
  margin-bottom: 12px;
}

.legal__meta {
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: -0.02em;
  opacity: 0.85;
  margin-bottom: 24px;
}

.legal__nav {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(247, 245, 240, 0.28);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: -0.02em;
}

.legal__nav a {
  text-decoration: none;
}

.legal__nav a:hover,
.legal__nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 4px;
}
