/* Global styles for Pkai HD legal pages and landing */

/* CSS Reset (minimal) */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }

:root {
  --bg: #0b0d10;
  --panel: #12161b;
  --panel-2: #0f1317;
  --text: #e7ecf3;
  --muted: #a9b4c0;
  --border: #243140;
  --accent: #3b82f6; /* blue-500 */
  --accent-600: #2563eb;
  --accent-700: #1d4ed8;
  --success: #22c55e;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --panel: #ffffff;
    --panel-2: #f7f9fb;
    --text: #0f1720;
    --muted: #49576a;
    --border: #e6eef5;
    --accent: #2563eb; /* blue-600 */
    --accent-600: #1d4ed8;
    --accent-700: #1e40af;
  }
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: linear-gradient(180deg, var(--panel-2), var(--bg));
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(180%) blur(8px);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.brand .logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: inline-block;
}
.brand img.logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: contain;
  display: inline-block;
}
.brand span.name { color: var(--text); }

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}
.nav a:hover { color: var(--text); }
.nav-links {
  display: flex;
  gap: 16px;
}
.nav-links a[aria-current="page"] {
  color: var(--accent);
}

/* Hero */
.hero {
  padding: 64px 0 24px;
}
.hero .card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}
.hero h1 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  margin: 0 0 12px;
}
.hero p.lead {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: clamp(16px, 2.2vw, 18px);
}
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  font-weight: 700;
  text-decoration: none;
  transition: transform .05s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}
.btn.primary:hover { background: var(--accent-600); }
.btn.ghost {
  background: transparent;
  color: var(--text);
}

/* Feature list */
.features { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 20px 0 0; }
.feature {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
}
.feature h3 { margin: 0 0 6px; font-size: 16px; }
.feature p { margin: 0; color: var(--muted); }

@media (min-width: 720px) {
  .features { grid-template-columns: repeat(3, 1fr); }
}

/* Legal article */
main { padding: 28px 0 64px; }
article.legal {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}
article.legal h1 {
  margin-top: 0;
  font-size: clamp(22px, 3.2vw, 28px);
}
article.legal h2 {
  margin-top: 24px;
  font-size: clamp(18px, 2.6vw, 22px);
}
article.legal p { margin: 10px 0; }
article.legal ul { padding-left: 18px; }
article.legal li { margin: 6px 0; }
article.legal a { color: var(--accent); }
article.legal hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  background: var(--panel);
}
.site-footer .container { padding: 16px 20px; }

/* Utilities */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
