/* ============================================================
   SHARED — RESET & CSS VARIABLES
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #0043c5;
  --primary-dark: #002c49;
  --primary-light: #d0e4ff;
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #002e50;
  --text-secondary: #64748b;
  --border: #e2e8f0;
  --radius: 16px;
  --font: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  /* Extended palette (changelog & shared) */
  --green: #298e27;
  --green-bg: #d4edd4;
  --blue: #00a3f7;
  --blue-bg: #cce8ff;
  --orange: #f17f1e;
  --orange-bg: #fde8d2;
  --red: #ef4444;
  --red-bg: #fee2e2;
  --purple: #8b5cf6;
  --purple-bg: #ede9fe;
}

/* ============================================================
   SHARED — BASE
   ============================================================ */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; }

/* ============================================================
   SHARED — NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}

.nav.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.nav__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

body.page-changelog .nav__inner {
  max-width: 860px;
}

.nav__logo {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0px;
}

.nav__logo img {
  width: 28px;
  height: 28px;
  margin-right: 6px;
}

.logoBlue { color: #002b45; }
.logoGreen { color: #298e27; }

.nav__logo:hover { text-decoration: none; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

body.page-changelog .nav__links {
  gap: 24px;
}

.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.nav__links a:hover {
  color: var(--text);
  text-decoration: none;
}

.nav__cta {
  background: var(--primary) !important;
  color: white !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: background 0.2s ease, transform 0.2s ease !important;
}

.nav__cta:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-1px);
  text-decoration: none !important;
}

/* ============================================================
   SHARED — FOOTER (.footer class)
   ============================================================ */
.footer {
  padding: 40px 24px;
  text-align: center;
  border-top: 1px solid var(--border);
}

body.page-changelog .footer {
  padding: 32px 24px;
}

.footer__text {
  font-size: 0.82rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.footer__logo {
  width: 20px;
  height: 20px;
}

.footer__links {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 24px;
}

.footer__links a {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.footer__links a:hover {
  color: var(--primary);
}

/* ============================================================
   PAGE: INDEX (/)
   ============================================================ */

/* Hero */
.hero {
  padding: 140px 24px 80px;
  text-align: center;
  background: linear-gradient(180deg, #e3eeff 0%, var(--bg) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0,67,197,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.3px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  max-width: 700px;
  margin: 0 auto 20px;
  letter-spacing: -0.02em;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--primary) 0%, #85d825 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font);
  border-radius: 12px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn:hover { text-decoration: none; }

.btn--primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(0,67,197,0.35);
}

.btn--primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,67,197,0.4);
}

.btn--outline {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn--outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Hero preview mockup */
.hero__preview {
  max-width: 780px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.04);
  overflow: hidden;
  position: relative;
}

.hero__preview-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: #f1f5f9;
  border-bottom: 1px solid var(--border);
}

.hero__preview-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.hero__preview-dot:nth-child(1) { background: #ef4444; }
.hero__preview-dot:nth-child(2) { background: #f17f1e; }
.hero__preview-dot:nth-child(3) { background: #298e27; }

.hero__preview-body {
  padding: 32px;
  min-height: 220px;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero__preview-banner {
  background: white;
  border-radius: 14px 14px 0 0;
  padding: 22px 26px;
  width: 100%;
  box-shadow: 0 -8px 30px rgba(0,0,0,0.08);
}

.hero__preview-banner h4 {
  font-size: 0.95rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero__preview-banner p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.5;
}

.hero__preview-btns {
  display: flex;
  gap: 8px;
  @media 
  (max-width: 480px) {
    flex-direction: column;
    gap: 6px;
  }
}

.hero__preview-btns span {
  padding: 7px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 7px;
}

.hero__preview-btns span:nth-child(1) { background: var(--primary); color: white; }
.hero__preview-btns span:nth-child(2) { background: #f1f5f9; color: var(--text); }
.hero__preview-btns span:nth-child(3) { border: 1px solid var(--border); color: var(--text-secondary); }

/* Stats */
.stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 48px 24px;
  flex-wrap: wrap;
}

.stat { text-align: center; }

.stat__value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.stat__label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Section layout */
.section {
  padding: 80px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.section__header {
  text-align: center;
  margin-bottom: 56px;
}

.section__label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.section__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.section__sub {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
}

/* Features grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.3s ease;
}

.feature:hover {
  border-color: #cbd5e1;
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}

.feature__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.feature__title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Code section */
.code-section {
  padding: 80px 24px;
  background: var(--text);
}

.code-section .section__header { margin-bottom: 40px; }
.code-section .section__label  { color: #60a5fa; }
.code-section .section__title  { color: white; }
.code-section .section__sub    { color: #94a3b8; }

.code-block {
  max-width: 720px;
  margin: 0 auto;
}

.code-tabs {
  display: flex;
  gap: 2px;
  margin-bottom: -1px;
  position: relative;
  z-index: 1;
}

.code-tab {
  padding: 10px 20px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font);
  background: #1e293b;
  color: #94a3b8;
  border: 1px solid #334155;
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.code-tab.active {
  background: #0f172a;
  color: #e2e8f0;
}

.code-content {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 0 12px 12px 12px;
  padding: 24px;
  overflow-x: auto;
}

.code-panel         { display: none; }
.code-panel.active  { display: block; }

.code-content pre {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.7;
  color: #e2e8f0;
}

.code-comment { color: #64748b; }
.code-tag     { color: #f472b6; }
.code-attr    { color: #60a5fa; }
.code-string  { color: #34d399; }
.code-keyword { color: #c084fc; }
.code-fn      { color: #fbbf24; }

/* Download */
.download {
  padding: 80px 24px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, #e3eeff 100%);
}

.download__card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 36px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.download__icon  { font-size: 3rem; margin-bottom: 20px; }

.download__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.download__sub {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.download__files {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.download__file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s ease;
}

.download__file:hover { border-color: var(--primary); }

.download__file-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.download__file-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.download__file-name { font-weight: 600; font-size: 0.9rem; }
.download__file-size { font-size: 0.78rem; color: var(--text-secondary); }

.download__file-btn {
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font);
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.download__file-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  text-decoration: none;
}

.download__or  { font-size: 0.82rem; color: var(--text-secondary); margin: 20px 0 16px; }
.download__zip { width: 100%; }

.download__meta {
  margin-top: 24px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Checklist */
.checklist { padding: 80px 24px; }

.checklist__inner {
  max-width: 700px;
  margin: 0 auto;
}

.checklist__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 40px;
}

.checklist__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.checklist__check {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #d4edd4;
  color: #1c7723;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
}

.checklist__text { font-size: 0.9rem; font-weight: 500; }

/* PAGE: INDEX — Responsive */
@media (max-width: 768px) {
  body.page-index .nav__links { display: none; }

  .hero { padding: 120px 20px 60px; }
  .hero__actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 320px; justify-content: center; }

  .stats { gap: 28px; }

  .features { grid-template-columns: 1fr; }

  .code-section { padding: 60px 16px; }
  .code-content { padding: 18px; }

  .download__card { padding: 32px 22px; }
  .download__file { flex-direction: column; gap: 10px; align-items: stretch; }
  .download__file-btn { text-align: center; }

  .checklist__grid { grid-template-columns: 1fr; }
}

/* PAGE: INDEX — Animations */
@media (prefers-reduced-motion: no-preference) {
  .feature, .checklist__item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.5s ease forwards;
  }

  .feature:nth-child(1) { animation-delay: 0.05s; }
  .feature:nth-child(2) { animation-delay: 0.1s; }
  .feature:nth-child(3) { animation-delay: 0.15s; }
  .feature:nth-child(4) { animation-delay: 0.2s; }
  .feature:nth-child(5) { animation-delay: 0.25s; }
  .feature:nth-child(6) { animation-delay: 0.3s; }

  @keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
  }
}

/* ============================================================
   PAGE: CHANGELOG (/changelog/)
   ============================================================ */

/* Page header */
.header {
  padding: 120px 24px 48px;
  text-align: center;
  background: linear-gradient(180deg, #e3eeff 0%, var(--bg) 100%);
}

.header h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.header p {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto;
}

/* Timeline */
.timeline {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.release {
  position: relative;
  padding-left: 36px;
  padding-bottom: 48px;
}

.release:last-child { padding-bottom: 0; }

.release::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 10px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.release:last-child::before { display: none; }

.release::after {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--primary-light);
}

.release--latest::after {
  background: var(--green);
  border-color: var(--green-bg);
  box-shadow: 0 0 0 4px rgba(41, 142, 39, 0.15);
}

.release__header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.release__version {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
}

.release__date {
  font-size: 0.82rem;
  color: var(--text-secondary);
  background: #f1f5f9;
  padding: 3px 12px;
  border-radius: 20px;
}

.release__badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 20px;
}

.release__badge--latest {
  background: var(--green-bg);
  color: #1c7723;
}

.release__body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
}

.release__section { margin-bottom: 20px; }
.release__section:last-child { margin-bottom: 0; }

.release__section-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.release__section-title--added    { background: var(--green-bg);   color: #1c7723; }
.release__section-title--changed  { background: var(--blue-bg);    color: #002c49; }
.release__section-title--fixed    { background: var(--orange-bg);  color: #92400e; }
.release__section-title--removed  { background: var(--red-bg);     color: #991b1b; }
.release__section-title--security { background: var(--purple-bg);  color: #5b21b6; }

.release__list { list-style: none; margin: 0; padding: 0; }

.release__list li {
  position: relative;
  padding: 6px 0 6px 20px;
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.6;
}

.release__list li::before {
  content: '›';
  position: absolute;
  left: 4px;
  top: 6px;
  font-weight: 700;
  color: #94a3b8;
}

.release__list li code {
  font-size: 0.82rem;
  background: #f1f5f9;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  color: var(--primary-dark);
}

/* PAGE: CHANGELOG — Responsive */
@media (max-width: 640px) {
  body.page-changelog .nav__links { display: none; }
  .release__header { flex-direction: column; align-items: flex-start; gap: 6px; }
  .release__body   { padding: 18px 20px; }
}

/* ============================================================
   PAGE: DEMO (/demo/index.html)
   ============================================================ */
body.page-demo { color: #002e50; }

body.page-demo header {
  background: linear-gradient(135deg, #002e50 0%, #0043c5 100%);
  color: white;
  padding: 60px 24px;
  text-align: center;
}

body.page-demo header .logoBlue { color: #00a3f7; }
body.page-demo header .logoGreen { color: #85d825; }
body.page-demo header .header-logo { height: 3.5rem; vertical-align: middle; margin-right: 8px; }

body.page-demo header h1 {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

body.page-demo header p {
  font-size: 1.1rem;
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto;
}

body.page-demo main {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px;
}

body.page-demo section {
  background: white;
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  border: 1px solid #e2e8f0;
}

body.page-demo section h2 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: #002e50;
}

body.page-demo section p,
body.page-demo section li {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.7;
}

body.page-demo section ul {
  list-style: none;
  margin-top: 12px;
}

body.page-demo section ul li {
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 10px;
}

body.page-demo section ul li:last-child { border-bottom: none; }

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot--on      { background: #298e27; }
.status-dot--off     { background: #ef4444; }
.status-dot--pending { background: #f17f1e; }

.demo-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  border: 2px solid #e2e8f0;
  background: white;
  color: #002e50;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-right: 8px;
  margin-bottom: 8px;
}

.demo-btn:hover {
  border-color: #0043c5;
  color: #0043c5;
}

body.page-demo pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 20px;
  border-radius: 10px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.6;
  margin-top: 16px;
}

body.page-demo code {
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.embed-demo { margin-top: 20px; }

body.page-demo footer {
  text-align: center;
  padding: 40px 24px;
  color: #94a3b8;
  font-size: 13px;
}

/* ============================================================
   PAGE: PRIVACY POLICY (/demo/polityka-prywatnosci.html)
   ============================================================ */
body.page-privacy {
  color: #002e50;
  line-height: 1.7;
  font-size: 16px;
}

body.page-privacy header {
  background: linear-gradient(135deg, #002e50 0%, #0043c5 100%);
  color: white;
  padding: 48px 24px;
  text-align: center;
}

body.page-privacy header h1 { font-size: 2rem; margin-bottom: 8px; }
body.page-privacy header p  { font-size: 0.95rem; opacity: 0.8; }

.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

body.page-privacy section {
  background: white;
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border: 1px solid #e2e8f0;
}

body.page-privacy h2 {
  font-size: 1.3rem;
  color: #002e50;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e2e8f0;
}

body.page-privacy h3 {
  font-size: 1.05rem;
  color: #1a3f60;
  margin: 20px 0 10px;
}

body.page-privacy p {
  margin-bottom: 12px;
  color: #475569;
}

body.page-privacy ul,
body.page-privacy ol {
  margin: 12px 0 16px 24px;
  color: #475569;
}

body.page-privacy li { margin-bottom: 6px; }

body.page-privacy table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.9rem;
}

body.page-privacy th,
body.page-privacy td {
  padding: 12px 14px;
  text-align: left;
  border: 1px solid #e2e8f0;
}

body.page-privacy th {
  background: #f1f5f9;
  font-weight: 600;
  color: #334155;
}

body.page-privacy td    { color: #475569; }
body.page-privacy strong { color: #002e50; }

body.page-privacy a {
  color: #0043c5;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.page-privacy a:hover { color: #002c49; }

.highlight {
  background: #e3eeff;
  border-left: 4px solid #0043c5;
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 16px 0;
}

.highlight p { margin-bottom: 0; color: #002c49; }

.update-date { font-size: 0.85rem; color: #94a3b8; margin-bottom: 4px; }

.toc { list-style: none; margin-left: 0; padding-left: 0; }

.toc li {
  padding: 6px 0;
  border-bottom: 1px solid #f1f5f9;
}

.toc li:last-child { border-bottom: none; }

.toc a           { text-decoration: none; font-weight: 500; }
.toc a:hover     { text-decoration: underline; }

body.page-privacy footer {
  text-align: center;
  padding: 32px 24px;
  color: #94a3b8;
  font-size: 0.8rem;
}

/* PAGE: PRIVACY POLICY — Responsive */
@media (max-width: 640px) {
  body.page-privacy section     { padding: 22px 18px; }
  body.page-privacy h2          { font-size: 1.15rem; }
  body.page-privacy table       { font-size: 0.82rem; }
  body.page-privacy th,
  body.page-privacy td          { padding: 8px 10px; }
}
