/* --------------------------------------------------------------------------
   The legal pages (legal.html.twig): privacy policy, terms of use, deleting an
   account, support. Linked after the stylesheet of the site, on those pages
   only. A page to read: one column, the colours and type of the site, no motion.
   -------------------------------------------------------------------------- */
.legal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 80px;
  padding: 12px var(--gutter);
  border-bottom: 1px solid var(--hair);
}
.legal-top-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.legal-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--text-muted);
}
@media (hover: hover) {
  .legal-back:hover {
    color: var(--text);
  }
}

.legal {
  box-sizing: border-box;
  width: 100%;
  max-width: calc(760px + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(48px, 8vw, 112px) var(--gutter) clamp(72px, 10vw, 140px);
}
.legal h1 {
  margin: 20px 0 0;
  font-family: var(--f-display);
  font-weight: 800;
  font-style: italic;
  font-size: var(--t-3xl);
  line-height: 0.95;
  letter-spacing: -0.02em;
  font-variation-settings: 'wdth' 90;
  text-wrap: balance;
}
.legal-intro {
  margin: 24px 0 0;
  font-size: var(--t-lg);
  line-height: 1.45;
  color: var(--text-muted);
  text-wrap: pretty;
}
.legal-meta {
  margin: 28px 0 0;
  color: var(--text-faint);
}
.legal-draft {
  margin: 20px 0 0;
  padding: 14px 18px;
  border: 1px solid var(--red);
  border-radius: var(--radius-s);
  background: #e10e1f1f; /* rgba(225, 14, 31, 0.12) */
  font-weight: 500;
}

.legal-section {
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: clamp(24px, 3vw, 32px);
  border-top: 1px solid var(--hair);
}
.legal-section h2 {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 0 0 16px;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: var(--t-xl);
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-variation-settings: 'wdth' 90;
}
.legal-section h2 .mono {
  flex: none;
  color: var(--red-hot);
  font-weight: 500;
}
.legal-section h3 {
  margin: 28px 0 8px;
  font-family: var(--f-body);
  font-size: var(--t-base);
  font-weight: 700;
}
.legal-section p,
.legal-section li {
  color: var(--text-muted);
  text-wrap: pretty;
}
.legal-section p {
  margin: 0 0 14px;
}
.legal-section ul,
.legal-section ol {
  margin: 0 0 14px;
  padding-left: 1.25em;
}
.legal-section li {
  margin-bottom: 8px;
  padding-left: 4px;
}
.legal-section li::marker {
  color: var(--red-hot);
}
.legal-section p:last-child,
.legal-section ul:last-child,
.legal-section ol:last-child {
  margin-bottom: 0;
}
.legal-mail {
  font-weight: 500;
}
.legal-section .legal-mail,
.legal-mail a {
  color: var(--text);
}
.legal-mail a {
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

.legal-more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: clamp(24px, 3vw, 32px);
  border-top: 1px solid var(--hair);
}
.legal-more h2 {
  margin: 0 12px 0 0;
  color: var(--text-faint);
  font-weight: 500;
}
.legal-more a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--hair-strong);
  border-radius: 999px;
  font-weight: 500;
}
@media (hover: hover) {
  .legal-more a:hover {
    border-color: var(--red-hot);
    color: var(--red-hot);
  }
}

@media (max-width: 479px) {
  .legal-top {
    min-height: 64px;
  }
  .legal-back {
    display: none;
  }
  .legal-section h2 {
    gap: 12px;
  }
}
