/* The privacy page's prose, on top of login.css.
 *
 * login.css is loaded first and brings the shell, the header and the footer;
 * every page sheet in this project carries its own copy of that furniture, so
 * reusing one is how a new page gets a header that matches the others. Only
 * the reading column is defined here.
 *
 * Kept deliberately plain: this is a page people read once, usually because
 * they clicked the link on Google's consent screen, and the answer they came
 * for should be legible rather than decorated.
 */
.legal-wrap {
  width: min(820px, 100%);
  margin: 0 auto 64px;
  padding: clamp(20px, 4vw, 44px);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid #e4aaaa;
  border-top: 3px solid #cf3f3f;
  border-radius: 14px;
  box-shadow: 0 18px 34px rgba(96, 35, 35, 0.08);
  color: #2f2323;
  line-height: 1.65;
}

.legal-wrap h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
  color: #b02f2f;
  margin-bottom: 6px;
}

.legal-updated {
  font-size: 0.86rem;
  color: #6d5252;
  margin-bottom: 28px;
}

.legal-wrap h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.12rem;
  color: #3a2627;
  margin: 30px 0 10px;
  padding-top: 18px;
  border-top: 1px solid #f0d7d7;
}

.legal-wrap h2:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.legal-wrap p,
.legal-wrap li {
  font-size: 0.97rem;
}

.legal-wrap p {
  margin-bottom: 12px;
}

.legal-wrap ul {
  margin: 0 0 14px 20px;
}

.legal-wrap li {
  margin-bottom: 8px;
}

.legal-wrap a {
  color: #b02f2f;
}

/* The one paragraph a reader is most likely to be looking for: what leaves
 * this site and when. Marked rather than buried, because the answer is a
 * surprise — an essay is sent to two other companies when, and only when, the
 * student presses a button that does not say so. */
.legal-callout {
  margin: 16px 0 20px;
  padding: 14px 16px;
  background: #fff5f5;
  border-left: 3px solid #cf3f3f;
  border-radius: 0 8px 8px 0;
}

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

.legal-wrap table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 18px;
  font-size: 0.92rem;
}

.legal-wrap th,
.legal-wrap td {
  text-align: left;
  padding: 9px 10px;
  border-bottom: 1px solid #f0d7d7;
  vertical-align: top;
}

.legal-wrap th {
  font-weight: 700;
  color: #3a2627;
  background: #fff7f7;
}

.legal-wrap code {
  font-size: 0.88em;
  background: #fff1f1;
  padding: 1px 5px;
  border-radius: 4px;
}

@media (max-width: 640px) {
  .legal-wrap {
    border-radius: 10px;
  }

  /* The cookie table has three columns and none of them shortens. Below this
   * width it is read as stacked blocks instead, which is the same content
   * without a horizontal scroller inside a page that has none. */
  .legal-wrap table,
  .legal-wrap tbody,
  .legal-wrap tr,
  .legal-wrap td {
    display: block;
    width: 100%;
  }

  .legal-wrap thead {
    display: none;
  }

  .legal-wrap tr {
    margin-bottom: 14px;
    border-bottom: 1px solid #e9cccc;
  }

  .legal-wrap td {
    border-bottom: 0;
    padding: 2px 0;
  }

  .legal-wrap td:first-child {
    font-weight: 700;
  }
}
