@font-face {
  font-family: "Bricolage Grotesque";
  src: url("assets/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "DM Mono";
  src: url("assets/fonts/dm-mono-regular-latin.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("assets/fonts/newsreader-italic-latin.woff2") format("woff2");
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #10182f;
  --bone: #f4f0e8;
  --paper: #fffdf8;
  --blue: #4f46e5;
  --periwinkle: #c9c8ff;
  --coral: #ff6e5b;
  --line: rgba(16, 24, 47, 0.18);
  --page-x: clamp(22px, 5vw, 76px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 8%, rgba(201, 200, 255, 0.45), transparent 26%),
    var(--bone);
  font-family: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 10px 14px;
  color: var(--paper);
  background: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.legal-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  padding: 16px var(--page-x);
  background: rgba(244, 240, 232, 0.9);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.legal-brand {
  display: inline-flex;
}

.legal-brand img {
  width: 148px;
}

.back-link {
  font-family: "DM Mono", monospace;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--blue);
}

main {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.6fr);
  gap: clamp(50px, 8vw, 130px);
  width: min(1380px, 100%);
  margin: 0 auto;
  padding: clamp(70px, 9vw, 128px) var(--page-x);
}

.policy-intro {
  align-self: start;
}

.eyebrow {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 22px;
  color: var(--blue);
  font-family: "DM Mono", monospace;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 8px;
  height: 8px;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(79, 70, 229, 0.12);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 620px;
  margin-bottom: 18px;
  font-size: clamp(56px, 7vw, 108px);
  letter-spacing: -0.035em;
  line-height: 0.84;
}

.updated {
  margin-bottom: 32px;
  color: var(--blue);
  font-family: "DM Mono", monospace;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.policy-intro > p:last-of-type {
  max-width: 520px;
  font-size: 18px;
  line-height: 1.6;
}

.policy-nav {
  display: grid;
  margin-top: 42px;
  border-top: 1px solid var(--line);
}

.policy-nav a {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-family: "DM Mono", monospace;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.policy-nav a:hover,
.policy-nav a:focus-visible {
  color: var(--blue);
  padding-left: 6px;
}

.policy-content {
  background: rgba(255, 253, 248, 0.84);
  border: 1px solid var(--line);
  box-shadow: 14px 14px 0 var(--periwinkle);
}

.policy-content section {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 22px;
  padding: clamp(30px, 4vw, 56px);
  scroll-margin-top: 100px;
}

.policy-content section + section {
  border-top: 1px solid var(--line);
}

.section-number {
  color: var(--blue);
  font-family: "DM Mono", monospace;
  font-size: 14px;
  font-weight: 700;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(30px, 3.3vw, 48px);
  letter-spacing: -0.04em;
  line-height: 1;
}

h3 {
  margin: 28px 0 8px;
  font-size: 18px;
}

.policy-content p,
.policy-content li {
  color: rgba(16, 24, 47, 0.8);
  font-size: 16px;
}

.policy-content p {
  margin-bottom: 16px;
}

.policy-content p:last-child {
  margin-bottom: 0;
}

.policy-content ul {
  display: grid;
  gap: 7px;
  padding-left: 20px;
}

.policy-content a {
  color: var(--blue);
  font-weight: 700;
  text-underline-offset: 3px;
}

.legal-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 110px;
  padding: 24px var(--page-x);
  color: var(--paper);
  background: var(--ink);
  font-family: "DM Mono", monospace;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.legal-footer img {
  width: 128px;
  filter: brightness(0) invert(1);
}

.legal-footer p {
  margin: 0;
}

.legal-footer a {
  justify-self: end;
}

@media (max-width: 860px) {
  main {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .policy-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .policy-nav a:nth-child(odd) {
    padding-right: 16px;
  }
}

@media (max-width: 560px) {
  :root {
    --page-x: 18px;
  }

  .legal-header {
    min-height: 70px;
  }

  .legal-brand img {
    width: 122px;
  }

  .back-link {
    font-size: 14px;
  }

  main {
    padding-top: 58px;
  }

  h1 {
    font-size: clamp(52px, 19vw, 76px);
  }

  .policy-nav {
    grid-template-columns: 1fr;
  }

  .policy-content {
    box-shadow: 8px 8px 0 var(--periwinkle);
  }

  .policy-content section {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 30px 22px;
  }

  .legal-footer {
    grid-template-columns: 1fr auto;
  }

  .legal-footer p {
    display: none;
  }
}
