/* ----------------------------------------
   COLORS & THEME
   ---------------------------------------- */

:root {
  --blue: #3b82f6;
  --blue-dark: #2563eb;
  --border-light: #e5e5e5;
  --card-bg: #ffffff;
  --card-bg-dark: #1a1a1a;
}

@media (prefers-color-scheme: dark) {
  :root {
    --border-light: #333;
  }
}

/* ----------------------------------------
   RESET
   ---------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #fafafa;
  color: #111;
  line-height: 1.6;
}

@media (prefers-color-scheme: dark) {
  body {
    background: #0f0f0f;
    color: #eee;
  }
}

.container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ----------------------------------------
   HEADER
   ---------------------------------------- */

.header,
.site-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

@media (prefers-color-scheme: dark) {
  .header,
  .site-header {
    background: rgba(15, 15, 15, 0.8);
  }
}

.nav-container,
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--blue);
}

.nav a {
  margin-left: 18px;
  text-decoration: none;
  color: inherit;
  opacity: 0.8;
  transition: all 0.2s ease;
  border-radius: 6px;
  padding: 6px 10px;
}

.nav a:hover,
.nav a.active {
  opacity: 1;
  color: var(--blue);
}

/* ----------------------------------------
   HERO
   ---------------------------------------- */

.hero {
  text-align: center;
  padding: 80px 20px 40px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin-bottom: 14px;
  color: var(--blue);
}

.hero-sub {
  font-size: 1.1rem;
  opacity: 0.75;
}

/* ----------------------------------------
   APP CARDS GRID
   ---------------------------------------- */

.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  padding-bottom: 80px;
}

.card {
  background: var(--card-bg);
  padding: 24px;
  border-radius: 14px;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.2s ease;
}

@media (prefers-color-scheme: dark) {
  .card {
    background: var(--card-bg-dark);
  }
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--blue);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 6px;
  color: var(--blue);
}

.card p {
  opacity: 0.85;
  margin-bottom: 14px;
}

/* ----------------------------------------
   BUTTON / LINK STYLING
   ---------------------------------------- */

.links a {
  display: inline-block;
  margin-right: 10px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--blue);
  background: rgba(59, 130, 246, 0.07);
  color: var(--blue);
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.links a:hover {
  background: var(--blue);
  color: white;
  border-color: var(--blue-dark);
}

/* ----------------------------------------
   LEGAL PAGES
   ---------------------------------------- */

.legal-page {
  padding: 40px 20px 60px;
  max-width: 760px;
  margin: 0 auto;
}

.legal-page h1 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--blue);
}

.legal-page h2 {
  font-size: 1.2rem;
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--blue);
}

.legal-page p,
.legal-page li {
  font-size: 0.98rem;
  line-height: 1.7;
  opacity: 0.9;
}

.legal-page ul {
  padding-left: 20px;
}

/* ----------------------------------------
   FOOTER
   ---------------------------------------- */

.footer,
.site-footer {
  padding: 26px 0;
  border-top: 1px solid var(--border-light);
  text-align: center;
  opacity: 0.75;
  font-size: 0.9rem;
  margin-top: 20px;
}

.footer-links a {
  margin-left: 12px;
  text-decoration: none;
  color: var(--blue);
  opacity: 0.8;
}

.footer-links a:hover {
  opacity: 1;
}
