:root {
  --wrap: 900px;
}

/* ── Header ─────────────────────────────────────────────────── */
.header-inner {
  min-height: 70px;
  gap: 18px;
}

.brand {
  font-size: 18px;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.back-link {
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
  padding: 7px 13px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.back-link:hover {
  color: #e9d5ff;
  background: rgba(192, 132, 252, 0.09);
  border-color: rgba(192, 132, 252, 0.3);
  text-decoration: none;
}

/* ── Article ────────────────────────────────────────────────── */
main {
  padding: 64px 0 20px;
}

.doc {
  position: relative;
  padding: 42px 46px 38px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(165deg, rgba(30, 41, 59, 0.5), rgba(8, 12, 24, 0.9));
  box-shadow: 0 40px 90px -60px rgba(192, 132, 252, 0.55);
  overflow: hidden;
}

.doc::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple), transparent);
  opacity: 0.8;
}

h1 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  background: linear-gradient(110deg, #f5f3ff 10%, #c084fc 65%, #f472b6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.updated {
  margin-top: 10px;
  color: var(--muted-2);
  font-size: 13.5px;
}

.lead {
  margin-top: 18px;
  color: #cbd5e1;
  font-size: 16.5px;
}

.notice {
  margin: 22px 0 4px;
  padding: 15px 18px;
  border: 1px solid rgba(192, 132, 252, 0.28);
  border-left: 3px solid var(--purple);
  border-radius: 0 12px 12px 0;
  background: rgba(192, 132, 252, 0.08);
  color: #e9d5ff;
  font-size: 14.5px;
  line-height: 1.65;
}

h2 {
  margin-top: 34px;
  font-size: 19px;
  font-weight: 700;
  color: #ede9fe;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

h2::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 10px;
  border-radius: 3px;
  background: var(--grad);
  box-shadow: 0 0 12px var(--glow-purple);
  transform: rotate(45deg) translateY(-2px);
}

.doc p,
.doc ul {
  margin-top: 12px;
  color: #cbd5e1;
  font-size: 15.3px;
}

.doc ul {
  padding-left: 0;
  list-style: none;
}

.doc li {
  position: relative;
  padding-left: 24px;
  margin: 8px 0;
}

.doc li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: linear-gradient(120deg, #c084fc, #f472b6);
  box-shadow: 0 0 10px rgba(192, 132, 252, 0.5);
  transform: rotate(45deg);
}

.doc li strong {
  color: #f1f5f9;
}

.label {
  margin-top: 18px;
  color: var(--muted-2);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  margin-top: 14px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(148, 163, 184, 0.04);
}

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  padding: 40px 0 44px;
  color: var(--muted-2);
  font-size: 13.5px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 22px;
}

.footer-inner a {
  color: var(--muted);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  main {
    padding: 36px 0 10px;
  }

  .doc {
    padding: 28px 22px 26px;
    border-radius: 18px;
  }

  .header-inner {
    min-height: 62px;
    gap: 10px;
  }

  .back-link {
    font-size: 13px;
    padding: 6px 10px;
  }

  .brand {
    font-size: 16.5px;
  }

  .brand img {
    width: 28px;
    height: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition-duration: 0.001ms !important;
  }
}
