/* THEME VARIABLES */
:root {
  --bg: #f0f0f0; --surface: #ffffff; --border: #e0e0e0;
  --text-primary: #111111; --text-secondary: #666666;
  --accent: #2563eb;
}
[data-theme="dark"] {
  --bg: #111111; --surface: #1e1e1e; --border: #333333;
  --text-primary: #f0f0f0; --text-secondary: #999999;
  --accent: #60a5fa;
}

/* RESET + BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px; background: var(--bg); color: var(--text-primary);
  min-height: 100vh; overflow-x: hidden;
}
input, select, button { font: inherit; }
a { color: inherit; }

/* HEADER */
header {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.site-title {
  font-size: 18px; font-weight: 700; letter-spacing: -0.5px;
  flex: 1; text-decoration: none; color: var(--text-primary);
}
.site-nav { display: flex; gap: 12px; }
.site-nav a { font-size: 13px; text-decoration: none; color: var(--text-secondary); }
.site-nav a:hover { color: var(--accent); }
#theme-toggle {
  background: none; border: 1px solid var(--border); border-radius: 6px;
  padding: 4px 10px; cursor: pointer; color: var(--text-primary);
  font-size: 13px; font-family: inherit;
}

/* FOOTER */
.site-footer {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
  padding: 20px 16px; border-top: 1px solid var(--border);
  background: var(--surface); font-size: 12px; color: var(--text-secondary);
}
.site-footer a { text-decoration: none; color: var(--text-secondary); }
.site-footer a:hover { color: var(--accent); }
.site-footer .footer-copyright { margin-left: auto; }

/* COOKIE BANNER */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  max-width: 480px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 14px 16px; box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.cookie-banner p { font-size: 12px; color: var(--text-secondary); margin-bottom: 10px; }
.cookie-banner a { color: var(--accent); }
.cookie-actions { display: flex; gap: 8px; }
.cookie-actions button {
  flex: 1; padding: 8px 12px; border-radius: 6px; font-size: 13px;
  cursor: pointer; border: 1px solid var(--border); background: var(--bg); color: var(--text-primary);
}
#cookie-accept { background: var(--accent); border-color: var(--accent); color: #fff; }

/* FOCUS */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input:focus-visible, select:focus-visible {
  border-color: var(--accent); outline: none;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 25%, transparent);
}

/* SKIP LINK */
.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--accent); color: #fff; padding: 6px 12px;
  border-radius: 0 0 6px 0; z-index: 100; font-size: 13px;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

/* CONTENT PAGES (about/privacy/terms/contact) */
.content-page {
  max-width: 720px; margin: 40px auto; padding: 0 16px 60px;
}
.content-page h1 { font-size: 22px; margin-bottom: 16px; }
.content-page h2 { font-size: 16px; font-weight: 700; margin: 24px 0 8px; }
.content-page h2:first-of-type { margin-top: 0; }
.content-page p { font-size: 13px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 10px; }
.content-page ul { padding-left: 18px; margin-bottom: 10px; }
.content-page li { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 6px; }
.content-page a { color: var(--accent); }
.contact-email { font-size: 16px; font-weight: 600; }
