/* ========== LEGAL THEME — ASHIVA (kvkk/privacy/terms.html/cookies) ========== */
:root {
    --brand: #215020; /* Ana yeşil */
    --brand-ink: #153616; /* Koyu başlık */
    --ink: #222; /* Gövde */
    --muted: #6b7d6b; /* İkincil metin */
    --line: #e7ece7; /* İnce çizgi */
    --bg: #f4f8f4; /* Sayfa arka planı (çok açık yeşil) */
    --panel: #ffffff; /* Kart arka planı */

    /* Header yüksekliği (transparent/fixed menü için) */
    --header-h: 88px;
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    background: var(--bg);
    color: var(--ink);
    line-height: 1.72;
}

/* Bazı sayfalarda global CSS padding ekliyorsa, burada sıfırlayalım */
body.has-fixed-header {
    padding-top: 0 !important;
}

/* ===================== HERO (Layout Ortak) ===================== */
.hero-legal {
    position: relative;
    isolation: isolate;
    color: var(--brand-ink);
    /* İç boşluklar: üstte header kadar pay + görsel nefes */
    padding: calc(var(--header-h) + clamp(56px, 9vw, 120px)) 0 clamp(36px, 5vw, 54px);
    border-bottom: 1px solid var(--line);
    /* HERO’YU SAYFANIN EN TEPEYE YAPIŞTIR: arka planı header’ın arkasına al */
    margin-top: calc(var(--header-h) * -1);
}

/* Grid yapısı */
.hero-legal__inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: clamp(16px, 4vw, 48px);
    align-items: center;
}

@media (max-width: 980px) {
    .hero-legal__inner {
        grid-template-columns:1fr
    }
}

.hero-legal__eyebrow {
    display: inline-flex;
    gap: .6rem;
    align-items: center;
    letter-spacing: .28px;
    font-size: .92rem;
    text-transform: uppercase;
    color: #3b6a3b;
}

.hero-legal__eyebrow::before {
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #3b6a3b 0 35%, #9fb69f 36% 100%);
    box-shadow: 0 0 0 4px rgba(33, 80, 32, .12);
}

.hero-legal__title {
    margin: .25rem 0 0;
    font-weight: 700;
    font-size: clamp(2rem, 4.6vw, 3.25rem);
    line-height: 1.08;
    letter-spacing: .2px;
    color: var(--brand-ink);
}

.hero-legal__subtitle {
    margin: .8rem 0 0;
    font-size: clamp(1rem, 2.1vw, 1.15rem);
    color: #4f6e50;
    max-width: 60ch;
}

.hero-legal__meta {
    margin-top: .9rem;
    font-size: .95rem;
    color: #6b7d6b;
}

.hero-legal__crumbs {
    margin-top: 1rem;
    font-size: .95rem;
    color: #5b755b;
}

.hero-legal__crumbs a {
    color: #2b5a2b;
    text-decoration: none
}

.hero-legal__crumbs a:hover {
    text-decoration: underline
}

/* Sağdaki “premium doku” kartı */
.hero-legal__art {
    position: relative;
    height: clamp(180px, 28vw, 320px);
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(to bottom right, rgba(255, 255, 255, .65), rgba(255, 255, 255, .2)),
    url('assets/img/ashiva-texture.jpg');
    background-size: cover;
    background-position: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .08), inset 0 0 0 1px rgba(33, 80, 32, .08);
}

.hero-legal__art::after {
    content: "";
    position: absolute;
    inset: -40% -50% auto -50%;
    height: 120%;
    transform: rotate(18deg);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0 24%, rgba(255, 255, 255, .55) 45%, rgba(255, 255, 255, 0) 66%);
    filter: blur(10px);
    opacity: .7;
}

/* ====== DARK / MENU-SAFE VARYANT ====== */
.hero-legal.hero-dark {
    color: #eaf5ea;
    background: radial-gradient(1100px 380px at 20% -10%, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 60%),
    linear-gradient(140deg, #0b2210 0%, #163b18 40%, #1d4a1f 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Üstte menüyle çakışmayı engelleyen koyu cam şerit */
.hero-legal.hero-dark::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: var(--header-h);
    background: linear-gradient(to bottom, rgba(10, 25, 12, .85), rgba(10, 25, 12, .6) 60%, rgba(10, 25, 12, 0));
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    z-index: 0;
    pointer-events: none;
}

/* Renkler */
.hero-legal.hero-dark .hero-legal__eyebrow {
    color: #b6d0b6
}

.hero-legal.hero-dark .hero-legal__title {
    color: #fff
}

.hero-legal.hero-dark .hero-legal__subtitle {
    color: #cfe1cf
}

.hero-legal.hero-dark .hero-legal__meta {
    color: #a7b9a7
}

.hero-legal.hero-dark .hero-legal__crumbs {
    color: #b8c9b8
}

.hero-legal.hero-dark .hero-legal__crumbs a {
    color: #dff0df
}

/* Dalga ayırıcı (hero -> içerik geçişi) */
.wave-sep {
    position: relative;
    height: 32px;
    background: transparent;
    margin-top: -10px;
}

.wave-sep svg {
    display: block;
    width: 100%;
    height: 100%
}

.wave-sep path {
    fill: #ffffff;
}

/* ===================== CONTENT & TOC ===================== */
.legal-wrap {
    max-width: 1180px;
    margin: 0 auto 80px;
    padding: 0 24px;
}

.legal-card {
    background: var(--panel);
    border-radius: 14px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, .08);
    border: 1px solid var(--line);
    padding: clamp(22px, 3.5vw, 36px);
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: clamp(16px, 3.5vw, 40px);
}

@media (max-width: 1080px) {
    .legal-card {
        grid-template-columns:1fr
    }
}

/* Sticky İçindekiler — header yüksekliğini dikkate al */
.toc {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    align-self: start;
    background: linear-gradient(180deg, #f7faf7, #fdfefe);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px;
}

.toc h3 {
    margin: 2px 0 8px;
    font-size: 1rem;
    color: var(--brand)
}

.toc ul {
    list-style: none;
    margin: 0;
    padding: 0
}

.toc li {
    margin: 6px 0
}

.toc a {
    color: #2f5d2f;
    text-decoration: none;
    font-size: .98rem
}

.toc a:hover {
    text-decoration: underline
}

/* Metin alanı */
.legal-doc h1.legal-title {
    font-size: clamp(1.6rem, 3.4vw, 2.3rem);
    color: var(--brand-ink);
    margin: 0 0 .2rem;
    font-weight: 600;
}

.legal-meta {
    color: var(--muted);
    font-size: .95rem;
    margin: .15rem 0 .8rem
}

.section {
    padding: 22px 0;
    border-top: 1px dashed var(--line)
}

.section:first-of-type {
    border-top: none
}

.section h2 {
    font-size: 1.28rem;
    color: var(--brand);
    margin: 0 0 10px;
    font-weight: 700;
    position: relative;
    padding-left: 14px;
}

.section h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: .42em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 5px rgba(33, 80, 32, .08);
}

.section h3 {
    font-size: 1.08rem;
    margin: 16px 0 6px;
    color: #294b29
}

p {
    margin: 10px 0
}

ul {
    margin: 8px 0 8px 1.25rem
}

li {
    margin: .25rem 0
}

/* Vurgu/Not */
.badge {
    display: inline-block;
    font-size: .85rem;
    color: #fff;
    background: var(--brand);
    padding: .2rem .55rem;
    border-radius: 999px;
    margin-left: .4rem
}

.note {
    background: linear-gradient(180deg, #f8fbf8, #fff);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px 14px;
    margin: 16px 0;
    color: var(--muted)
}

/* Küçük detay */
a {
    color: var(--brand);
    text-underline-offset: 2px
}

hr {
    border: none;
    border-top: 1px solid var(--line);
    margin: 22px 0
}

.small {
    font-size: .95rem;
    color: var(--muted)
}
