/* KardBinder Legal Site - style.css */
:root {
  --kb-navy: #110918;
  --kb-blue: #7024a9;
  --kb-teal: #ff9f31;
  --kb-light: #fbf7fd;
  --kb-white: #ffffff;
  --kb-text: #21172b;
  --kb-muted: #62556a;
  --kb-border: #e7d9ed;
  --kb-radius: 10px;
  --kb-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  background: var(--kb-light);
  color: var(--kb-text);
  line-height: 1.7;
  font-size: 16px;
}

/* HEADER */
.site-header {
  background: var(--kb-navy);
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.site-header .logo { height: 36px; }

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

.site-header nav a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.site-header nav a:hover { color: var(--kb-teal); }

/* HERO (index only) */
.hero {
  background: linear-gradient(135deg, var(--kb-navy) 0%, #38134e 100%);
  color: white;
  text-align: center;
  padding: 80px 24px 60px;
}
.hero h1 { font-size: 2.4rem; margin-bottom: 16px; color: white; }
.hero p { font-size: 1.1rem; opacity: 0.8; max-width: 600px; margin: 0 auto 32px; }

.policy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px;
}

.policy-card {
  background: var(--kb-white);
  border-radius: var(--kb-radius);
  box-shadow: var(--kb-shadow);
  padding: 28px 24px;
  text-decoration: none;
  color: var(--kb-text);
  border: 1px solid var(--kb-border);
  transition: transform 0.15s, box-shadow 0.15s;
}
.policy-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.policy-card .icon { font-size: 2rem; margin-bottom: 12px; }
.policy-card h2 { font-size: 1.1rem; margin-bottom: 8px; color: var(--kb-navy); }
.policy-card p { font-size: 0.9rem; color: var(--kb-muted); }

/* LEGAL PAGE */
.legal-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.legal-page h1 {
  font-size: 2rem;
  color: var(--kb-navy);
  margin-bottom: 8px;
}

.effective {
  font-size: 0.85rem;
  color: var(--kb-muted);
  margin-bottom: 36px;
}

.legal-page section {
  margin-bottom: 40px;
}

.legal-page h2 {
  font-size: 1.25rem;
  color: var(--kb-navy);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--kb-teal);
}

.legal-page h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--kb-blue);
  margin: 16px 0 8px;
}

.legal-page p { margin-bottom: 12px; }

.legal-page ul, .legal-page ol {
  padding-left: 24px;
  margin-bottom: 12px;
}
.legal-page li { margin-bottom: 6px; }

.legal-page a { color: var(--kb-blue); text-decoration: none; }
.legal-page a:hover { text-decoration: underline; }

.legal-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 0.92rem;
}
.legal-page th {
  background: var(--kb-navy);
  color: white;
  padding: 10px 14px;
  text-align: left;
}
.legal-page td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--kb-border);
}
.legal-page tr:nth-child(even) td { background: var(--kb-light); }

/* FOOTER */
.site-footer {
  background: var(--kb-navy);
  color: rgba(255,255,255,0.7);
  padding: 40px 32px 24px;
  margin-top: 60px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}
.footer-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--kb-teal); }

.footer-affiliate {
  background: rgba(191,70,246,0.12);
  border: 1px solid var(--kb-teal);
  border-radius: var(--kb-radius);
  padding: 14px 20px;
  margin-bottom: 24px;
  font-size: 0.95rem;
}
.affiliate-cta {
  color: var(--kb-teal) !important;
  font-weight: 600;
  text-decoration: none;
}
.affiliate-cta:hover { text-decoration: underline; }

.footer-copy {
  font-size: 0.8rem;
  opacity: 0.5;
  margin-bottom: 20px;
}

.footer-partners {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.85rem;
}
.partner-logo {
  height: 36px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.75;
  transition: opacity 0.2s;
}
.partner-logo:hover { opacity: 1; }

/* AFFILIATE SIGNUP SECTION */
#affiliate-signup {
  scroll-margin-top: 80px;
}
.affiliate-section {
  background: var(--kb-white);
  border-radius: var(--kb-radius);
  box-shadow: var(--kb-shadow);
  padding: 40px 32px;
  max-width: 700px;
  margin: 48px auto;
  text-align: center;
}
.affiliate-section h2 { color: var(--kb-navy); margin-bottom: 12px; }
.affiliate-section p { color: var(--kb-muted); margin-bottom: 24px; }
.affiliate-form { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.affiliate-form input {
  flex: 1;
  min-width: 220px;
  padding: 12px 16px;
  border: 1px solid var(--kb-border);
  border-radius: 8px;
  font-size: 0.95rem;
}
.affiliate-form button {
  background: var(--kb-teal);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.affiliate-form button:hover { background: #f7891c; }

@media (max-width: 600px) {
  .site-header { padding: 12px 16px; }
  .legal-page { padding: 24px 16px 60px; }
  .legal-page h1 { font-size: 1.5rem; }
  .hero h1 { font-size: 1.7rem; }
  .footer-links { gap: 10px; }
}

.site-header { position: relative; gap: 16px 28px; }
.site-header > a { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 750; }
.site-header .logo { display: block; width: 60px; height: 60px; border-radius: 10px; }
.site-header nav a[aria-current="page"] { color: var(--kb-teal); }
.hero { padding: 40px 24px; }
.hero-logo { display: block; width: min(210px, 55vw); height: auto; margin: 0 auto 20px; border-radius: 20px; }
.hero h1 { line-height: 1.15; }
.legal-page .effective { color: var(--kb-muted); }
.legal-page a { text-decoration: underline; text-underline-offset: .15em; }
.legal-page table { display: block; overflow-x: auto; }
.site-footer .partner-logo { display: block; width: 80px; height: 80px; object-fit: contain; border-radius: 8px; opacity: 1; }
.affiliate-form button { color: #251009; }
:focus-visible { outline: 3px solid #bc63ec; outline-offset: 4px; }
@media (max-width: 540px) {
  .site-header { padding: 12px 18px; }
  .site-header nav { column-gap: 16px; row-gap: 8px; }
  .hero h1 { font-size: 2rem; }
}
