/* The legal pages (Privacy, Terms, Imprint): frei-mkt "website, other pages", desktop 4068:177 and
   phone 4068:219. A white page, the nav of /new, the title with "Last updated", a sticky table of
   contents at the left of one column of text, and the footer of /new on its own band. css/shared.css
   comes first: it has the font, the nav bar and the footer. */
body {
  background: #ffffff;
  color: #111214;
}

.legal-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 96px 24px;
  text-align: center;
}
.legal-head h1 {
  font-size: 64px;
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.05em;
}
.updated {
  font-size: 15px;
  line-height: 20px;
  color: #5e5e5e;
}

/* The text column is 720 px wide, in the centre of the page. The table of contents is 200 px wide,
   30 px at the left of the text, and stays on the screen while the text scrolls. */
.legal-body {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) minmax(0, 720px) minmax(0, 1fr);
  align-items: start;
  padding-bottom: 128px;
}
.toc {
  position: sticky;
  top: 100px;
  justify-self: end;
  width: 200px;
  max-height: calc(100vh - 120px);
  margin-right: 30px;
  padding-top: 4px;
  overflow-y: auto;
}
.toc ol {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.toc a {
  display: block;
  font-size: 14px;
  line-height: 20px;
  color: #5e5e5e;
}
/* The hover of a link of the table: the dark text, in place of the fade of css/shared.css. The
   current link is dark already, so it keeps the fade. */
.toc a:hover,
.toc a.is-current {
  color: #111214;
}
.toc a:not(.is-current):hover {
  opacity: 1;
}
.toc a.is-current {
  font-weight: 500;
}

/* The text: 17/26, 16 px between two blocks. A title of a section has 64 px above it and 24 px
   under it. A title of a part has 32 px above it and 10 px under it. A jump to a section leaves
   100 px above its title, the height of the nav. */
.legal-text {
  grid-column: 2;
  min-width: 0;
  font-size: 17px;
  line-height: 26px;
  overflow-wrap: break-word;
}
.legal-text :where(ul, ol) {
  margin: 0;
  padding-left: 25.5px;
}
.legal-text > * + * {
  margin-top: 16px;
}
.legal-text h2 {
  margin-top: 64px;
  font-size: 34px;
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.05em;
  scroll-margin-top: 100px;
}
.legal-text h3 {
  margin-top: 32px;
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
}
.legal-text h2 + * {
  margin-top: 24px;
}
.legal-text h2 + h3 {
  margin-top: 56px;
}
.legal-text h3 + * {
  margin-top: 10px;
}
.legal-text > :first-child {
  margin-top: 0;
}
.legal-text li + li,
.legal-text li > :where(ul, ol) {
  margin-top: 12px;
}
.legal-text li > p {
  margin: 0;
}
.legal-text a {
  color: #0a7aff;
}
.legal-text strong {
  font-weight: 600;
}
.legal-text code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
}
/* A wide table scrolls in its own box, and the page does not. */
.legal-text .table {
  overflow-x: auto;
}
.legal-text table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 22px;
}
.legal-text th,
.legal-text td {
  padding: 10px 16px 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  text-align: left;
  vertical-align: top;
}
.legal-text th {
  font-weight: 500;
}

/* Below 1000 px the table of contents does not fit at the left of the text: the page has no table. */
@media (max-width: 999px) {
  .legal-body {
    display: block;
    padding: 0 24px 96px;
  }
  .toc {
    display: none;
  }
  .legal-text {
    max-width: 720px;
    margin: 0 auto;
  }
}
/* A phone: the nav of /new on a phone, a smaller title and smaller titles of sections. */
@media (max-width: 760px) {
  .legal-head {
    gap: 14px;
    padding: 56px 24px 48px;
  }
  .legal-head h1 {
    font-size: 38px;
  }
  .legal-body {
    padding-bottom: 80px;
  }
  .legal-text h2 {
    margin-top: 48px;
    font-size: 26px;
    line-height: 1.2;
    letter-spacing: -0.02em;
  }
  .legal-text h2 + * {
    margin-top: 16px;
  }
  .legal-text h3 {
    margin-top: 28px;
  }
  .legal-text h2 + h3 {
    margin-top: 44px;
  }
}
