/* Shared styles for Khelio legal pages */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  background: #ffffff;
  color: #111827;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #1d4ed8;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 20;
}

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

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.02em;
}

.brand-sub {
  font-size: 12px;
  color: #6b7280;
}

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

.nav a {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #374151;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current='page'] {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e40af;
  text-decoration: none;
}

.wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 36px 20px 64px;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.meta {
  margin: 0 0 28px;
  color: #6b7280;
  font-size: 14px;
}

h2 {
  margin: 32px 0 12px;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

h3 {
  margin: 22px 0 8px;
  font-size: 1.05rem;
}

p,
li {
  color: #374151;
  font-size: 15px;
}

ul,
ol {
  padding-left: 1.25rem;
}

li + li {
  margin-top: 6px;
}

code {
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.92em;
}

.card {
  margin-top: 28px;
  padding: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #f9fafb;
}

.card h2 {
  margin-top: 0;
}

.card strong {
  color: #111827;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 12px 18px;
  border-radius: 12px;
  background: #1d4ed8;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none !important;
}

.button:hover {
  background: #1e40af;
}

.site-footer {
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
}

.footer-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 24px 20px 36px;
  color: #6b7280;
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}

@media (max-width: 640px) {
  .header-inner {
    align-items: flex-start;
  }

  .nav {
    width: 100%;
  }

  .nav a {
    flex: 1 1 auto;
    justify-content: center;
  }
}
