:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #242424;
  background: #f3f4f6;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  line-height: 1.65;
}

a {
  color: #4f46e5;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #3730a3;
}

.legal-shell {
  width: min(760px, calc(100% - 32px));
  margin: 32px auto;
  padding: clamp(24px, 5vw, 48px);
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  box-shadow: 0 16px 50px rgb(15 23 42 / 8%);
}

.legal-back {
  display: inline-block;
  margin-bottom: 24px;
  color: #52525b;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

h1,
h2 {
  color: #18181b;
  line-height: 1.2;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 6vw, 3rem);
}

h2 {
  margin: 32px 0 8px;
  font-size: 1.25rem;
}

p,
ul {
  margin: 8px 0 16px;
}

ul {
  padding-left: 22px;
}

.legal-intro,
.legal-note,
.legal-updated {
  color: #52525b;
}

.legal-note {
  padding: 16px 18px;
  background: #f5f3ff;
  border-left: 4px solid #7c3aed;
  border-radius: 8px;
}

.legal-updated {
  margin-top: 40px;
  font-size: 0.85rem;
}

@media (max-width: 520px) {
  .legal-shell {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    border: 0;
    border-radius: 0;
  }
}
