:root {
  --bg: #f8f8f7;
  --text: #101114;
  --muted: #565c63;
  --faint: #6a7078;
  --line: #e7e7e3;
  --accent: #2b4af5;
  --accent-hover: #1c31bd;
}
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  font-family: "Onest", system-ui, sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
::selection { background: #d9e0ff; }
input::placeholder { color: #9aa0a8; }
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: #e2e2de;
  outline: none;
  cursor: pointer;
  width: 100%;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--accent);
  border: 4px solid #fff;
  box-shadow: 0 2px 8px rgba(16,17,20,0.25);
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--accent);
  border: 4px solid #fff;
  box-shadow: 0 2px 8px rgba(16,17,20,0.25);
  cursor: pointer;
}
button, a { -webkit-tap-highlight-color: transparent; }
sc-if, sc-for { display: contents; }
sc-if[hidden] { display: none !important; }
@media (max-width: 1099px) {
  sc-if[data-show="desktop"] { display: none !important; }
}
@media (min-width: 1100px) {
  sc-if[data-show="narrow"] { display: none !important; }
}
#root { min-height: 100vh; }
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 20px 80px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.legal-page h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.legal-page h2 {
  margin: 12px 0 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.legal-page p, .legal-page li {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--muted);
}
.legal-page ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.legal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(248,248,247,0.92);
  backdrop-filter: blur(14px);
}
.legal-top img { height: 32px; width: auto; display: block; }
.err-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  gap: 14px;
}
