@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("./inter-latin.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #09090b;
  color: #fafafa;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #09090b;
}

body {
  margin: 0;
  min-width: 320px;
  background: #09090b;
  color: #a1a1aa;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid #fafafa;
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 64px;
  border-bottom: 1px solid #18181b;
  background: rgba(9, 9, 11, 0.88);
  backdrop-filter: blur(14px);
}

.header-inner,
.legal-shell,
.footer-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  display: block;
  width: auto;
  height: 24px;
}

.back-link {
  color: #a1a1aa;
  font-size: 14px;
  text-decoration: none;
  transition: color 180ms ease;
}

.back-link:hover {
  color: #fafafa;
}

.legal-hero {
  padding: 96px 0 64px;
  border-bottom: 1px solid #18181b;
}

.eyebrow {
  margin: 0 0 20px;
  color: #71717a;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 800px;
  margin-bottom: 24px;
  color: #fafafa;
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: 0;
}

.intro {
  max-width: 720px;
  margin-bottom: 0;
  color: #a1a1aa;
  font-size: 17px;
  line-height: 1.8;
}

.legal-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 720px);
  justify-content: space-between;
  gap: 72px;
  padding: 64px 0 112px;
}

.toc {
  align-self: start;
  position: sticky;
  top: 96px;
}

.toc-title {
  margin-bottom: 18px;
  color: #71717a;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.toc a {
  display: block;
  padding: 7px 0;
  color: #71717a;
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
  transition: color 180ms ease;
}

.toc a:hover {
  color: #d4d4d8;
}

.legal-content section {
  padding: 0 0 44px;
  border-bottom: 1px solid #27272a;
  scroll-margin-top: 96px;
}

.legal-content section + section {
  padding-top: 44px;
}

.legal-content h2 {
  margin-bottom: 20px;
  color: #f4f4f5;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0;
}

.legal-content h3 {
  margin: 28px 0 12px;
  color: #d4d4d8;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

.legal-content p,
.legal-content li,
.legal-content address {
  color: #a1a1aa;
  font-size: 15px;
  line-height: 1.85;
}

.legal-content p:last-child,
.legal-content ul:last-child,
.legal-content ol:last-child {
  margin-bottom: 0;
}

.legal-content ul,
.legal-content ol {
  padding-left: 22px;
}

.legal-content li + li {
  margin-top: 8px;
}

.legal-content address {
  font-style: normal;
}

.legal-content a {
  color: #e4e4e7;
  text-decoration-color: #52525b;
  text-underline-offset: 3px;
}

.legal-content strong {
  color: #d4d4d8;
  font-weight: 500;
}

.notice {
  margin: 24px 0;
  padding: 18px 0 18px 20px;
  border-left: 2px solid #52525b;
  color: #a1a1aa;
}

.meta-line {
  margin-top: 28px;
  color: #52525b;
  font-size: 12px;
}

.site-footer {
  border-top: 1px solid #18181b;
  background: #09090b;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 32px 0;
  color: #52525b;
  font-size: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a[aria-current="page"] {
  color: #d4d4d8;
}

@media (max-width: 760px) {
  .legal-hero {
    padding: 72px 0 48px;
  }

  .legal-layout {
    display: block;
    padding: 44px 0 80px;
  }

  .toc {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
    margin-bottom: 48px;
    padding-bottom: 28px;
    border-bottom: 1px solid #27272a;
  }

  .toc-title {
    grid-column: 1 / -1;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .header-inner,
  .legal-shell,
  .footer-inner {
    width: min(100% - 32px, 1180px);
  }

  .brand img {
    height: 21px;
  }

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

  .toc {
    display: block;
  }
}

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

  * {
    transition: none !important;
  }
}

@media print {
  .site-header,
  .toc,
  .site-footer {
    display: none;
  }

  body,
  :root {
    background: #fff;
    color: #111;
  }

  .legal-layout {
    display: block;
  }

  .legal-content h2,
  .legal-content h3,
  .legal-content p,
  .legal-content li,
  .legal-content address {
    color: #111;
  }
}
