/* BütçeAi — yasal/döküman sayfaları (gizlilik, şartlar, hesap silme, destek).
 *
 * Ana sayfa (index.html) kendi stilini taşır ve bu dosyaya BAĞLI DEĞİLDİR.
 * Buradaki tek iş: 4 yasal sayfayı ana sayfanın koyu paletiyle aynı dile
 * getirmek. Sayfa METİNLERİ değişmez — onlar hukuk metni ve
 * test/unit/landing_legal_icerik_test.dart ile kilitli.
 *
 * Palet ana sayfadan birebir: zemin #0A1018, metin #E2E8F0, mint #8FD7B2,
 * mavi #4F8EF7.
 */

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

:root {
  --bg:        #0A1018;
  --surface:   #111927;
  --surface-2: #14233D;
  --border:    rgba(148, 163, 184, 0.16);
  --text:      #E2E8F0;
  --heading:   #F8FAFC;
  --muted:     #94A3B8;
  --muted-dim: #6C7D95;
  --mint:      #8FD7B2;
  --mint-deep: #1F8A5B;
  --blue:      #4F8EF7;
  --amber:     #FBBF24;
  --danger:    #C62828;
}

html, body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

::selection { background: rgba(31, 138, 91, 0.45); color: var(--heading); }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 8px;
}

.container      { max-width: 780px;  margin: 0 auto; padding: 0 22px; }
.container-wide { max-width: 1080px; margin: 0 auto; padding: 0 22px; }

/* ── Üst çubuk ───────────────────────────────────────────────────────────── */

.topbar {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 16, 24, 0.86);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--heading);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}

/* Ana sayfadaki <img> ile aynı marka işareti — HTML'e dokunmadan. */
.brand-dot {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: url("logo.png") center / cover no-repeat;
}

.nav-links { display: flex; gap: 22px; }

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  transition: color .2s;
}

.nav-links a:hover {
  color: var(--heading);
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* ── Döküman gövdesi ────────────────────────────────────────────────────── */

.prose { padding: 56px 0 96px; }

.prose h1 {
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 800;
  color: var(--heading);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 8px;
  text-wrap: balance;
}

.prose .doc-meta {
  color: var(--muted-dim);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 34px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.prose h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--heading);
  letter-spacing: -0.02em;
  margin: 44px 0 12px;
}

.prose h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--heading);
  letter-spacing: -0.01em;
  margin: 26px 0 8px;
}

.prose p {
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.75;
  margin-bottom: 14px;
  text-wrap: pretty;
}

.prose ul, .prose ol {
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.75;
  padding-left: 24px;
  margin-bottom: 14px;
}

.prose li { margin-bottom: 7px; }

.prose li::marker { color: var(--mint-deep); }

.prose a {
  color: var(--mint);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose a:hover { color: var(--blue); }

.prose strong { font-weight: 700; color: var(--heading); }

.prose code {
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 5px;
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 13px;
  color: var(--mint);
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 36px 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 14.5px;
}

.prose th, .prose td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.prose th { background: var(--surface); color: var(--heading); font-weight: 600; }

/* ── Vurgu kutuları ─────────────────────────────────────────────────────── */

.prose blockquote,
.prose .callout {
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--mint-deep);
  border-radius: 10px;
  color: var(--text);
  margin: 18px 0;
  font-size: 14.5px;
  line-height: 1.7;
}

.prose .warn {
  padding: 16px 20px;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.22);
  border-left: 3px solid var(--amber);
  border-radius: 10px;
  color: var(--text);
  margin: 18px 0;
  font-size: 14.5px;
  line-height: 1.7;
}

/* ── Silme talebi eylemi ────────────────────────────────────────────────── */

.form-submit {
  display: inline-block;
  margin-top: 4px;
  padding: 14px 22px;
  background: var(--danger);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: filter .15s ease, transform .15s ease;
}

.form-submit:hover { filter: brightness(1.1); transform: translateY(-1px); }

.form-note {
  margin-top: 14px;
  padding: 13px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}

.form-note a { color: var(--mint); }

/* ── Alt bilgi ──────────────────────────────────────────────────────────── */

.footer {
  padding: 40px 0 56px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted-dim);
}

.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color .2s;
}

.footer-links a:hover { color: var(--heading); }

/* ── Hareket duyarlılığı ────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
