@font-face {
  font-family: "Manrope Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("./manrope-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

@font-face {
  font-family: "Manrope Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("./manrope-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* Legal pages deploy independently, but share the public site's palette and glass. */
:root {
  --ink: #070d17;
  --mint: #d8b67f;
  --mint-soft: #f0d6aa;
  --mint-deep: #b99661;
  --text: #f1f0eb;
  --text-muted: rgba(228, 234, 229, 0.75);
  --line: rgba(182, 214, 204, 0.15);
  --glass-edge: rgba(169, 226, 214, 0.24);
  --glass-shadow: inset 1px 1px rgba(217, 255, 244, 0.15), inset -1px -1px rgba(77, 163, 153, 0.1), 0 24px 60px rgba(0, 0, 0, 0.25);
}

* { box-sizing: border-box; }

html { background: var(--ink); }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 75% 700px at 65% 360px, rgba(26, 114, 105, 0.36), transparent 72%),
    radial-gradient(ellipse at 100% 48%, rgba(31, 65, 128, 0.3), transparent 62%),
    linear-gradient(150deg, #060d14 0%, #0b1e27 40%, #091932 74%, #040914 100%);
  color: var(--text);
  font-family: "Manrope Variable", Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 480;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

a { color: inherit; }
::selection { background: var(--mint); color: var(--ink); }
a:focus-visible { outline: 2px solid var(--mint-soft); outline-offset: 4px; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 100;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--mint);
  color: var(--ink);
  text-decoration: none;
  transform: translate(-50%, calc(-100% - 24px));
}

.skip-link:focus { transform: translate(-50%, 0); }

.site-nav {
  position: sticky;
  top: 12px;
  z-index: 50;
  width: min(1392px, calc(100% - 32px));
  margin: 12px auto 0;
  border: 1px solid var(--glass-edge);
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 12% 0%, rgba(192, 245, 229, 0.12), transparent 62%),
    linear-gradient(140deg, rgba(28, 65, 62, 0.32), rgba(13, 31, 47, 0.4) 48%, rgba(6, 16, 38, 0.54));
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(28px) saturate(155%);
  -webkit-backdrop-filter: blur(28px) saturate(155%);
}

.site-nav__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  min-height: 68px;
  padding: 8px 14px 8px 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  font-size: 18px;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.brand b { font-weight: 800; }

.brand-mark {
  display: inline-grid;
  width: 35px;
  height: 38px;
  flex: none;
  place-items: center;
  border: 1px solid rgba(118, 250, 214, 0.2);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(216, 182, 127, 0.12), rgba(100, 169, 162, 0.13));
  color: var(--mint-soft);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(189, 229, 223, 0.09);
  border-radius: 14px;
  background: rgba(212, 255, 247, 0.035);
}

.nav-links a {
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.nav-links a:hover { background: rgba(213, 255, 247, 0.075); color: var(--text); }

.nav-account {
  display: inline-flex;
  justify-self: end;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--mint-deep);
  border-radius: 12px;
  background: rgba(216, 182, 127, 0.08);
  color: var(--mint-soft);
  font-size: 13px;
  font-weight: 780;
  text-decoration: none;
}

.nav-account:hover { background: rgba(216, 182, 127, 0.16); }
.nav-account svg { width: 17px; height: 17px; flex: none; }

.shell, .site-footer { width: min(1040px, calc(100% - 48px)); margin-inline: auto; }
.shell { padding-block: clamp(48px, 6vw, 88px) 56px; scroll-margin-top: 100px; }
.document-header { max-width: 920px; margin: 0 auto 36px; }

h1 {
  margin: 0 0 24px;
  font-size: clamp(1.75rem, 4.8vw, 4rem);
  font-weight: 550;
  line-height: 1.12;
  letter-spacing: -0.035em;
  overflow-wrap: break-word;
}

.lede { margin: 0; color: var(--text-muted); font-size: clamp(16px, 1.7vw, 20px); line-height: 1.75; }
.meta { margin: 24px 0 0; color: var(--text-muted); font-size: 13px; line-height: 1.8; }

.document-content {
  padding: clamp(22px, 4.2vw, 60px);
  border: 1px solid var(--glass-edge);
  border-radius: 28px;
  background:
    radial-gradient(ellipse at 9% 0%, rgba(155, 225, 210, 0.12), transparent 58%),
    linear-gradient(145deg, rgba(28, 60, 60, 0.52), rgba(15, 35, 48, 0.48) 48%, rgba(7, 16, 39, 0.62));
  box-shadow: var(--glass-shadow);
}

.prose h2 { margin: 44px 0 16px; font-size: clamp(22px, 2.5vw, 28px); font-weight: 650; line-height: 1.3; letter-spacing: -0.025em; }
.prose h3 { margin: 28px 0 10px; font-size: 18px; font-weight: 650; line-height: 1.5; }
.document-content > :first-child { margin-top: 0; }
.document-content > :last-child { margin-bottom: 0; }
.document-content p, .document-content li { color: var(--text-muted); font-size: 16px; line-height: 1.85; }
.document-content p { margin: 0 0 16px; }
.document-content ul, .document-content ol { margin: 0 0 20px; padding-left: 24px; }
.document-content li { padding-left: 4px; margin-bottom: 10px; }
.document-content li::marker { color: var(--mint); }
.document-content li ul { margin: 12px 0 0; }
.document-content strong { color: var(--text); font-weight: 700; }
.document-content .meta { margin-top: 32px; font-size: 13px; }
.prose a { color: var(--mint-soft); text-decoration-thickness: 1px; text-underline-offset: 4px; overflow-wrap: anywhere; }
.prose a:hover { color: var(--text); }

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-block: 30px 42px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}

.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--mint-soft); }

@media (max-width: 900px) {
  .site-nav__inner { grid-template-columns: 1fr auto; gap: 8px; }
  .nav-links { grid-row: 2; grid-column: 1 / -1; justify-content: center; }
  .nav-links a { min-height: 44px; display: inline-flex; align-items: center; }
  .nav-account { grid-column: 2; grid-row: 1; }
  .shell { scroll-margin-top: 155px; }
}

@media (max-width: 600px) {
  .site-nav { top: 10px; width: calc(100% - 20px); border-radius: 17px; }
  .site-nav__inner { padding: 9px; }
  .brand { gap: 8px; font-size: 15px; }
  .brand-mark { width: 31px; height: 34px; }
  .nav-account { width: 44px; min-height: 44px; padding: 0; }
  .nav-account span { display: none; }
  .nav-links { gap: 0; padding: 0; }
  .nav-links a { padding-inline: 12px; }
  .shell, .site-footer { width: calc(100% - 28px); }
  .shell { padding-block: 40px; }
  .document-header { margin-bottom: 28px; }
  .document-content { padding: 24px 20px; border-radius: 20px; }
  .document-content p, .document-content li { font-size: 15px; }
  .prose h2 { margin-top: 36px; }
  .document-content > :first-child { margin-top: 0; }
  .site-footer { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-nav { background: #102624; }
}

@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .site-nav, .document-content {
    background: #102624;
    border-color: #829e93;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
