/* ================= ROOT ================= */
:root {
  --palette-main: #1E1F22;
  --palette-main-b: #282B30;
  --palette-sub: #313338;
  --palette-tips: #00A9FB; /* accent color */
}

body{
  display: flex;
  flex-direction: column;
}

/* Make main fill the available space so footer sticks to bottom */
main.text-page {
  flex: 1; /* fill remaining vertical space */
  margin: auto;
  padding: 40px 20px;
  line-height: 1.6;
  color: #cbd5e1;
  border-radius: 8px;
}

/* Headings */
main.text-page h1 {
  font-size: clamp(24px, 5vw, 32px); /* big for main titles */
  margin-bottom: 24px;
  color: #ffffff;
}

main.text-page h2 {
  font-size: clamp(20px, 4vw, 26px); /* slightly smaller */
  margin-top: 24px;
  margin-bottom: 12px;
  color: #ffffff;
}

main.text-page h3 {
  font-size: clamp(16px, 3vw, 20px); /* smaller subtitle */
  margin-top: 20px;
  margin-bottom: 8px;
  color: var(--palette-tips); /* highlight section subtitles */
}

/* Paragraphs and list text */
main.text-page p,
main.text-page li {
  font-size: clamp(11px, 1.5vw, 16px); /* normal text 12-18px */
  margin-bottom: 16px;
}

/* Lists */
main.text-page ul {
  list-style: disc inside;
  margin-bottom: 16px;
}

main.text-page li {
  margin-bottom: 8px;
}

/* Bold text highlight */
main.text-page strong {
  color: var(--palette-tips);
  font-weight: 600;
}

/* Important notices */
main.text-page em {
  color: var(--palette-tips);
  font-style: normal;
  font-weight: 600;
}

/* Links */
.back-link {
  display: inline-block;
  margin-top: 30px;
  color: var(--palette-tips);
  text-decoration: none;
  font-weight: 600;
}

.back-link:hover {
  text-decoration: underline;
}

/* Ensure footer stays at bottom even if content is short */
body {
  justify-content: space-between;
}
