*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  color-scheme: light;
  --ink: #111111;
  --ink-muted: #555555;
  --ink-faint: #767676;
  --paper: #ffffff;
  --paper-warm: #fafafa;
  --rule: rgba(0,0,0,0.08);
  --accent: #534AB7;
  --accent-dark: #443BA8;
}

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--paper); }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem;
  height: 56px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.nav-back {
  font-size: 0.875rem;
  color: var(--ink-muted);
  text-decoration: none;
}
.nav-back:hover { color: var(--ink); }

.lang-switch { display: flex; gap: 0.25rem; }
.lang-switch button {
  font: inherit;
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--ink-faint);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.lang-switch button:hover { color: var(--ink); border-color: var(--ink-muted); }
.lang-switch button.active {
  color: var(--ink);
  border-color: var(--ink);
}

.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 4rem 2rem 5rem;
}

.page-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.75rem;
}

.page h1 {
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.page-meta {
  font-size: 0.875rem;
  color: var(--ink-faint);
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
}

.lang-notice {
  font-size: 0.8125rem;
  color: var(--ink-faint);
  font-style: italic;
  border-left: 3px solid var(--rule);
  padding: 0.25rem 0 0.25rem 0.75rem;
  margin: -1.5rem 0 2.5rem;
}

.page h2 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.page p {
  font-size: 1rem;
  color: var(--ink-muted);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.page ul {
  margin-left: 1.25rem;
  margin-bottom: 1rem;
}

.page li {
  font-size: 1rem;
  color: var(--ink-muted);
  margin-bottom: 0.4rem;
  line-height: 1.7;
}

.page a { color: var(--accent); }

.btn-eula {
  display: inline-block;
  font-size: 0.9375rem;
  font-weight: 500;
  color: white !important;
  background: var(--accent);
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-eula:hover { background: var(--accent-dark); }

.redirect-note {
  font-size: 0.8125rem;
  color: var(--ink-faint);
}

footer {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-name {
  font-size: 0.875rem;
  color: var(--ink-faint);
}
.footer-links { display: flex; gap: 1.25rem; list-style: none; }
.footer-links a {
  font-size: 0.875rem;
  color: var(--ink-faint);
  text-decoration: none;
}
.footer-links a:hover { color: var(--ink-muted); }

@media (max-width: 540px) {
  nav { padding: 0 1rem; }
  .page { padding-left: 1.25rem; padding-right: 1.25rem; padding-top: 2.5rem; }
  footer { padding-left: 1.25rem; padding-right: 1.25rem; }
}
