/* The Privacy Policy and Terms of Use pages (privacy.html, terms.html):
   a plain reading column on the site's own colours (css/styles.css). */
.legal-top {
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}
.legal-top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.legal-brand {
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
}
.legal-back {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.legal-doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 0 64px;
  color: var(--text);
  line-height: 1.6;
}
.legal-doc h1 {
  margin: 0 0 6px;
}
.legal-updated {
  color: var(--text-dim);
  margin: 0 0 28px;
}
.legal-doc h2 {
  font-size: 20px;
  margin: 32px 0 8px;
}
.legal-doc h3 {
  font-size: 16px;
  margin: 20px 0 6px;
}
.legal-doc p,
.legal-doc li {
  margin: 0 0 10px;
}
.legal-doc ul {
  padding-left: 22px;
  margin: 0 0 12px;
}
.legal-doc a {
  color: var(--accent);
}
.legal-summary {
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin: 0 0 24px;
}
.legal-summary p:last-child {
  margin-bottom: 0;
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 16px;
  font-size: 14px;
}
.legal-table th,
.legal-table td {
  text-align: left;
  vertical-align: top;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}
.legal-table th {
  color: var(--text-dim);
  font-weight: 600;
}

/* A tick-box someone has to agree to (sign-up, buying Premium). A plain
   checkbox rather than the site's toggle switch: it reads as "I agree". */
.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
  cursor: pointer;
}
.consent-check input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--accent);
}
.consent-check a {
  color: var(--accent);
}
/* Inside a form, .form-field label is the small uppercase field caption
   (css/styles.css); an agreement is a sentence, so it reads as one. */
.form-field label.consent-check {
  font-size: 14px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text);
}
.form-field .consent-check input {
  width: 18px;
  height: 18px;
  padding: 0;
}

/* Premium's renewal terms and its agree box (index.html, js/premium.js). */
.premium-renewal {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
}
.premium-agree {
  margin-top: 12px;
}

/* The links at the foot of every page of the site (index.html). */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding: 20px 0 32px;
  color: var(--text-dim);
  font-size: 13px;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  align-items: center;
}
.site-footer a {
  color: var(--text-dim);
}
.site-footer a:hover {
  color: var(--accent);
}
.site-footer-note {
  flex-basis: 100%;
}

@media (max-width: 600px) {
  .legal-doc {
    padding-top: 20px;
  }
  .legal-table,
  .legal-table tbody,
  .legal-table tr,
  .legal-table td,
  .legal-table th {
    display: block;
  }
  .legal-table thead {
    display: none;
  }
  .legal-table td:first-child {
    font-weight: 600;
    border-bottom: 0;
    padding-bottom: 0;
  }
}
