/* ======================================================
   GLOBAL RESET & BASE
   ====================================================== */

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

html,
body {
  height: 100%;
}

:root {
  --container: 1100px;
  --reading-width: 760px;

  --text: #0f172a;
  --muted: #475569;

  --border: rgba(15, 23, 42, 0.12);
  --soft: rgba(15, 23, 42, 0.04);

  --shadow: 0 16px 48px rgba(15, 23, 42, 0.12);

  --radius-lg: 20px;
  --radius-md: 14px;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;

  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, Helvetica, Arial;

  font-size: 16px;
  line-height: 1.6;

  color: var(--text);
  background: #ffffff;

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

/* ======================================================
   PAGE LAYOUT
   ====================================================== */

.page {
  min-height: 100vh;
  background: #ffffff;
}

/* ======================================================
   HEADER
   ====================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 20;

  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);

  border-bottom: 1px solid var(--border);
}

.headerInner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 28px 32px;
}

.title {
  margin: 0;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.3px;
}

/* ======================================================
   CONTENT WRAPPER
   ====================================================== */

.content {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 32px 80px; /* SOLDAN-SAGDAN RAHAT BOSLUQ */
}

/* ======================================================
   DOCUMENT / AGREEMENT CARD
   ====================================================== */

.prose {
  max-width: var(--reading-width); /* OXU ENI */
  margin: 0 auto;

  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);

  padding: 36px;
  box-shadow: var(--shadow);
}

/* ======================================================
   META (DATE)
   ====================================================== */

.meta {
  display: inline-block;
  margin-bottom: 28px;

  padding: 8px 16px;
  font-size: 13px;

  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--soft);

  color: var(--muted);
}

.meta strong {
  color: var(--text);
  font-weight: 800;
}

/* ======================================================
   TYPOGRAPHY
   ====================================================== */

.prose p {
  margin: 16px 0;
  font-size: 16px;
  line-height: 1.9; /* HÜQUQI MƏTN ÜÇÜN İDEAL */
}

.prose strong {
  font-weight: 850;
}

.prose h2 {
  margin: 40px 0 16px;
  padding-top: 12px;

  font-size: 18px;
  font-weight: 950;

  border-top: 1px solid var(--border);
}

.title2 {
  margin: 48px 0 20px;
  font-size: 22px;
  font-weight: 1000;
}

/* ======================================================
   LISTS – MADDELER AYDIN GORUNSUN
   ====================================================== */

.prose ol {
  counter-reset: item;
  padding-left: 0;
  margin: 24px 0;
}

.prose ol > li {
  list-style: none;

  position: relative;
  margin: 18px 0;
  padding: 18px 20px 18px 56px;

  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #ffffff;

  line-height: 1.85;
}

/* NUMBER BADGE */
.prose ol > li::before {
  counter-increment: item;
  content: counter(item);

  position: absolute;
  left: 18px;
  top: 18px;

  width: 26px;
  height: 26px;

  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--soft);

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 13px;
  font-weight: 800;
}

/* UNORDERED LIST */
.prose ul {
  padding-left: 22px;
  margin: 18px 0;
}

.prose ul li {
  margin: 10px 0;
  line-height: 1.75;
}

.prose ul li::marker {
  color: rgba(15, 23, 42, 0.45);
}

/* ======================================================
   DIVIDER
   ====================================================== */

.prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 36px 0;
}

/* ======================================================
   BACK BUTTON
   ====================================================== */

.backRow {
  margin-top: 36px;
}

.backLink {
  padding: 12px 20px;

  border-radius: 14px;
  border: 1px solid var(--border);
  background: #ffffff;

  font-weight: 850;
  cursor: pointer;

  transition: all 0.15s ease;
}

.backLink:hover {
  background: var(--soft);
  transform: translateY(-1px);
}

/* ======================================================
   MOBILE
   ====================================================== */

@media (max-width: 768px) {
  .headerInner {
    padding: 20px 16px;
  }

  .content {
    padding: 24px 14px 48px;
  }

  .prose {
    padding: 20px;
  }

  .prose p {
    font-size: 15px;
  }

  .title {
    font-size: 20px;
  }

  .prose ol > li {
    padding-left: 52px;
  }
}
