:root {
  --site-blue: #2D5AFE;
  --site-text: #171717;
  --site-muted: #686b73;
  --site-line: rgba(0,0,0,0.07);
}

.site-navbar,
.site-navbar *,
.site-footer,
.site-footer * {
  box-sizing: border-box;
}

.site-navbar {
  width: 100%;
  max-width: 100vw;
  min-height: 68px;
  margin: 0;
  padding: 12px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  z-index: 1000;
  border: 0;
  border-bottom: 1px solid rgba(17,17,17,0.08);
  border-radius: 0;
  box-shadow: 0 12px 34px rgba(18, 24, 40, 0.08);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -0.04em;
  color: var(--site-blue);
  text-decoration: none;
  flex: 0 0 auto;
  background: rgba(45,90,254,0.08);
}

.site-nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
}

.site-nav-links {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
  min-width: 0;
  justify-content: flex-end;
}

.site-nav-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 13px;
  color: var(--site-text);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 650;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-nav-links a:hover,
.site-nav-links a:focus-visible {
  background: rgba(45,90,254,0.1);
  color: var(--site-blue);
}

.site-nav-links a:active {
  transform: translateY(1px);
}

.site-footer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 0.98rem;
  font-weight: 650;
}

.language-select {
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(45,90,254,0.18);
  background: rgba(45,90,254,0.08);
  color: var(--site-text);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 750;
  padding: 0 34px 0 12px;
}

.translation-note {
  display: none;
  margin: 0;
  padding: 10px 5%;
  background: rgba(45,90,254,0.08);
  color: var(--site-blue);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
}

.translation-note.is-visible {
  display: block;
}

.site-footer {
  border-top: 1px solid var(--site-line);
  padding: 42px 5% 58px;
  color: var(--site-muted);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  text-align: left;
}

.site-footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.legal-page {
  background:
    linear-gradient(180deg, rgba(45,90,254,0.045), rgba(255,255,255,0) 280px),
    #fff;
}

.legal-page .legal-header {
  width: min(1060px, calc(100% - 40px));
  padding: 78px 0 34px;
  border-bottom: 1px solid var(--site-line);
}

.legal-page .legal-header p {
  max-width: 720px;
}

.legal-page main {
  width: min(940px, calc(100% - 40px));
  padding: 40px 0 84px;
}

.legal-page h1 {
  font-size: clamp(2.7rem, 7vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.legal-page h2 {
  border-top: 1px solid var(--site-line);
  padding-top: 28px;
  margin: 44px 0 12px;
}

.legal-page h2:first-child {
  border-top: 0;
  padding-top: 0;
}

.legal-page p,
.legal-page li {
  max-width: 820px;
}

.legal-page .notice {
  border: 1px solid rgba(45,90,254,0.18);
  background: rgba(45,90,254,0.055);
  border-radius: 24px;
  padding: 22px 24px;
  color: var(--site-text);
}

@media (max-width: 820px) {
  .site-navbar {
    width: 100%;
    max-width: 100vw;
    border-radius: 0;
    align-items: center;
    flex-direction: row;
    top: 0;
    padding: 10px 16px;
    min-height: 62px;
    gap: 10px;
  }

  .site-nav-right {
    width: auto;
    flex: 1;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
  }

  .site-nav-links {
    display: none;
  }

  .site-brand {
    min-height: 40px;
    padding: 0 13px;
    font-size: 1.06rem;
  }

  .language-select {
    min-height: 38px;
    max-width: 78px;
    padding: 0 28px 0 11px;
    font-size: 0.84rem;
  }

  .site-footer {
    padding: 34px 16px 44px;
    text-align: center;
    align-items: center;
    justify-content: center;
  }

  .site-footer-links {
    justify-content: center;
    gap: 12px;
  }
}
