*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:  #2F4858;
  --steel: #33658A;
  --sky:   #86BBD8;
  --mauve: #977390;
  --blush: #AC7B7D;
}

html, body { height: 100%; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: #fff;
  background:
    radial-gradient(ellipse at center,
      #1e4080 0%,
      #0d2240 55%,
      #081525 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

.page {
  max-width: 740px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3.5rem;
}

/* ── BACK LINK ── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--sky);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  opacity: 0.8;
  transition: opacity 0.2s ease, gap 0.15s ease;
}

.back-link:hover {
  opacity: 1;
  gap: 0.75rem;
}

.back-link svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ── DOCUMENT HEADER ── */
.doc-header {
  margin-bottom: 2rem;
}

.doc-header h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  color: #fff;
  letter-spacing: 0.005em;
  line-height: 1.12;
  margin-bottom: 0.55rem;
}

.doc-header .updated {
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--sky);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.85;
}

.doc-divider {
  width: 52px;
  height: 1px;
  background: rgba(134, 187, 216, 0.35);
  margin: 1.6rem 0 2rem;
}

/* ── CONTENT CARD ── */
.doc-card {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(134, 187, 216, 0.18);
  border-radius: 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 2.5rem 2.25rem;
}

.doc-card .intro {
  font-size: 0.92rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(134, 187, 216, 0.12);
}

/* ── SECTIONS ── */
.doc-section {
  padding-top: 1.6rem;
  margin-top: 1.6rem;
  border-top: 1px solid rgba(134, 187, 216, 0.08);
}

.doc-section:first-child {
  padding-top: 0;
  margin-top: 0;
  border-top: none;
}

.doc-section h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: 1.08rem;
  color: #fff;
  margin-bottom: 0.75rem;
  letter-spacing: 0.01em;
}

.doc-section p {
  font-size: 0.9rem;
  line-height: 1.78;
  color: rgba(255, 255, 255, 0.76);
  margin-bottom: 0.7rem;
}

.doc-section p:last-child { margin-bottom: 0; }

.doc-section ul {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

.doc-section ul li {
  font-size: 0.9rem;
  line-height: 1.68;
  color: rgba(255, 255, 255, 0.76);
  padding-left: 1.2rem;
  position: relative;
}

.doc-section ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--sky);
  opacity: 0.65;
}

.doc-section a {
  color: var(--sky);
  text-decoration: none;
  border-bottom: 1px solid rgba(134, 187, 216, 0.3);
  transition: border-color 0.2s ease, opacity 0.2s ease;
}

.doc-section a:hover {
  border-color: var(--sky);
  opacity: 1;
}

/* ── FOOTER ── */
footer {
  text-align: center;
  margin-top: 2.5rem;
  font-size: 0.72rem;
  color: rgba(134, 187, 216, 0.4);
  font-weight: 300;
  letter-spacing: 0.02em;
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .page { padding: 1.5rem 1rem 2.5rem; }

  .doc-card {
    padding: 1.6rem 1.25rem;
    border-radius: 12px;
  }

  .doc-header h1 { font-size: 1.7rem; }
  .back-link { margin-bottom: 1.75rem; }
}
