/* Spark AI marka stili — sade, marka tonu */
:root {
  --cream: #FDF6E8;
  --paper: #F5EBD4;
  --navy: #1B2A4E;
  --ink: #1B2A4E;
  --ink-soft: #5A6781;
  --spark: #F5A524;
  --line: #E7DDC4;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Manrope", "Segoe UI", sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.center { min-height: 90vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }

.brand { margin-bottom: 28px; }
.logo {
  font-size: 56px;
  color: var(--spark);
  line-height: 1;
  margin-bottom: 12px;
}
h1 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 0 6px;
  color: var(--navy);
}
.lead { font-size: 16px; color: var(--ink-soft); margin: 0; }

.links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 18px;
}
.links a {
  display: inline-block;
  padding: 10px 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  background: white;
  transition: background .15s, transform .15s;
}
.links a:hover { background: var(--paper); transform: translateY(-1px); }

footer { margin-top: 36px; color: var(--ink-soft); font-size: 12px; }

/* Legal document layout */
.doc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.doc-header h1 { font-size: 28px; margin: 0; }
.doc-header .back {
  font-size: 14px; color: var(--ink-soft);
  text-decoration: none; font-weight: 600;
}
.doc-header .back:hover { color: var(--navy); }

.lang-switch {
  display: inline-flex;
  background: white;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 700;
}
.lang-switch a {
  padding: 6px 10px;
  text-decoration: none;
  color: var(--ink-soft);
}
.lang-switch a.active { background: var(--navy); color: var(--cream); }

article.legal {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px 32px;
  margin-top: 12px;
}
article.legal h2 {
  font-size: 18px;
  margin-top: 28px;
  margin-bottom: 8px;
  color: var(--navy);
  font-weight: 800;
}
article.legal h2:first-child { margin-top: 0; }
article.legal p, article.legal li { font-size: 14px; color: var(--ink); }
article.legal ul { padding-left: 22px; margin: 8px 0 16px; }
article.legal li { margin: 4px 0; }
article.legal .meta {
  font-size: 12px; color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 20px;
}
article.legal a { color: var(--spark); }

@media (max-width: 600px) {
  .wrap { padding: 24px 16px 60px; }
  h1 { font-size: 32px; }
  article.legal { padding: 24px 20px; border-radius: 14px; }
}
