/* Legal pages (Privacy, Terms, Security) */
.legal {
  padding-top: 0;
  padding-bottom: 0;
  background-color: var(--white);
  border-bottom: 0.5px solid var(--border-color);
}

.legal-container {
  padding: 100px 48px 120px;
}

.legal-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  max-width: 760px;
  padding-bottom: 48px;
  margin-bottom: 48px;
  border-bottom: 0.5px solid var(--border-color);
}

.legal-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 9999px;
  background: #E6F4FE;
  border: 1px solid var(--white);
  color: #0588F0;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: -0.07px;
}

.legal-title {
  margin: 0;
  font-size: 48px;
  font-weight: 500;
  line-height: 56px;
  letter-spacing: -1.44px;
  color: var(--text-main);
}

.legal-meta {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: -0.084px;
  color: #657080;
}

.legal-lead {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 26px;
  letter-spacing: -0.18px;
  color: #5A5A5A;
}

.legal-body {
  display: flex;
  flex-direction: column;
  gap: 36px;
  max-width: 760px;
}

.legal-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-item-heading {
  margin: 0;
  font-size: 22px;
  font-weight: 500;
  line-height: 30px;
  letter-spacing: -0.44px;
  color: var(--text-main);
}

.legal-item-text {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  letter-spacing: -0.18px;
  color: #5A5A5A;
}

.legal-item-text a,
.legal-lead a,
.legal-list a,
.legal-table a {
  color: #0588F0;
}

.legal-item-text a:hover,
.legal-lead a:hover,
.legal-list a:hover,
.legal-table a:hover {
  text-decoration: underline;
}

.legal-item-text strong,
.legal-lead strong,
.legal-list strong {
  font-weight: 600;
  color: var(--text-main);
}

/* A section with several paragraphs, sub-headings or tables */
.legal-item-text + .legal-item-text,
.legal-item-text + .legal-list,
.legal-list + .legal-item-text {
  margin-top: 8px;
}

.legal-item-subheading {
  margin: 16px 0 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 26px;
  letter-spacing: -0.18px;
  color: var(--text-main);
}

/* Tables scroll sideways inside their frame on narrow screens; the page itself never does */
.legal-table-wrap {
  margin-top: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--white);
}

.legal-table-wrap:focus-visible {
  outline: 2px solid #0588F0;
  outline-offset: 2px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 22px;
  letter-spacing: -0.1px;
  color: var(--text-muted);
  text-align: left;
}

.legal-table-wide {
  min-width: 640px;
}

.legal-table th,
.legal-table td {
  padding: 12px 16px;
  vertical-align: top;
}

.legal-table th {
  font-weight: 500;
  color: var(--text-main);
  background: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
}

.legal-table tbody tr + tr td {
  border-top: 1px solid var(--border-color);
}

.legal-table td:first-child {
  color: var(--text-main);
}

/* Phones: tighter cells, so a two-column table fits the screen (wider ones still scroll in their frame) */
@media (max-width: 640px) {
  .legal-table {
    font-size: 14px;
    line-height: 20px;
  }

  .legal-table th,
  .legal-table td {
    padding: 10px 12px;
  }
}

/* The legal layout as one section of another page (the contact table on /support) */
.legal-section .legal-intro {
  padding-bottom: 0;
  margin-bottom: 32px;
  border-bottom: 0;
}

@media (max-width: 960px) {
  .legal-container {
    padding: 72px 32px 88px;
  }
}

@media (max-width: 640px) {
  .legal-container {
    padding: 56px 24px 72px;
  }
  .legal-title {
    font-size: 32px;
    line-height: 40px;
    letter-spacing: -0.96px;
  }
  .legal-lead,
  .legal-item-text {
    font-size: 16px;
    line-height: 26px;
  }
}

.legal-list {
  margin: 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 18px;
  line-height: 28px;
  letter-spacing: -0.18px;
  color: #5A5A5A;
}

@media (max-width: 640px) {
  .legal-list {
    font-size: 16px;
    line-height: 26px;
  }
}
