/* ===== CaloriPanda — Hukuki/politika sayfaları (gizlilik, açık rıza, şartlar, çerez)
   styles.css'ten SONRA yüklenir; oradaki :root token'larını (--black/--lime/--g-mut...) kullanır.
   Tüm yön kuralları LOGICAL property (margin-inline / inset-inline / text-align:start) →
   LTR (tr/en) ve RTL (ar) otomatik doğru; ayrı RTL override gerekmez. ===== */

/* ---- Üst bar: marka + geri dön ---- */
.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 748px;
  margin-inline: auto;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line-l);
}
.legal-header .back {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--g-mut);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.16s ease;
}
.legal-header .back:hover { color: var(--lime-deep); }

/* ---- İçerik sütunu ---- */
.legal-wrap {
  max-width: 720px;
  margin-inline: auto;
  padding: 46px 24px 100px;
  color: var(--black);
  font-size: 16.5px;
  line-height: 1.72;
  text-align: start;
}

.legal-wrap h1 {
  margin: 0 0 6px;
  font-size: clamp(28px, 4.6vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.14;
}
.legal-wrap h1 span {
  font-weight: 400;
  color: var(--g-mut);
  letter-spacing: -0.01em;
}

.legal-meta {
  margin: 0 0 30px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--g-mut);
}

.legal-wrap h2 {
  margin: 2.5em 0 0.55em;
  font-size: 1.34rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--black);
}
/* Her başlığa ince lime aksan çizgisi (marka dokunuşu). margin-inline-end:auto →
   sabit-genişlikli blok her iki yönde de metnin başladığı kenara yaslanır (RTL'de sağ). */
.legal-wrap h2::after {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  margin-top: 11px;
  margin-inline-end: auto;
  border-radius: 2px;
  background: var(--lime);
}

.legal-wrap p { margin: 0 0 1.05em; }

.legal-wrap a {
  color: var(--lime-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(157, 189, 46, 0.5);
  transition: color 0.16s ease, text-decoration-color 0.16s ease;
}
.legal-wrap a:hover {
  color: var(--black);
  text-decoration-color: var(--black);
}

.legal-wrap strong, .legal-wrap b { font-weight: 700; color: var(--black); }
.legal-wrap em, .legal-wrap i { font-style: italic; color: var(--g-mut); }

/* ---- Listeler: lime madde işareti ---- */
.legal-wrap ul { list-style: none; margin: 0 0 1.15em; padding: 0; }
.legal-wrap li {
  position: relative;
  padding-inline-start: 1.5em;
  margin: 0 0 0.6em;
}
.legal-wrap li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0.15em;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime-deep);
}

/* ---- "Not / TASLAK" bilgi kartı ---- */
.legal-draft {
  margin: 4px 0 32px;
  padding: 16px 20px;
  background: rgba(175, 204, 59, 0.12);
  border: 1px solid rgba(157, 189, 46, 0.28);
  border-inline-start: 4px solid var(--lime-deep);
  border-radius: var(--r-sm);
  font-size: 14.5px;
  line-height: 1.62;
}
.legal-draft b { color: var(--black); }

/* ---- Alt bilgi ---- */
.legal-foot {
  max-width: 720px;
  margin: 64px auto 0;
  padding: 26px 24px 44px;
  border-top: 1px solid var(--line-l);
  text-align: center;
  font-size: 13px;
  color: var(--g-mut);
}

/* ---- Tablo (ileride gerekirse) ---- */
.legal-wrap table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.3em;
  font-size: 15px;
}
.legal-wrap th, .legal-wrap td {
  padding: 10px 14px;
  border: 1px solid var(--line-l);
  text-align: start;
  vertical-align: top;
}
.legal-wrap thead th { background: rgba(11, 11, 13, 0.03); font-weight: 700; }

@media (max-width: 520px) {
  .legal-header { padding: 18px 18px; }
  .legal-wrap { padding: 32px 18px 76px; font-size: 16px; }
  .legal-foot { padding: 24px 18px 38px; }
}
