/* Legal page theme */
:root {
  --legal-bg: #000115;
  --legal-text: #f8f8fb;
  --legal-muted: #a8a9b9;
  --legal-line: rgba(255, 255, 255, 0.11);
}

body.legal-body {
  background: var(--legal-bg);
}

.legal-body main {
  overflow: visible;
}

/* Header */
.legal-header {
  min-height: 116px;
  display: grid;
  place-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(0, 1, 21, 0.94);
}

.legal-header-inner {
  position: relative;
  width: min(1200px, calc(100% - 64px));
  display: flex;
  align-items: center;
  justify-content: center;
}

.legal-header .brand {
  font-size: 22px;
}

.legal-header .brand-heart {
  width: 49px;
  height: 49px;
}

.legal-back {
  position: absolute;
  left: 0;
  min-height: 36px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #d8d8e2;
  font-size: 16px;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.legal-back:hover {
  border-color: rgba(255, 116, 141, 0.65);
  color: #fff;
  transform: translateX(-2px);
}

/* Document content */
.legal-content {
  width: min(1200px, calc(100% - 64px));
  margin-inline: auto;
  padding: 72px 0 124px;
}

.legal-intro {
  padding-bottom: 34px;
}

.legal-content h1 {
  margin-bottom: 22px;
  color: var(--legal-text);
  font-size: clamp(34px, 3.2vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.legal-content h2 {
  margin-bottom: 24px;
  color: var(--legal-text);
  font-size: clamp(24px, 2.25vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.legal-content h3 {
  margin-bottom: 11px;
  color: var(--legal-text);
  font-size: clamp(18px, 1.65vw, 24px);
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.legal-content p,
.legal-content li {
  color: var(--legal-muted);
  font-size: clamp(15px, 1.3vw, 19px);
  line-height: 1.55;
}

.legal-content p {
  margin-bottom: 14px;
}

.legal-content ul {
  margin: 8px 0 18px;
  padding-left: 28px;
}

.legal-content li + li {
  margin-top: 5px;
}

.legal-section {
  padding: 34px 0 30px;
  border-top: 1px solid var(--legal-line);
}

.legal-section h3:not(:first-child) {
  margin-top: 28px;
}

.legal-note {
  padding: 18px 20px;
  border: 1px solid rgba(255, 116, 141, 0.2);
  border-radius: 16px;
  background: rgba(255, 116, 141, 0.055);
}

.legal-contact-list {
  list-style: none;
  padding-left: 0 !important;
}

.legal-contact-list a {
  color: #f37ccd;
}

.legal-body .site-footer {
  position: relative;
}

/* Mobile and tablet */
@media (max-width: 900px) {
  .legal-header {
    min-height: 88px;
  }

  .legal-header-inner,
  .legal-content {
    width: min(343px, calc(100% - 32px));
  }

  .legal-header-inner {
    justify-content: flex-end;
  }

  .legal-header .brand {
    font-size: 15px;
  }

  .legal-header .brand-heart {
    width: 24px;
    height: 24px;
  }

  .legal-back {
    min-height: 32px;
    padding-inline: 13px;
    font-size: 11px;
  }

  .legal-content {
    padding: 46px 0 76px;
  }

  .legal-intro {
    padding-bottom: 26px;
  }

  .legal-content h1 {
    margin-bottom: 18px;
    font-size: 30px;
  }

  .legal-content h2 {
    margin-bottom: 20px;
    font-size: 23px;
  }

  .legal-content h3 {
    font-size: 18px;
  }

  .legal-content p,
  .legal-content li {
    font-size: 14px;
    line-height: 1.55;
  }

  .legal-content ul {
    padding-left: 21px;
  }

  .legal-section {
    padding: 28px 0 24px;
  }
}
