:root {
  --ev-background: #18191b;
  --ev-surface: #1e2022;
  --ev-text-primary: #ffffff;
  --ev-text-secondary: rgba(255, 255, 255, 0.55);
  --ev-text-tertiary: rgba(255, 255, 255, 0.35);
  --ev-border: rgba(255, 255, 255, 0.08);
  --ev-focus: #ffffff;
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--ev-background);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--ev-background);
  color: var(--ev-text-primary);
  overflow-wrap: anywhere;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 8px;
  left: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #ffffff;
  color: #18191b;
  font-size: 14px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid var(--ev-border);
  background: rgba(24, 25, 27, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.site-header__inner,
.site-footer__inner {
  display: flex;
  width: min(100%, 760px);
  min-height: 56px;
  margin: 0 auto;
  padding: 0 20px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  flex: 0 0 auto;
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.document-nav {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 16px;
}

.document-nav a {
  color: var(--ev-text-secondary);
  text-decoration: none;
  font-size: 13px;
  line-height: 20px;
  white-space: nowrap;
}

.document-nav a:hover,
.document-nav a:focus-visible,
.document-nav a[aria-current="page"] {
  color: var(--ev-text-primary);
}

.document-nav a:focus-visible,
.brand:focus-visible,
.site-footer a:focus-visible {
  border-radius: 4px;
  outline: 2px solid var(--ev-focus);
  outline-offset: 4px;
}

.language-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 16px;
  border-left: 1px solid var(--ev-border);
}

.language-menu a[aria-current="true"] {
  color: var(--ev-text-primary);
}

.document-shell {
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.document-header {
  display: flex;
  margin-bottom: 24px;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.document-header h1 {
  width: 100%;
  margin: 0;
  color: var(--ev-text-primary);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 30px;
}

.document-updated {
  min-height: 20px;
  margin: 0;
  color: var(--ev-text-tertiary);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}

.legal-content {
  color: var(--ev-text-secondary);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.legal-content p,
.legal-content ul,
.legal-content ol {
  margin: 0;
}

.legal-content > p:first-child {
  margin-bottom: 24px;
}

.legal-content h2 {
  margin: 24px 0 8px;
  color: var(--ev-text-primary);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 20px;
}

.legal-content ul,
.legal-content ol {
  padding-left: 20px;
}

.legal-content li + li {
  margin-top: 6px;
}

.legal-content strong {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
}

.legal-content a {
  color: rgba(255, 255, 255, 0.78);
  text-underline-offset: 3px;
}

.site-footer {
  border-top: 1px solid var(--ev-border);
  color: var(--ev-text-tertiary);
  font-size: 12px;
  line-height: 18px;
}

.site-footer__inner {
  min-height: 72px;
}

.site-footer a {
  color: var(--ev-text-secondary);
  text-decoration: none;
}

html[data-embedded="true"] .site-header,
html[data-embedded="true"] .site-footer,
html[data-embedded="true"] .skip-link {
  display: none;
}

@media (max-width: 520px) {
  .document-nav {
    gap: 12px;
  }

  .document-nav a:not(.language-link) {
    display: none;
  }

  .language-menu {
    padding-left: 0;
    border-left: 0;
    gap: 8px;
  }

  .site-footer__inner {
    padding-top: 16px;
    padding-bottom: 16px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
  }
}

@media (min-width: 768px) {
  .document-shell {
    padding-right: 40px;
    padding-left: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
