/* Privacy, Terms and Delete-your-account.
   These pages get the same materials as the rest of the site and none of the
   showmanship: Settle on entry and nothing else. A compliance page is where
   an over-animated site looks worst. */

.legal {
  padding-top: clamp(40px, 6vw, 72px);
}

.legal h1 {
  margin-bottom: var(--s4);
}

.legal .lede {
}

/* Small print directly on the sky can't reach 4.5:1 at every scroll position
   (see .panel), so it gets its own light chip rather than a colour tweak. */
.legal__stamp {
  display: inline-block;
  background: rgba(255, 253, 246, 0.94);
  border-radius: var(--r-pill);
  padding: var(--s2) var(--s4);
  color: var(--ink-card-meta);
  font-size: 0.92rem;
  margin-bottom: var(--s6);
}

.legal__body {
  max-width: 78ch;
  padding: clamp(24px, 4vw, 44px);
}

.legal__body h2 {
  font-size: 1.35rem;
  margin-top: var(--s7);
  margin-bottom: var(--s3);
  color: var(--ink-card-title);
}

.legal__body h2:first-child {
  margin-top: 0;
}

.legal__body p {
  color: var(--ink-card-body);
  max-width: none;
}

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

.legal__foot {
  margin-top: var(--s6);
  display: inline-block;
}

/* --- Delete your account ------------------------------------------------- */

.delete-steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s4);
}

.delete-steps li {
  counter-increment: step;
  position: relative;
  padding-left: 58px;
  min-height: 44px;
  color: var(--ink-card-body);
}

.delete-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(var(--gummy-blue-top), var(--gummy-blue-bottom));
  box-shadow: 0 4px 0 var(--gummy-blue-lift);
  color: #fff;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
}

.delete-steps strong {
  display: block;
  font-size: 1.05rem;
}

.delete-columns {
  display: grid;
  gap: var(--s5);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: var(--s6);
}

.delete-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s2);
}

.delete-list li {
  position: relative;
  padding-left: 30px;
  color: var(--ink-card-body);
}

.delete-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.delete-list--gone li::before {
  background: var(--berry)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.6' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

.delete-list--kept li::before {
  background: var(--ink-glyph-muted)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4 10-10'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

.delete-cta {
  margin-top: var(--s7);
  text-align: center;
}

/* --- Table of contents (Privacy, Terms) --------------------------------- */

.legal__toc {
  max-width: 78ch;
  margin-bottom: var(--s5);
}

.legal__toc h2 {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-card-meta);
  margin-bottom: var(--s2);
}

.legal__toc ol {
  margin: 0;
  padding-left: 1.4em;
  columns: 2 220px;
  column-gap: var(--s6);
}

.legal__toc li {
  break-inside: avoid;
}

.legal__toc a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-card-body);
}

.legal__body h2 {
  scroll-margin-top: calc(var(--header-h) + var(--s4));
}

.legal__body a {
  overflow-wrap: anywhere;
}
