@font-face {
  font-family: "Onest Local";
  src: url("../shared/fonts/onest-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root { color: #171918; background: #dcd8cc; font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.58; }
* { box-sizing: border-box; }
body { margin: 0; padding: 28px 24px 40px; }
::selection { color: #171918; background: #c9ff38; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: .08em; }
:focus-visible { outline: 3px solid #6347e9; outline-offset: 3px; }
.skip-link { position: fixed; inset: 10px auto auto 10px; z-index: 3; padding: 10px 14px; border-radius: 999px; color: #fff; background: #171918; transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.legal-header, .legal-shell, .legal-footer { width: min(100%, 1120px); margin-inline: auto; }
.legal-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 30px; border-radius: 28px 28px 0 0; background: #f1f0eb; }
.legal-brand { flex: 1 1 16rem; min-width: 0; font-family: "Onest Local", sans-serif; font-weight: 750; text-decoration: none; }
.draft-badge { flex: 0 0 auto; max-width: 100%; padding: 6px 10px; border-radius: 999px 999px 999px 10px; color: #805000; background: #ffe9a9; font-size: .8rem; font-weight: 760; }
.legal-shell { padding: 48px clamp(28px, 6vw, 88px) 72px; border-radius: 0 0 28px 28px; background: #fffefa; box-shadow: 0 24px 70px rgba(34,31,24,.12); }
.legal-document { max-width: 75ch; }
.legal-document h1, .legal-document h2, .legal-document h3 { font-family: "Onest Local", sans-serif; text-wrap: balance; }
.legal-document h1 { margin: 0 0 32px; font-size: clamp(2.4rem, 4.2vw, 4.8rem); line-height: .96; letter-spacing: -.04em; }
.legal-document h2 { margin: 48px 0 16px; font-size: clamp(1.62rem, 3vw, 2.45rem); line-height: 1.1; letter-spacing: -.035em; }
.legal-document h3 { margin: 34px 0 12px; font-size: 1rem; }
.legal-document p, .legal-document li { font-size: 1rem; }
.legal-document p { margin: 0 0 18px; }
.legal-document li + li { margin-top: 8px; }
.legal-draft-note { margin: 24px 0; padding: 20px 22px; border-radius: 18px; color: #805000; background: #ffe9a9; }
.launch-gate { padding: .12em .32em; border-radius: 10px; color: #805000; background: #ffe9a9; }
.legal-table-wrap { max-width: 100%; margin: 24px 0 34px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .8rem; }
th, td { padding: 13px 14px; border-bottom: 1px solid #d8d6ce; text-align: left; vertical-align: top; }
th { background: #f1f0eb; font-weight: 760; }
code { padding: .12em .34em; border-radius: 10px; background: #f1f0eb; font-size: .8rem; }
.legal-footer { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 24px 30px 0; color: #686b66; font-size: .8rem; }

@media (max-width: 600px) {
  .legal-header { gap: 12px; padding: 18px 28px; }
  .legal-brand { flex-basis: 100%; }
}
