/* Legal pages (privacy/, terms/): one readable column in the site's panel style.
   Loaded after style.css. These pages never get the .js class, so the one-screen
   desktop shell doesn't apply and the page scrolls normally. */

.legal-top .brand img {
  width: clamp(150px, 12vw, 190px);
}

/* The header is a flex row on some widths and a three-column grid on others. */
.legal-top .legal-back {
  grid-column: 3;
  justify-self: end;
  margin-left: auto;
}

.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(24px, 5vh, 56px) var(--gx) 48px;
}

.legal-panel {
  padding: clamp(22px, 4vw, 44px);
}

.legal h1 {
  margin-bottom: 6px;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.1;
}

.legal .legal-updated {
  margin-bottom: 28px;
  color: var(--dim);
}

.legal h2 {
  margin: 34px 0 10px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--mint);
}

.legal h3 {
  margin: 20px 0 6px;
  font-weight: 700;
  font-size: 16px;
}

.legal p,
.legal ul {
  margin: 0 0 12px;
  color: var(--muted);
}

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

.legal li {
  margin-bottom: 6px;
}

.legal strong {
  color: var(--text);
}

.legal-summary {
  margin: 0 0 8px;
  padding: 14px 18px;
  border-left: 2px solid var(--mint);
  background: var(--well);
}

.legal-summary p:last-child {
  margin-bottom: 0;
}

.legal table {
  width: 100%;
  margin: 0 0 14px;
  border-collapse: collapse;
  font-size: 15px;
}

.legal th,
.legal td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  color: var(--muted);
}

.legal th {
  color: var(--text);
  font-weight: 700;
}

.legal-foot {
  justify-content: center;
}

@media (max-width: 600px) {
  .legal table,
  .legal thead,
  .legal tbody,
  .legal tr,
  .legal th,
  .legal td {
    display: block;
  }
  .legal thead {
    display: none;
  }
  .legal tr {
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
  }
  .legal td {
    padding: 2px 0;
    border: 0;
  }
  .legal td:first-child {
    color: var(--text);
    font-weight: 700;
  }
}
