/* ============================================================
   CGMINT Legal Site — shared styles
   Colors: navy #0B1C3D | deepBlue #102A54 | gold #F5C842
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;900&display=swap');

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: #0B1C3D;
  color: #ffffff;
  min-height: 100vh;
  line-height: 1.7;
}

/* ── Header / hero ── */
.site-header {
  background: linear-gradient(160deg, #0B1C3D 0%, #102A54 60%, #0B1C3D 100%);
  border-bottom: 2px solid rgba(245,200,66,0.25);
  padding: 20px 24px;
}

.header-inner {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-badge {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #F5C842, #e6a800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
  color: #0B1C3D;
  flex-shrink: 0;
  letter-spacing: -1px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-weight: 900;
  font-size: 16px;
  color: #ffffff;
  line-height: 1.2;
}

.logo-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  font-weight: 400;
}

.header-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-link {
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  color: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.1);
}

.nav-link:hover,
.nav-link.active {
  background: rgba(245,200,66,0.15);
  border-color: rgba(245,200,66,0.4);
  color: #F5C842;
}

/* ── Page hero ── */
.page-hero {
  background: linear-gradient(180deg, #102A54 0%, #0B1C3D 100%);
  padding: 48px 24px 40px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.page-hero h1 {
  font-size: clamp(26px, 5vw, 40px);
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
  line-height: 1.2;
}

.hero-accent {
  color: #F5C842;
}

.page-hero .subtitle {
  font-size: 15px;
  color: rgba(255,255,255,0.55);
  font-weight: 400;
}

/* ── Main content container ── */
.content-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

/* ── Intro callout ── */
.intro-box {
  background: rgba(245,200,66,0.08);
  border: 1px solid rgba(245,200,66,0.25);
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 36px;
  font-size: 17px;
  font-style: italic;
  color: rgba(255,255,255,0.8);
  line-height: 1.65;
  text-align: center;
}

/* ── Sections ── */
.section {
  margin-bottom: 36px;
}

.section-heading {
  font-size: 20px;
  font-weight: 800;
  color: #F5C842;
  margin-bottom: 10px;
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-heading::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 18px;
  background: #F5C842;
  border-radius: 2px;
  flex-shrink: 0;
}

.section-body {
  font-size: 17px;
  color: rgba(255,255,255,0.82);
  line-height: 1.8;
  white-space: pre-line;
}

.section-body a {
  color: #F5C842;
  text-underline-offset: 3px;
}

.section-body a:hover {
  color: #ffe07a;
}

/* ── Divider ── */
hr.section-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.07);
  margin: 10px 0 36px;
}

/* ── Contact button ── */
.contact-btn {
  display: inline-block;
  margin-top: 16px;
  padding: 13px 28px;
  background: linear-gradient(135deg, #F5C842, #e6a800);
  color: #0B1C3D;
  font-weight: 800;
  font-size: 14px;
  border-radius: 30px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 16px rgba(245,200,66,0.3);
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(245,200,66,0.45);
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 28px 24px;
  text-align: center;
}

.site-footer .footer-inner {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #F5C842;
}

.footer-copy {
  font-size: 14px;
  color: rgba(255,255,255,0.3);
}

/* ── Index page cards ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 12px;
}

.legal-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 18px;
  padding: 28px;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  display: block;
}

.legal-card:hover {
  background: rgba(245,200,66,0.07);
  border-color: rgba(245,200,66,0.3);
  transform: translateY(-3px);
}

.card-icon {
  font-size: 32px;
  margin-bottom: 14px;
  display: block;
}

.card-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #ffffff;
}

.card-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}

.card-arrow {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 700;
  color: #F5C842;
}

/* ── Responsive ── */
@media (max-width: 540px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  .content-wrap { padding: 24px 16px 60px; }
  .page-hero { padding: 36px 16px 28px; }
}
