/* Privacy and terms, in the home page's paper and ink: the same island over the
   page, the same type, and nothing but the words. */

@font-face {
  font-family: "Instrument Sans";
  src: url("/atelier/fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
:root {
  --page: #efebe3;
  --raised: #f7f4ee;
  --ink: #15130f;
  --sub: #625c53;
  --hair: rgb(21 19 15 / 0.13);
  --sketch: #2447f5;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --page: #0b0b0c;
  --raised: #161617;
  --ink: #ededee;
  --sub: #9b9b9f;
  --hair: rgb(255 255 255 / 0.16);
  --sketch: #7089ff;
  color-scheme: dark;
}
html {
  background: var(--page);
  scrollbar-width: thin;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration-color: var(--hair);
  text-underline-offset: 3px;
  transition:
    color 160ms,
    text-decoration-color 160ms;
}
a:hover {
  color: var(--sketch);
  text-decoration-color: currentColor;
}
.skip {
  position: absolute;
  left: -200vw;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 20;
}

/* the island */
.legal-header {
  position: sticky;
  top: 8px;
  z-index: 10;
  max-width: 1080px;
  height: 48px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px auto 0;
  padding: 0 6px 0 16px;
  border: 1px solid var(--hair);
  border-radius: 14px;
  background: var(--raised);
  box-sizing: border-box;
  width: calc(100% - 2 * clamp(16px, 3.2vw, 56px));
}
.legal-header img {
  display: block;
  height: 24px;
  width: auto;
}
:root[data-theme="dark"] .legal-header img {
  filter: invert(1);
}
.legal-header > a {
  margin-right: auto;
}
.legal-nav {
  display: flex;
  gap: 2px;
}
.legal-nav a {
  height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--sub);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
}
.legal-nav a:hover {
  color: var(--ink);
  background: color-mix(in srgb, var(--ink) 7%, transparent);
}
.legal-nav a[aria-current="page"] {
  color: var(--ink);
}

/* the words */
main {
  max-width: 720px;
  margin: 0 auto;
  padding: 120px clamp(16px, 3.2vw, 56px) 40px;
}
.legal-intro {
  margin-bottom: 56px;
}
.kicker {
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin: 0 0 16px;
  color: var(--sub);
  font-size: 12px;
  font-weight: 550;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.kicker::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--sketch);
}
h1 {
  margin: 0;
  font-size: clamp(48px, 7vw, 84px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.055em;
}
.lede {
  max-width: 36ch;
  margin: 22px 0 0;
  color: var(--sub);
  font-size: 19px;
  line-height: 1.45;
}
.updated {
  margin: 18px 0 0;
  color: var(--sub);
  font-size: 13px;
}
.short {
  margin: 0 0 56px;
  padding: 22px 24px;
  border: 1px solid var(--hair);
  border-radius: 14px;
  background: var(--raised);
}
.short h2 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 550;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sub);
}
.short ul,
section ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.short li,
section li {
  position: relative;
  padding-left: 18px;
}
.short li + li,
section li + li {
  margin-top: 8px;
}
.short li::before,
section li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 9px;
  height: 1.5px;
  background: var(--sketch);
}
.contents {
  margin: 0 0 64px;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 32px;
  font-size: 14px;
}
.contents li {
  break-inside: avoid;
  padding: 6px 0;
  border-bottom: 1px solid var(--hair);
}
.contents a {
  color: var(--sub);
  text-decoration: none;
}
.contents a:hover {
  color: var(--sketch);
}
section {
  padding: 8px 0 32px;
  scroll-margin-top: 80px;
}
section + section {
  border-top: 1px solid var(--hair);
  padding-top: 32px;
}
h2 {
  margin: 0 0 14px;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
h3 {
  margin: 24px 0 8px;
  font-size: 16px;
  font-weight: 600;
}
p {
  margin: 0 0 14px;
}
strong {
  font-weight: 600;
}
.table {
  overflow-x: auto;
  margin: 16px 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th,
td {
  padding: 12px 12px 12px 0;
  border-bottom: 1px solid var(--hair);
  text-align: left;
  vertical-align: top;
}
th {
  color: var(--sub);
  font-size: 12px;
  font-weight: 550;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
footer {
  max-width: 1080px;
  margin: 64px auto 0;
  padding: 24px clamp(16px, 3.2vw, 56px) 36px;
  border-top: 1px solid var(--hair);
  color: var(--sub);
  font-size: 13px;
}
footer p {
  margin: 0;
}
@media (max-width: 640px) {
  main {
    padding-top: 88px;
  }
  .contents {
    columns: 1;
  }
}
