:root {
  color-scheme: dark;
  --bg: #0b1118;
  --surface: #111a24;
  --surface-soft: #15212d;
  --border: rgba(151, 170, 194, 0.2);
  --text: #f4f7fb;
  --muted: #a9b7c8;
  --accent: #45d7a5;
  --accent-soft: rgba(69, 215, 165, 0.12);
  --blue: #6bc3ff;
  --warning: #ffd479;
  --max-width: 820px;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% -8%, rgba(65, 159, 255, 0.14), transparent 30rem),
    radial-gradient(circle at 88% 4%, rgba(69, 215, 165, 0.1), transparent 28rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue);
  text-underline-offset: 0.22em;
}

a:hover { color: #a6dcff; }

a:focus-visible {
  outline: 3px solid rgba(69, 215, 165, 0.7);
  outline-offset: 4px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 9px 13px;
  color: #07110e;
  background: var(--accent);
  border-radius: 8px;
  font-weight: 750;
  transform: translateY(-160%);
}

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

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 12px max(20px, calc((100vw - var(--max-width)) / 2));
  background: rgba(11, 17, 24, 0.86);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 760;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  background: var(--accent-soft);
  border: 1px solid rgba(69, 215, 165, 0.32);
  border-radius: 10px;
}

.brand-mark i {
  display: block;
  width: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.brand-mark i:nth-child(1), .brand-mark i:nth-child(5) { height: 7px; opacity: 0.55; }
.brand-mark i:nth-child(2), .brand-mark i:nth-child(4) { height: 14px; opacity: 0.8; }
.brand-mark i:nth-child(3) { height: 21px; }

nav {
  display: flex;
  align-items: center;
  gap: 5px;
}

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

nav a:hover, nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.legal-shell {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(48px, 8vw, 86px) 0 72px;
}

.document-header { margin-bottom: 32px; }

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2 { text-wrap: balance; }

h1 {
  margin: 0;
  font-size: clamp(38px, 7vw, 64px);
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.lead {
  max-width: 680px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2.5vw, 20px);
  line-height: 1.55;
}

.meta {
  margin: 18px 0 0;
  color: #7f91a6;
  font-size: 13px;
}

.summary, .notice {
  margin: 0 0 40px;
  padding: 20px 22px;
  background: linear-gradient(145deg, rgba(69, 215, 165, 0.1), rgba(21, 33, 45, 0.76));
  border: 1px solid rgba(69, 215, 165, 0.25);
  border-radius: 16px;
}

.notice {
  background: linear-gradient(145deg, rgba(255, 212, 121, 0.09), rgba(21, 33, 45, 0.76));
  border-color: rgba(255, 212, 121, 0.24);
}

.summary > strong, .notice > strong { color: var(--text); }

.summary ul { margin-bottom: 0; }

.legal-content section {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.legal-content section:first-child { border-top: 0; }

h2 {
  margin: 0 0 16px;
  color: var(--text);
  font-size: clamp(21px, 3vw, 27px);
  line-height: 1.25;
  letter-spacing: -0.025em;
}

p { margin: 0 0 14px; color: #c4cedb; }
p:last-child { margin-bottom: 0; }

ul {
  margin: 12px 0 16px;
  padding-left: 22px;
  color: #c4cedb;
}

li { margin: 8px 0; padding-left: 4px; }
li::marker { color: var(--accent); }
strong { color: #eefcf8; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  padding: 7px 11px;
  color: #c8f9e8;
  background: var(--accent-soft);
  border: 1px solid rgba(69, 215, 165, 0.25);
  border-radius: 999px;
  font-size: 13px;
}

.status span {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(69, 215, 165, 0.1);
}

.document-footer {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.document-footer a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-decoration: none;
}

.landing {
  width: min(920px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(70px, 13vw, 150px) 0 80px;
}

.landing > .brand-mark { margin-bottom: 30px; }
.landing h1 { max-width: 700px; }

.document-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 42px;
}

.document-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 210px;
  padding: 26px;
  color: var(--muted);
  background: rgba(17, 26, 36, 0.86);
  border: 1px solid var(--border);
  border-radius: 18px;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.document-card:hover {
  color: var(--muted);
  background: var(--surface-soft);
  border-color: rgba(69, 215, 165, 0.34);
  transform: translateY(-3px);
}

.document-card strong {
  color: var(--text);
  font-size: 24px;
  line-height: 1.25;
}

.card-label {
  color: var(--accent);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    padding: 12px 20px;
  }

  nav {
    width: 100%;
    overflow-x: auto;
  }

  nav a { padding-left: 0; padding-right: 16px; white-space: nowrap; }
  nav a:hover, nav a[aria-current="page"] { background: transparent; color: var(--accent); }
  .legal-shell { width: min(var(--max-width), calc(100% - 32px)); padding-top: 42px; }
  .document-grid { grid-template-columns: 1fr; }
  .document-card { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .document-card { transition: none; }
}

@media print {
  :root { color-scheme: light; }
  body { color: #111; background: #fff; }
  .site-header, .document-footer, .skip-link { display: none; }
  .legal-shell { width: 100%; padding: 0; }
  h1, h2, strong, p, ul, li { color: #111; }
  .summary, .notice, .status { color: #111; background: #f5f5f5; border-color: #ccc; }
}
