/* Colors mirror frontend/constants/index.ts */
:root {
  --color-bg-page-gradient-top: #9b7ccb;
  --color-bg-page-gradient-bottom: #b496da;
  --color-bg-light: #ffffff;
  --color-bg-light-secondary: #f2f0f5;
  --color-primary: #fff050;
  --color-text-dark: #0a0a0c;
  --color-border-subtle: rgba(0, 0, 0, 0.1);
  --border-radius-m: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  background: linear-gradient(180deg, var(--color-bg-page-gradient-top), var(--color-bg-page-gradient-bottom)) fixed;
  color: var(--color-text-dark);
  font-family:
    'Google Sans Flex',
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

.logo {
  width: 172px;
  height: auto;
  margin-bottom: 48px;
}

main {
  width: 100%;
  max-width: 720px;
  padding: 32px 40px 24px;
  background: var(--color-bg-light);
  border-radius: var(--border-radius-m);
  box-shadow: 0 8px 32px rgba(5, 5, 6, 0.1);
}

.languages {
  position: absolute;
  top: 16px;
  right: 32px;
  left: 32px;
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  margin-bottom: 16px;
}

.languages a {
  color: white;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.languages a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.languages a.active {
  color: var(--color-primary);
}

h1 {
  margin: 16px 0 4px;
  font-size: 28px;
}

main > h1:first-child {
  margin-top: 0;
}

h2 {
  margin: 28px 0 8px;
  font-size: 18px;
}

p,
ul {
  margin: 8px 0;
}

.updated {
  margin: 0 0 24px;
  font-size: 14px;
}

footer {
  margin-top: 48px;
  margin-bottom: 24px;
  color: white;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
}

footer a {
  color: inherit;
}

@media (max-width: 480px) {
  body {
    padding: 16px;
  }

  .languages {
    top: 16px;
    right: 16px;
    left: 16px;
  }

  .logo {
    width: 140px;
    margin-bottom: 24px;
  }

  main {
    padding: 24px 20px 16px;
  }
}
