/* ==========================================================================
   CreditSol — legal documents (privacy policy, terms of service)
   Deliberately plain: one readable column, no decoration that competes
   with the text.
   ========================================================================== */

:root {
  --ink:        #0d1b12;
  --ink-soft:   #3f4f45;
  --ink-faint:  #7c8a81;
  --line:       #e3e9e4;
  --paper:      #ffffff;
  --paper-2:    #f5f8f5;
  --brand-dark: #214021;
  --brand:      #3f9a4e;
  --brand-light:#75ba61;
  --radius:     20px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper-2);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

/* ---------- header -------------------------------------------------------- */

.doc-nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.doc-nav__inner {
  max-width: 860px; margin-inline: auto; padding: 0 24px;
  height: 68px; display: flex; align-items: center;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--brand-dark);
  font-weight: 800; font-size: 20px; letter-spacing: -.02em;
}
.brand img { width: 28px; height: 28px; display: block; }
.brand b { font-weight: 800; color: var(--brand); }

/* ---------- document sheet ------------------------------------------------ */

.doc { max-width: 960px; margin-inline: auto; padding: clamp(32px, 6vw, 64px) 24px clamp(56px, 8vw, 96px); }

.sheet {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 60px);
  box-shadow: 0 1px 2px rgba(13, 27, 18, .04), 0 12px 40px -24px rgba(13, 27, 18, .22);
}

.doc__head { padding-bottom: 26px; margin-bottom: 34px; border-bottom: 1px solid var(--line); }
.doc__head h1 {
  margin: 0; font-size: clamp(27px, 4vw, 38px); font-weight: 800;
  letter-spacing: -.03em; line-height: 1.15;
}
.doc__meta {
  margin: 14px 0 0; font-size: 12.5px; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; color: var(--ink-faint);
}

/* ---------- body ---------------------------------------------------------- */

.doc__body { color: var(--ink-soft); }
.doc__body > .lead {
  font-size: 18.5px; line-height: 1.65; color: var(--ink);
  padding: 18px 22px; margin: 0 0 36px;
  background: var(--paper-2); border-left: 3px solid var(--brand-light);
  border-radius: 0 12px 12px 0;
}

.doc__body section { margin-bottom: 34px; }
.doc__body section:last-child { margin-bottom: 0; }

.doc__body h2 {
  margin: 0 0 12px; color: var(--brand-dark);
  font-size: 18.5px; font-weight: 800; letter-spacing: -.015em; line-height: 1.3;
}

.doc__body p { margin: 0 0 14px; }
.doc__body p:last-child { margin-bottom: 0; }

.doc__body ul, .doc__body ol { margin: 0 0 14px; padding-left: 22px; }
.doc__body li { margin-bottom: 9px; padding-left: 4px; }
.doc__body li:last-child { margin-bottom: 0; }
.doc__body li::marker { color: var(--brand); font-weight: 700; }

.doc__body strong { color: var(--ink); font-weight: 700; }

.doc__body a {
  color: var(--brand-dark); font-weight: 600;
  text-decoration: underline; text-underline-offset: 2px;
  text-decoration-color: rgba(63, 154, 78, .45);
  transition: text-decoration-color .2s ease;
}
.doc__body a:hover { text-decoration-color: var(--brand); }

/* ---------- back link ----------------------------------------------------- */

.doc__foot { margin-top: 42px; padding-top: 30px; border-top: 1px solid var(--line); text-align: center; }
.doc__back {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 26px; border-radius: 999px;
  background: var(--brand-dark); color: #fff;
  text-decoration: none; font-weight: 700; font-size: 15.5px;
  transition: transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s ease;
}
.doc__back:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(33, 64, 33, .8); }

/* ---------- small screens ------------------------------------------------- */

@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .doc { padding-inline: 14px; }
  .doc-nav__inner { padding-inline: 18px; height: 62px; }
  .sheet { padding: 26px 20px 30px; border-radius: 16px; }
  .doc__body > .lead { padding: 16px 17px; font-size: 17px; margin-bottom: 30px; }
  .doc__body ul, .doc__body ol { padding-left: 19px; }
  .doc__back { width: 100%; justify-content: center; }
}

@media print {
  body { background: #fff; font-size: 11pt; }
  .doc-nav, .doc__foot { display: none; }
  .doc { padding: 0; max-width: none; }
  .sheet { border: 0; border-radius: 0; box-shadow: none; padding: 0; }
  .doc__body section { break-inside: avoid; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .001ms !important; }
}
