@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

:root {
  color-scheme: dark;
  --legal-bg: #030303;
  --legal-surface: #111315;
  --legal-line: #2c3035;
  --legal-text: #f5f5f5;
  --legal-muted: #b7bcc3;
  --legal-accent: #91a9c1;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--legal-bg);
  scroll-behavior: smooth;
}

body {
  width: 100%;
  max-width: 480px;
  min-width: 320px;
  margin: 0 auto;
  background: var(--legal-bg);
  color: var(--legal-text);
  font-family: 'Helvetica Neue', Inter, Arial, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.legal-header {
  width: min(100% - 40px, 900px);
  margin: 0 auto;
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--legal-line);
}

.legal-header__logo {
  display: block;
  width: 34px;
  height: 43px;
  object-fit: contain;
}

.legal-header__back {
  color: var(--legal-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.legal-header__back:hover,
.legal-header__back:focus-visible {
  color: var(--legal-text);
  text-decoration: underline;
}

.legal-main {
  width: min(100% - 40px, 760px);
  margin: 0 auto;
  padding: 72px 0 96px;
}

.legal-kicker {
  display: block;
  margin-bottom: 14px;
  color: var(--legal-accent);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal-title {
  max-width: 720px;
  margin: 0;
  font-size: 42px;
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}

.legal-updated {
  margin: 24px 0 0;
  color: var(--legal-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.legal-intro {
  margin: 52px 0 0;
  padding: 24px;
  border: 1px solid var(--legal-line);
  border-radius: 20px;
  background: var(--legal-surface);
  color: var(--legal-text);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.55;
  text-wrap: balance;
}

.legal-section {
  padding-top: 44px;
}

.legal-section h2 {
  margin: 0 0 18px;
  color: var(--legal-text);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.25;
  text-wrap: balance;
}

.legal-section p,
.legal-section li {
  color: var(--legal-muted);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  text-wrap: pretty;
}

@supports (text-wrap: balance) {
  .legal-section p,
  .legal-section li {
    text-wrap: balance;
  }
}

.legal-section p {
  margin: 0 0 14px;
}

.legal-section ul,
.legal-section ol {
  margin: 0;
  padding-left: 22px;
}

.legal-section li + li {
  margin-top: 9px;
}

.legal-section strong {
  color: var(--legal-text);
  font-weight: 500;
}

.legal-section a {
  color: var(--legal-text);
  text-decoration-color: var(--legal-accent);
  text-underline-offset: 3px;
}

.legal-note {
  margin-top: 18px !important;
  padding-left: 16px;
  border-left: 2px solid var(--legal-accent);
}

.legal-footer {
  width: min(100% - 40px, 900px);
  margin: 0 auto;
  padding: 30px 0 44px;
  border-top: 1px solid var(--legal-line);
  color: var(--legal-muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  text-align: center;
}

.legal-footer a {
  text-underline-offset: 3px;
}

@media (max-width: 520px) {
  .legal-header {
    width: calc(100% - 32px);
    padding: 22px 0;
  }

  .legal-main {
    width: calc(100% - 32px);
    padding: 52px 0 72px;
  }

  .legal-title {
    font-size: 36px;
    overflow-wrap: anywhere;
  }

  .legal-intro {
    margin-top: 38px;
    padding: 20px;
    font-size: 16px;
  }

  .legal-section {
    padding-top: 36px;
  }

  .legal-section h2 {
    font-size: 21px;
  }

  .legal-footer {
    width: calc(100% - 32px);
  }
}
