/* MARAŞ 18 — Yasal sayfalar (KVKK, gizlilik, çerez, sözleşmeler) */

body.page-legal.theme-maras18 {
    --m18l-green: #16351C;
    --m18l-green-2: #254D2A;
    --m18l-walnut: #8A4F20;
    --m18l-accent: #B8661A;
    --m18l-cream: #F7F3EA;
    --m18l-cream-2: #FBF8F2;
    --m18l-ink: #182018;
    --m18l-muted: #5c655c;
    --m18l-line: #E5E2DA;
    --m18l-white: #ffffff;
    --m18l-serif: "Fraunces", Georgia, "Times New Roman", serif;
    --m18l-sans: "Manrope", system-ui, sans-serif;
    --m18-wrap: 1180px;
    --m18-green: var(--m18l-green);
    --m18-accent: var(--m18l-walnut);
    --m18-accent-dark: var(--m18l-accent);
    background: var(--m18l-cream-2);
    color: var(--m18l-ink);
}

.page-legal .site-page {
    padding-top: 0;
    padding-bottom: 0;
}

.m18l-page {
    font-family: var(--m18l-sans);
    overflow-x: clip;
}

/* ── Hero ── */
.m18l-hero {
    position: relative;
    overflow: hidden;
    background: var(--m18l-green);
    color: #fff;
}

.m18l-hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 90% at 92% 10%, rgba(184, 102, 26, 0.22), transparent 55%),
        radial-gradient(ellipse 50% 80% at 0% 100%, rgba(0, 0, 0, 0.22), transparent 50%),
        linear-gradient(135deg, #122c17 0%, var(--m18l-green) 48%, var(--m18l-green-2) 100%);
    pointer-events: none;
}

.m18l-hero__inner {
    position: relative;
    z-index: 1;
    padding: 2.1rem 0 2.35rem;
}

.m18l-crumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0 0 1.15rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.72);
}

.m18l-crumb a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.m18l-crumb a:hover {
    color: #fff;
}

.m18l-crumb [aria-current="page"] {
    color: rgba(255, 255, 255, 0.95);
}

.m18l-crumb .m18-icon {
    opacity: 0.55;
}

.m18l-hero__row {
    display: flex;
    align-items: flex-start;
    gap: 1.15rem;
    max-width: 46rem;
}

.m18l-hero__icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #f3e6d2;
    backdrop-filter: blur(6px);
}

.m18l-kicker {
    margin: 0 0 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #e2b57a;
}

.m18l-title {
    margin: 0 0 0.55rem;
    font-family: var(--m18l-serif);
    font-size: clamp(1.65rem, 3.2vw, 2.35rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: #fff;
}

.m18l-lead {
    margin: 0 0 1rem;
    max-width: 38rem;
    font-size: 0.98rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.82);
}

.m18l-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.m18l-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.92);
}

.m18l-badge--soft {
    background: transparent;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.78);
}

/* ── Body layout ── */
.m18l-body {
    padding: 2rem 0 3.5rem;
}

.m18l-layout {
    display: grid;
    grid-template-columns: 15.5rem minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

/* ── Aside nav ── */
.m18l-aside {
    position: sticky;
    top: calc(var(--site-header-height, 7rem) + 0.75rem);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 1rem;
    background: var(--m18l-white);
    border: 1px solid var(--m18l-line);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(22, 53, 28, 0.04);
}

.m18l-aside__label {
    margin: 0 0 0.15rem;
    padding: 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--m18l-muted);
}

.m18l-nav {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.m18l-nav__link {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.6rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--m18l-ink);
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.3;
    transition: background 0.18s ease, color 0.18s ease;
}

.m18l-nav__link:hover {
    background: var(--m18l-cream);
    color: var(--m18l-green);
}

.m18l-nav__link.is-active {
    background: rgba(22, 53, 28, 0.08);
    color: var(--m18l-green);
}

.m18l-nav__icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 8px;
    background: var(--m18l-cream);
    color: var(--m18l-walnut);
}

.m18l-nav__link.is-active .m18l-nav__icon {
    background: var(--m18l-green);
    color: #fff;
}

.m18l-nav__text {
    min-width: 0;
}

.m18l-cookie-btn,
.m18l-aside__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    margin-top: 0.25rem;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.m18l-cookie-btn {
    border: 1px solid var(--m18l-line);
    background: var(--m18l-cream);
    color: var(--m18l-green);
}

.m18l-cookie-btn:hover {
    border-color: var(--m18l-walnut);
    color: var(--m18l-walnut);
}

.m18l-aside__cta {
    border: 1px solid transparent;
    background: var(--m18l-green);
    color: #fff;
}

.m18l-aside__cta:hover {
    background: var(--m18l-green-2);
    color: #fff;
}

/* ── Article ── */
.m18l-article {
    background: var(--m18l-white);
    border: 1px solid var(--m18l-line);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(22, 53, 28, 0.045);
    overflow: hidden;
}

.m18l-prose {
    padding: 1.75rem 1.75rem 1.25rem;
}

.m18l-prose > :first-child {
    margin-top: 0;
}

.m18l-h {
    margin: 1.75rem 0 0.75rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid var(--m18l-line);
    font-family: var(--m18l-serif);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--m18l-green);
    letter-spacing: -0.01em;
}

.m18l-p {
    margin: 0 0 1rem;
    font-size: 0.98rem;
    line-height: 1.72;
    color: #3a433c;
}

.m18l-defs {
    display: grid;
    gap: 0.65rem;
    margin: 0 0 1.15rem;
    padding: 1rem 1.05rem;
    background: var(--m18l-cream-2);
    border: 1px solid var(--m18l-line);
    border-radius: 12px;
}

.m18l-def {
    margin: 0 0 0.85rem;
    font-size: 0.96rem;
    line-height: 1.65;
    color: #3a433c;
}

.m18l-defs .m18l-def {
    margin: 0;
}

.m18l-def strong {
    color: var(--m18l-green);
    font-weight: 700;
}

.m18l-clause {
    display: grid;
    grid-template-columns: 1.6rem minmax(0, 1fr);
    gap: 0.45rem;
    margin: 0 0 0.85rem;
    font-size: 0.96rem;
    line-height: 1.65;
    color: #3a433c;
}

.m18l-clause__n {
    font-weight: 800;
    color: var(--m18l-walnut);
}

.m18l-clause strong {
    color: var(--m18l-green);
}

.m18l-ol {
    margin: 0 0 1.15rem;
    padding: 0.85rem 0.85rem 0.85rem 1.6rem;
    background: var(--m18l-cream-2);
    border: 1px solid var(--m18l-line);
    border-radius: 12px;
}

.m18l-ol li {
    margin: 0 0 0.45rem;
    padding-left: 0.2rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #3a433c;
}

.m18l-ol li:last-child {
    margin-bottom: 0;
}

.m18l-ol li::marker {
    color: var(--m18l-walnut);
    font-weight: 700;
}

/* ── Article footer ── */
.m18l-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
    padding: 1.25rem 1.75rem;
    border-top: 1px solid var(--m18l-line);
    background: linear-gradient(180deg, var(--m18l-cream-2), var(--m18l-cream));
}

.m18l-foot__title {
    margin: 0 0 0.2rem;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--m18l-green);
}

.m18l-foot__text {
    margin: 0;
    max-width: 28rem;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--m18l-muted);
}

.m18l-foot__text a {
    color: var(--m18l-walnut);
    font-weight: 700;
    text-decoration: none;
}

.m18l-foot__text a:hover {
    text-decoration: underline;
}

.m18l-foot__btn {
    flex-shrink: 0;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .m18l-layout {
        grid-template-columns: 1fr;
    }

    .m18l-aside {
        position: static;
        padding: 0.85rem;
    }

    .m18l-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.35rem;
    }

    .m18l-nav__link {
        min-height: 2.75rem;
    }

    .m18l-cookie-btn,
    .m18l-aside__cta {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .m18l-hero__inner {
        padding: 1.5rem 0 1.75rem;
    }

    .m18l-hero__row {
        gap: 0.85rem;
    }

    .m18l-hero__icon {
        width: 2.85rem;
        height: 2.85rem;
        border-radius: 12px;
    }

    .m18l-body {
        padding: 1.25rem 0 2.5rem;
    }

    .m18l-nav {
        grid-template-columns: 1fr;
    }

    .m18l-prose {
        padding: 1.25rem 1.15rem 1rem;
    }

    .m18l-foot {
        padding: 1.1rem 1.15rem;
    }

    .m18l-foot__btn {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .m18l-nav__link,
    .m18l-cookie-btn,
    .m18l-aside__cta,
    .m18l-crumb a {
        transition: none;
    }
}
