:root {
  color-scheme: dark;
  --ink: #fbf9ff;
  --muted: #d7cfdf;
  --accent: #f0a8d1;
  --accent-strong: #67c8f8;
  --surface: rgba(37, 28, 61, 0.76);
  --line: rgba(255, 255, 255, 0.16);
  --shadow: 0 24px 70px rgba(10, 6, 24, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  background: #171126;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 6%, rgba(201, 127, 174, 0.34), transparent 34rem),
    radial-gradient(circle at 90% 24%, rgba(103, 200, 248, 0.24), transparent 30rem),
    linear-gradient(145deg, #33284f 0%, #241e38 48%, #101526 100%);
  font-family: "Avenir Next", "Segoe UI Variable", ui-sans-serif, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection {
  color: #171126;
  background: var(--accent);
}

a {
  color: var(--ink);
  text-decoration-color: rgba(240, 168, 209, 0.66);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.24em;
}

a:hover {
  text-decoration-color: var(--accent);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent-strong);
  outline-offset: 4px;
}

.shell {
  width: min(100% - 32px, 760px);
  margin-inline: auto;
  padding-block: 40px 72px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 56px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(145deg, #e6a4c5, #66518f);
  box-shadow: 0 8px 24px rgba(13, 8, 28, 0.28);
}

.brand-mark svg {
  width: 21px;
  height: 21px;
}

.language-switch {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.language-switch button {
  min-width: 44px;
  min-height: 38px;
  padding: 7px 12px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.language-switch button[aria-pressed="true"] {
  color: #171126;
  background: var(--ink);
}

.hero {
  margin-bottom: 36px;
}

h1,
h2 {
  margin: 0;
  line-height: 1.14;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 14ch;
  font-size: clamp(2.6rem, 8vw, 5rem);
  font-weight: 780;
}

h2 {
  margin-top: 38px;
  margin-bottom: 12px;
  font-size: clamp(1.28rem, 3vw, 1.55rem);
  font-weight: 720;
}

.intro,
.updated {
  color: var(--muted);
}

.intro {
  max-width: 62ch;
  margin-top: 18px;
  font-size: 1.08rem;
}

.updated {
  margin-top: 18px;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.document {
  padding: clamp(24px, 6vw, 52px);
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.document p,
.document li {
  color: var(--muted);
}

.document ul {
  padding-inline-start: 1.25rem;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.link-card {
  display: flex;
  min-height: 112px;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.09);
  text-decoration: none;
  transition: transform 180ms ease-out, background 180ms ease-out, box-shadow 180ms ease-out;
}

.link-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 32px rgba(10, 6, 24, 0.22);
}

.link-card span:last-child {
  color: var(--muted);
  font-size: 0.92rem;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.legal-nav a {
  font-size: 0.92rem;
}

[data-language][hidden] {
  display: none;
}

@media (max-width: 600px) {
  .shell {
    width: min(100% - 24px, 760px);
    padding-top: 22px;
  }

  .topbar {
    margin-bottom: 42px;
  }

  .document {
    border-radius: 24px;
  }

  .link-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .link-card {
    transition: none;
  }
}
