/* css/global.css */
body {
  font-family: var(--font-main);
  background-color: var(--color-bg-white);
  color: var(--color-text-gray);
  line-height: 1.75;
  font-size: 16px;
  font-weight: 400;
}

/* Typography Headings */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-primary);
  line-height: 1.2;
  margin-bottom: 0.5em;
}

h1 {
  font-weight: 700;
  font-size: 48px;
}

h2 {
  font-weight: 700;
  font-size: 36px;
}

h3 {
  font-weight: 600;
  font-size: 24px;
}

h4 {
  font-weight: 600;
  font-size: 18px;
}

p {
  margin-bottom: 1rem;
}

/* Small text & labels */
.text-small {
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Utilities */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 8px;
}

.text-center {
  text-align: center;
}

.text-primary { color: var(--color-primary); }
.text-accent { color: var(--color-accent); }
.text-cta { color: var(--color-cta); }
.text-white { color: var(--color-bg-white); }
.text-gray { color: var(--color-text-gray); }

.bg-light { background-color: var(--color-bg-light); }
.bg-white { background-color: var(--color-bg-white); }
.bg-gray { background-color: var(--color-bg-gray); }
.bg-primary { background-color: var(--color-primary); }

.opacity-70 { opacity: 0.7; }
.opacity-80 { opacity: 0.8; }

.fw-bold { font-weight: 700; }
.fw-semibold { font-weight: 600; }
.fw-medium { font-weight: 500; }

.section-padding { padding: 100px 0; }

/* Grid Utilities */
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.flex-column { display: flex; flex-direction: column; }
.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.gap-4 { gap: 32px; }

/* Section badge */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-accent);
  background: rgba(45, 125, 210, 0.15);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.section-badge .fa-solid {
  color: var(--color-accent);
}

/* Rich Text & Page Content Fixes */
.page-content, .rich-text {
  word-break: break-word;
  overflow-wrap: break-word;
}

.page-content h1, 
.page-content h2, 
.page-content h3, 
.page-content h4, 
.page-content h5, 
.page-content h6,
.rich-text h1,
.rich-text h2,
.rich-text h3,
.rich-text h4,
.rich-text h5,
.rich-text h6 {
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Legal Meta Block for Privacy Policy and terms */
.legal-meta {
  background: var(--color-bg-gray, #f0f4f8);
  border-radius: var(--radius-md, 8px);
  padding: 20px 24px;
  margin-bottom: 30px;
  font-size: 14px;
  color: var(--color-text-gray);
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  overflow-x: auto;
}
.legal-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
@media (max-width: 767px) {
  .legal-meta {
    padding: 16px;
    font-size: 13px; /* slightly smaller to fit on one line perfectly */
  }
}
