@font-face {
  font-family: 'Anton';
  src: url('/privacy/assets/anton-regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'DM Mono';
  src: url('/privacy/assets/dm-mono-regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'DM Mono';
  src: url('/privacy/assets/dm-mono-medium.ttf') format('truetype');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  color: #000;
  background: #eeece6;
  font-family: 'DM Mono', monospace;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --paper: #eeece6;
  --ink: #000;
  --accent: #8d1b12;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 0;
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  min-height: 100%;
  margin: 0;
  overflow-x: clip;
  background: var(--paper) url('/privacy/assets/paper.png') repeat;
  background-size: 865px auto;
}

body::after {
  position: fixed;
  z-index: 20;
  inset: 0;
  content: '';
  pointer-events: none;
  background: url('/privacy/assets/paper.png') repeat;
  background-size: 865px auto;
  opacity: 0.05;
  mix-blend-mode: multiply;
}

a {
  color: inherit;
}

.legal-header,
.legal-page,
.legal-footer {
  position: relative;
  z-index: 1;
}

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

.brand {
  display: block;
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
}

.brand img {
  display: block;
  width: 100%;
  height: 100%;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px 28px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.legal-nav a {
  text-underline-offset: 5px;
}

.legal-nav a:not([aria-current='page']) {
  text-decoration: none;
}

.legal-nav a:hover,
.legal-nav a:focus-visible {
  text-decoration: underline;
}

.legal-page {
  width: min(1060px, calc(100% - 48px));
  min-height: calc(100vh - 250px);
  padding: 96px 0 160px;
  margin: 0 auto;
}

.legal-page__eyebrow,
.legal-page__updated {
  color: var(--accent);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.075em;
  text-transform: uppercase;
}

.legal-page__eyebrow {
  margin: 0 0 32px;
}

.legal-page h1 {
  max-width: 100%;
  margin: 0 0 88px;
  font-family: 'Anton', Impact, sans-serif;
  font-size: clamp(88px, 13vw, 176px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-page__content {
  display: grid;
  max-width: 800px;
  gap: 40px;
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.55;
  letter-spacing: -0.045em;
}

.legal-page__content > p,
.legal-section p,
.legal-section ul {
  margin: 0;
}

.legal-section {
  display: grid;
  gap: 18px;
}

.legal-section h2 {
  margin: 0;
  font-family: 'Anton', Impact, sans-serif;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.legal-section ul {
  display: grid;
  gap: 12px;
  padding-left: 1.35em;
}

.legal-page__content a,
.legal-footer a {
  overflow-wrap: anywhere;
  text-underline-offset: 4px;
}

.legal-footer {
  display: grid;
  gap: 6px;
  padding: 40px 64px;
  border-top: 1px solid var(--ink);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.legal-footer p {
  margin: 0;
}

@media (max-width: 700px) {
  body {
    background-size: 760px auto;
  }

  .legal-header {
    align-items: flex-start;
    gap: 24px;
    padding: 32px 16px;
  }

  .brand {
    width: 48px;
    height: 48px;
  }

  .legal-nav {
    max-width: calc(100% - 72px);
    gap: 10px 16px;
    font-size: 12px;
  }

  .legal-page {
    width: calc(100% - 32px);
    padding: 64px 0 96px;
  }

  .legal-page__eyebrow,
  .legal-page__updated {
    font-size: 12px;
  }

  .legal-page h1 {
    margin-bottom: 56px;
    font-size: clamp(58px, 22vw, 76px);
    overflow-wrap: anywhere;
  }

  .legal-page__content {
    gap: 32px;
    font-size: 16px;
    line-height: 1.5;
  }

  .legal-section h2 {
    font-size: 30px;
  }

  .legal-footer {
    padding: 32px 16px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
