/*
 * ============================================================================
 *  THE STYLES OF THE LEGAL PAGES
 * ============================================================================
 *
 *  The pages of privacy, terms and contact are plain reading pages: a
 *  column of text on a dark ground, the way the rest of the site looks.
 *
 *  They have to be easy to read on a phone, because most people who open
 *  them are on one.
 *
 * ============================================================================
 */

.legal-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #08080c;
  color: #e8e8ef;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ------------------------------------------------------------- the header */

.legal-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 8, 12, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: inherit;
}

.legal-brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(145deg, #7c6cff, #4c3fd6);
  color: #fff;
  font: 700 15px/1 'Inter', -apple-system, system-ui, sans-serif;
}

.legal-brand-text {
  font: 700 15px/1 'Inter', -apple-system, system-ui, sans-serif;
  letter-spacing: -0.015em;
}

.legal-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex-wrap: wrap;
}

.legal-nav a {
  padding: 7px 12px;
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}

.legal-nav a:hover {
  color: #f2f2f7;
  background: rgba(255, 255, 255, 0.07);
}

/* ---------------------------------------------------------------- the page */

.legal-main {
  flex: 1;
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 34px 24px 64px;
}

/* The way through the site. */
.legal-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
  font-size: 13px;
}

.legal-crumb-link {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}

.legal-crumb-link:hover {
  color: #a78bfa;
  text-decoration: underline;
}

.legal-crumb-sep {
  color: rgba(255, 255, 255, 0.25);
}

.legal-crumb-current {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
}

/* The head of the page. */
.legal-hero {
  margin-bottom: 34px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-title {
  margin: 0 0 12px;
  font-size: clamp(28px, 5vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.028em;
  font-weight: 800;
  color: #f7f7fb;
}

.legal-lead {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.68);
}

.legal-updated {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.42);
}

/* The sections. */
.legal-section {
  margin-bottom: 34px;
  scroll-margin-top: 80px;
}

.legal-h2 {
  margin: 0 0 12px;
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: -0.018em;
  font-weight: 700;
  color: #f2f2f7;
}

.legal-p {
  margin: 0 0 13px;
  font-size: 15.5px;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.72);
}

.legal-p a {
  color: #a78bfa;
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}

.legal-p a:hover {
  color: #c4b5fd;
}

.legal-list {
  margin: 0 0 13px;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.legal-list li {
  font-size: 15.5px;
  line-height: 1.68;
  color: rgba(255, 255, 255, 0.72);
}

.legal-list li::marker {
  color: rgba(167, 139, 250, 0.8);
}

/* The way to the other pages. */
.legal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-back {
  font-size: 13.5px;
  font-weight: 600;
  color: #a78bfa;
  text-decoration: none;
}

.legal-back:hover {
  text-decoration: underline;
}

.legal-others {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
}

.legal-link {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.58);
  text-decoration: none;
}

.legal-link:hover {
  color: #f2f2f7;
  text-decoration: underline;
}

/* --------------------------------------------------------------- the foot */

.legal-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #0b0b11;
}

.legal-footer-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.legal-footer-brand {
  font: 700 13.5px/1 'Inter', -apple-system, system-ui, sans-serif;
  color: #e8e8ef;
}

.legal-footer-note {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.4);
}

/* --------------------------------------------------------------- a phone */

@media (max-width: 640px) {
  .legal-topbar {
    padding: 11px 16px;
    gap: 10px;
  }

  .legal-nav {
    gap: 2px;
  }

  .legal-nav a {
    padding: 6px 9px;
    font-size: 12.5px;
  }

  .legal-main {
    padding: 24px 16px 48px;
  }

  .legal-lead {
    font-size: 15.5px;
  }

  .legal-p,
  .legal-list li {
    font-size: 15px;
  }

  .legal-footer-inner {
    padding: 20px 16px;
  }
}

@media (max-width: 400px) {
  .legal-brand-text {
    display: none;
  }
}
