/* The public privacy page: brand row, title, sections of text and one table
   of what is kept. Type, buttons, the panel and the table come from the
   shared shell. */
.privacy-page {
  max-width: 880px;
  margin: 0 auto;
  padding: 28px 24px 48px;
}

.privacy-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.privacy-page h1 {
  margin: 0 0 8px;
  color: var(--ink);
  font: 500 var(--fs-title)/1.15 var(--font-display);
  letter-spacing: -0.025em;
}

/* Two classes outrank .privacy-page p, so the label keeps its own size, colour and margin. */
.privacy-page .privacy-updated {
  margin: 0 0 14px;
  color: var(--muted);
  font: 400 var(--fs-label)/1.5 var(--font-mono);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.privacy-page section + section {
  margin-top: 32px;
}

.privacy-page h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font: 500 15px/1.35 var(--font-sans);
}

.privacy-page p,
.privacy-page li {
  max-width: 72ch;
  color: var(--ink);
  font-size: var(--fs-ui-body);
  line-height: 1.65;
}

.privacy-page p {
  margin: 0;
}

.privacy-page ul {
  margin: 0;
  padding-left: 18px;
}

.privacy-page section > :is(p, ul) + :is(p, ul) {
  margin-top: 10px;
}

.privacy-page li + li {
  margin-top: 6px;
}

.privacy-page li::marker {
  color: var(--muted);
}

.privacy-page a:not(.login-brand) {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 4px;
}

.privacy-page a:not(.login-brand):hover {
  text-decoration-color: currentColor;
}

.privacy-table th[scope="row"] {
  width: 24%;
  color: var(--ink);
  font: 500 var(--fs-ui-small)/1.5 var(--font-sans);
  text-transform: none;
  white-space: normal;
}

.privacy-table thead th:last-child {
  width: 26%;
}

.privacy-table tbody :is(th, td) {
  padding-top: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  line-height: 1.55;
  vertical-align: top;
}

.privacy-table tbody tr:last-child :is(th, td) {
  border-bottom: 0;
}

/* The rows are read, not picked, so they keep the panel colour. */
.privacy-table tbody tr:hover td {
  background: transparent;
}

/* On a phone each row is a block: the name, then why and how long under
   their own mono labels. */
@media (max-width: 720px) {
  .privacy-page {
    padding: 16px 16px 32px;
  }

  .privacy-header {
    margin-bottom: 24px;
  }

  .privacy-table thead {
    display: none;
  }

  .privacy-table,
  .privacy-table tbody,
  .privacy-table tr,
  .privacy-table th[scope="row"],
  .privacy-table td {
    display: block;
    width: auto;
  }

  .privacy-table tr {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
  }

  .privacy-table tbody tr:last-child {
    border-bottom: 0;
  }

  .privacy-table tbody :is(th, td) {
    padding: 0;
    border-bottom: 0;
  }

  .privacy-table td::before {
    display: block;
    margin: 10px 0 2px;
    color: var(--muted);
    font: 400 var(--fs-label)/1.5 var(--font-mono);
    letter-spacing: var(--tracking-label);
    text-transform: uppercase;
    content: attr(data-label);
  }
}
