/* ── BLACKHAVEN VAULT — pages.css ──────────────────────────────────────────
   Ortak stil dosyası: privacy.html, data-deletion.html
   Tema mekanizması: body.light class (SPA ThemeContext ile senkron)
   localStorage anahtarı: blackhaven-vault-theme  |  değerler: dark / light
   ─────────────────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@600;700&family=Space+Grotesk:wght@300;400;500&display=swap');

/* ── CSS DEĞİŞKENLERİ — koyu tema (varsayılan) ── */
:root {
  --bg:  #07060f;
  --bg1: #0d0b1a;
  --a:   #7c3aed;
  --ah:  #a78bfa;
  --tx:  #ede9ff;
  --tm:  rgba(237,233,255,.84);
  --br:  rgba(124,58,237,.18);
}

/* ── LIGHT TEMA — SPA (index.css) body.light ile birebir ── */
body.light {
  --bg:  #f3f2f9;
  --bg1: #ebe9f6;
  --a:   #6430d8;
  --ah:  #7c3aed;
  --tx:  #10101c;
  --tm:  rgba(16,16,28,.76);
  --br:  rgba(100,48,216,.2);
}

/* ── RESET + TEMEL ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--tx);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(circle at 50% -10%, rgba(124,58,237,.12), transparent 55%);
  background-attachment: fixed;
  transition: background 0.3s, color 0.3s;
}

/* ── LAYOUT ── */
.wrap { max-width: 760px; margin: 0 auto; padding: 2.4rem 1.4rem 5rem; }

/* ── HEADER ── */
header.top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--br); margin-bottom: 2.2rem;
}

/* ── BRAND ── */
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand .mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--a), var(--ah));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: .82rem; color: #fff;
  flex-shrink: 0;
}
.brand .name {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: .82rem;
  letter-spacing: .2em; color: var(--tx); text-transform: uppercase;
}

/* ── KONTROLLER (sağ grup: ← ana sayfa + lang + tema) ── */
.controls { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }

/* ── ← ANA SAYFA LİNKİ ── */
.home-link {
  font-size: .76rem; letter-spacing: .04em; color: var(--ah);
  text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s;
}
.home-link:hover { border-color: var(--ah); }

/* ── DİL TOGGLE ── */
.lang-sw {
  display: inline-flex; background: rgba(124,58,237,.1);
  border: 1px solid var(--br); border-radius: 100px; padding: .14rem; gap: .1rem;
}
.lang-btn {
  font: inherit; font-size: .62rem; letter-spacing: .14em; font-weight: 500;
  padding: .26rem .7rem; border: none; background: transparent; color: var(--tm);
  border-radius: 100px; cursor: pointer; transition: all .2s;
  font-family: 'Space Grotesk', system-ui, sans-serif;
}
.lang-btn.active { background: var(--a); color: #fff; }

/* ── TEMA TOGGLE BUTONU ── */
.theme-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border: 1px solid var(--br);
  border-radius: 50%;
  background: rgba(124,58,237,.08);
  color: var(--ah);
  font-size: .9rem;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
  flex-shrink: 0;
  line-height: 1;
  padding: 0;
}
.theme-btn:hover {
  background: rgba(124,58,237,.18);
  border-color: var(--ah);
  transform: rotate(20deg);
}
body.light .theme-btn {
  background: rgba(100,48,216,.08);
  border-color: rgba(100,48,216,.2);
  color: var(--a);
}
body.light .theme-btn:hover {
  background: rgba(100,48,216,.15);
  border-color: var(--a);
}

/* ── TİPOGRAFİ ── */
h1 {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.15;
  letter-spacing: -.02em; margin-bottom: .5rem;
}
.updated { font-size: .8rem; color: var(--tm); margin-bottom: 1.8rem; }

/* ── INTRO KARTI (lead) ── */
.lead {
  font-size: 1rem; color: var(--tx); line-height: 1.9;
  padding: 1.1rem 1.3rem; margin-bottom: 2rem;
  background: rgba(124,58,237,.06); border: 1px solid var(--br);
  border-radius: 12px;
  transition: background 0.3s, border-color 0.3s;
}
body.light .lead {
  background: rgba(100,48,216,.05);
  border-color: rgba(100,48,216,.2);
}

/* ── BÖLÜM BAŞLIKLARI ── */
h2 {
  font-family: 'Syne', sans-serif; font-weight: 600; font-size: 1.12rem;
  color: var(--tx); margin: 2.2rem 0 .7rem; letter-spacing: -.01em;
}
h2 .n { color: var(--ah); margin-right: .4rem; }
body.light h2 .n { color: var(--a); }

/* ── PARAGRAFLAR ── */
p { color: var(--tm); margin-bottom: .9rem; }

/* ── LİSTELER ── */
ul { list-style: none; margin: 0 0 1rem; padding: 0; }
li {
  color: var(--tm); position: relative; padding-left: 1.2rem; margin-bottom: .55rem;
}
li::before { content: '·'; color: var(--ah); position: absolute; left: 0; font-weight: 700; }
body.light li::before { color: var(--a); }

/* ── NUMARALI LİSTE (data-deletion) ── */
ol { margin: 0 0 1rem 1.2rem; padding: 0; }
ol li { color: var(--tm); margin-bottom: .5rem; padding-left: .3rem; }
/* ol li::before olmadığı için miras edilen marker yeterli; ul li ile çakışmasın */
ol li::before { content: none; }

/* ── BAĞLANTILAR ── */
a.mail {
  color: var(--ah); text-decoration: none;
  border-bottom: 1px solid rgba(167,139,250,.35);
}
a.mail:hover { border-color: var(--ah); }
body.light a.mail { color: var(--a); border-bottom-color: rgba(100,48,216,.35); }
body.light a.mail:hover { border-color: var(--a); }

/* ── NOT KUTUSU (data-deletion'a özgü) ── */
.note {
  padding: 1rem 1.2rem; margin-top: 1rem;
  background: rgba(124,58,237,.05); border-left: 3px solid var(--a);
  border-radius: 0 8px 8px 0;
  transition: background 0.3s;
}
.note p { margin-bottom: 0; }
body.light .note { background: rgba(100,48,216,.05); border-left-color: var(--a); }

/* ── DİL DOKÜMANLARI ── */
.doc { display: none; }
.doc.active { display: block; }

/* ── FOOTER ── */
footer.foot {
  margin-top: 3rem; padding-top: 1.6rem;
  border-top: 1px solid var(--br);
  font-size: .72rem; color: var(--tm);
}

/* ── MOBİL ── */
@media (max-width: 480px) {
  .controls { gap: .6rem; }
  .brand .name { display: none; }
}
