:root {
  color-scheme: light;
  --bg: #ffffff;
  --line: rgba(20, 31, 52, 0.12);
  --ink: #111318;
  --muted: #687180;
  --blue: #007aff;
  --green: #34c759;
  --shadow: 0 18px 55px rgba(40, 55, 84, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(0, 122, 255, 0.055), rgba(255, 255, 255, 0) 280px),
    var(--bg);
  color: var(--ink);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    "SF Pro Text",
    "Segoe UI",
    system-ui,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.legal-page {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.legal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.legal-brand-mark {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, #007aff 0%, #30b0c7 58%, #34c759 100%);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(0, 122, 255, 0.14);
}

.legal-brand-mark svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.legal-brand-mark .logo-hand {
  stroke-width: 2.8;
}

.legal-brand-mark .logo-spark {
  fill: #d7fff6;
  stroke: 0;
}

.legal-brand strong,
.legal-brand > span:not(.legal-brand-mark) > span {
  display: block;
  white-space: nowrap;
}

.legal-brand strong {
  font-size: 18px;
  font-weight: 820;
  line-height: 1.05;
}

.legal-brand > span:not(.legal-brand-mark) > span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid rgba(0, 122, 255, 0.18);
  border-radius: 13px;
  background: rgba(0, 122, 255, 0.06);
  padding: 0 14px;
  font-size: 13px;
  font-weight: 760;
  white-space: nowrap;
}

.legal-hero {
  display: grid;
  gap: 12px;
  padding: 46px 0 22px;
}

.legal-kicker {
  width: fit-content;
  margin: 0;
  border: 1px solid rgba(0, 122, 255, 0.14);
  border-radius: 999px;
  background: rgba(0, 122, 255, 0.06);
  color: var(--blue);
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 780;
}

.legal-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 860;
  line-height: 1.02;
  letter-spacing: 0;
}

.legal-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 540;
  line-height: 1.48;
}

.legal-card {
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  padding: 24px;
}

.legal-section {
  display: grid;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(20, 31, 52, 0.08);
}

.legal-section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.legal-section h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 820;
  line-height: 1.18;
}

.legal-section p,
.legal-section li {
  color: color-mix(in srgb, var(--muted) 88%, var(--ink));
  font-size: 15px;
  font-weight: 520;
  line-height: 1.5;
}

.legal-section p,
.legal-section ul {
  margin: 0;
}

.legal-section ul {
  display: grid;
  gap: 7px;
  padding-left: 18px;
}

.legal-note {
  border: 1px solid rgba(52, 199, 89, 0.18);
  border-radius: 18px;
  background: rgba(52, 199, 89, 0.06);
  color: color-mix(in srgb, var(--muted) 78%, var(--ink));
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 640;
  line-height: 1.4;
}

.legal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.legal-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 560px) {
  .legal-page {
    width: min(100% - 28px, 920px);
    padding-top: 18px;
  }

  .legal-topbar {
    align-items: flex-start;
  }

  .legal-brand > span:not(.legal-brand-mark) > span {
    display: none;
  }

  .legal-back {
    min-height: 34px;
    padding-inline: 12px;
    font-size: 12px;
  }

  .legal-hero {
    padding-top: 34px;
  }

  .legal-card {
    border-radius: 22px;
    padding: 18px;
  }
}
