/* ── Reset & base ─────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #3a3a3a;
  background: #0f0f0f;
  background-image:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(163, 163, 115, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(163, 163, 115, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, #111111 0%, #1a1a18 100%);
}

/* ── Page shell ───────────────────────────────────────────── */
.page {
  padding: 56px 14%;
}

@media (max-width: 900px) {
  .page {
    padding: 40px 10%;
  }
}

@media (max-width: 600px) {
  .page {
    padding: 28px 5%;
  }
}

/* ── Document card ────────────────────────────────────────── */
.doc {
  max-width: 760px;
  margin: 0 auto;
  background: #faf9f6;
  border: 1px solid rgba(163, 163, 115, 0.22);
  border-radius: 20px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 24px 64px rgba(0, 0, 0, 0.45),
    0 4px 16px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

/* ── Header ───────────────────────────────────────────────── */
.doc-header {
  text-align: center;
  padding: 44px 56px 36px;
  background: linear-gradient(180deg, #f5f3ee 0%, #faf9f6 100%);
  border-bottom: 1px solid #e8e4dc;
}

.doc-brand {
  margin: 0 0 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8b8b5e;
}

.doc-title {
  margin: 0 0 20px;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1c1c1a;
  line-height: 1.25;
}

.doc-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin: 16px auto 0;
  background: linear-gradient(90deg, #a3a373, #c4c49a);
  border-radius: 2px;
}

.doc-meta {
  margin: 0;
  text-align: center;
  font-size: 0.875rem;
  color: #777770;
  line-height: 1.6;
}

.doc-meta p {
  margin: 0 0 4px;
}

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

/* ── Body ─────────────────────────────────────────────────── */
.doc-body {
  padding: 36px 56px 48px;
}

@media (max-width: 600px) {
  .doc-header {
    padding: 32px 24px 28px;
  }

  .doc-body {
    padding: 28px 24px 36px;
  }

  .doc-title {
    font-size: 1.6rem;
  }
}

.lead {
  margin: 0 0 32px;
  padding: 18px 22px;
  font-size: 0.97rem;
  line-height: 1.75;
  color: #4a4a44;
  background: #f0efe9;
  border-left: 4px solid #a3a373;
  border-radius: 0 10px 10px 0;
}

/* ── Headings ─────────────────────────────────────────────── */
h2 {
  text-align: left;
  margin: 36px 0 12px;
  padding-bottom: 8px;
  font-size: 1.08rem;
  font-weight: 700;
  color: #1c1c1a;
  line-height: 1.35;
  border-bottom: 1px solid #e8e4dc;
  letter-spacing: -0.01em;
}

h2:first-child {
  margin-top: 0;
}

h3 {
  text-align: left;
  margin: 22px 0 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #3d3d38;
  line-height: 1.4;
}

/* ── Text & lists ─────────────────────────────────────────── */
p {
  text-align: left;
  margin: 0 0 14px;
  color: #444440;
}

ul,
ol {
  text-align: left;
  margin: 0 0 16px;
  padding-left: 0;
  list-style: none;
}

ul li,
ol li {
  position: relative;
  margin-bottom: 8px;
  padding-left: 1.35em;
  color: #444440;
}

ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  background: #a3a373;
  border-radius: 50%;
}

ol {
  counter-reset: ol-counter;
}

ol li {
  counter-increment: ol-counter;
}

ol li::before {
  content: counter(ol-counter) ".";
  position: absolute;
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
  font-weight: 600;
  font-size: 0.88rem;
  color: #8b8b5e;
}

strong {
  color: #2a2a26;
  font-weight: 600;
}

a {
  color: #7a7a4a;
  text-decoration: underline;
  text-decoration-color: rgba(163, 163, 115, 0.45);
  text-underline-offset: 3px;
  transition: color 0.15s ease;
  word-break: break-all;
}

a:hover {
  color: #5a5a32;
  text-decoration-color: #a3a373;
}

/* ── Contact card (Support page) ──────────────────────────── */
.contact-card {
  margin: 0 0 32px;
  padding: 22px 24px;
  text-align: center;
  background: linear-gradient(135deg, rgba(163, 163, 115, 0.1) 0%, rgba(163, 163, 115, 0.04) 100%);
  border: 1px solid rgba(163, 163, 115, 0.28);
  border-radius: 14px;
}

.contact-card p {
  margin: 0 0 8px;
}

.contact-card p:last-child {
  margin-bottom: 0;
  font-size: 0.88rem;
  color: #666660;
}

.contact-email {
  display: inline-block;
  margin: 6px 0 10px;
  font-size: 1.05rem;
  font-weight: 600;
}

.contact-email a {
  text-decoration: none;
  color: #6b6b42;
}

.contact-email a:hover {
  text-decoration: underline;
}

/* ── Sub-section block ────────────────────────────────────── */
.sub-block {
  margin: 0 0 20px;
  padding: 16px 20px;
  background: #f3f2ed;
  border-radius: 12px;
  border: 1px solid #e8e4dc;
}

.sub-block h3 {
  margin-top: 0;
}

.sub-block p:last-child,
.sub-block ul:last-child {
  margin-bottom: 0;
}

/* ── FAQ ──────────────────────────────────────────────────── */
.faq-list {
  margin-top: 8px;
}

.faq-item {
  margin-bottom: 12px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid #e8e4dc;
  border-radius: 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.faq-item:hover {
  border-color: rgba(163, 163, 115, 0.4);
  box-shadow: 0 2px 8px rgba(163, 163, 115, 0.1);
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: #2a2a26;
}

.faq-item p {
  margin: 0;
  font-size: 0.9rem;
  color: #555550;
  line-height: 1.65;
}

/* ── Placeholder ──────────────────────────────────────────── */
.placeholder {
  background: rgba(255, 210, 90, 0.35);
  padding: 1px 7px;
  border-radius: 4px;
  font-weight: 600;
  color: #5a4a10;
  border-bottom: 1px dashed rgba(163, 130, 20, 0.5);
}

/* ── Footer ───────────────────────────────────────────────── */
.doc-footer {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid #e8e4dc;
  text-align: center;
  font-size: 0.82rem;
  color: #888880;
  letter-spacing: 0.02em;
}
