/* Mesafeli satış + yasal sayfalar: ana siteden nav, sözleşmeye özel layout */
@import url('https://fonts.googleapis.com/css2?family=Libre+Bodoni:wght@400;500;600;700&family=Cormorant+Garamond:wght@500;600;700&display=swap');
@import url("./site-navbar-home-mirror.css");

:root {
    /* Ana site ürün / koleksiyon gövdesi ile aynı (index --ls-none) */
    --ls-none: 0.01em;
    --bg-color: #f8f7f5;
    --bg-white: #fdfcfa;
    --text-main: #111;
    --text-muted: #666;
    --border-color: #f0efe9;
    --header-h: 82px;
    --ls-ui: 0.03em;
    --ls-tight: -0.02em;
    /* Ana site ile aynı üst şerit (kırık beyaz) */
    --nav-surface: #fdfcfa;
    --nav-on-surface: #111;
    --nav-border: #f0efe9;
    --font-main: "Jost", sans-serif;
    --font-lux: "Montserrat", "Helvetica Neue", -apple-system, system-ui, sans-serif;
    --font-serif: "Playfair Display", serif;
    --font-wordmark: "Libre Bodoni", "Bodoni Moda", "Playfair Display", Georgia, "Times New Roman", serif;
    --brand-mark-scale-x: 1.14;
    --brand-mark-scale-y: 1.42;
    --font-logo: "Cormorant Garamond", "Times New Roman", serif;
    --cart-badge-color: #00a2ff;
    --mss-line: #e5e0d8;
    --mss-td-pad: 0.55rem 0.65rem;
}

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

body.mss-legal-page {
    font-family: var(--font-main);
    background-color: var(--bg-white);
    color: var(--text-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

html {
    scrollbar-width: none;
}

html::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

html::-webkit-scrollbar-corner {
    background: transparent;
}

#ph-scroll-thumb {
    position: fixed;
    top: 4px;
    right: 10px;
    width: 6px;
    min-height: 42px;
    border-radius: 999px;
    border: none;
    background: rgba(17, 17, 17, 0.30);
    opacity: 0.78;
    z-index: 160;
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    transition: opacity 0.22s ease, background-color 0.22s ease;
}

#ph-scroll-thumb:hover {
    opacity: 0.96;
    background: rgba(17, 17, 17, 0.42);
}

#ph-scroll-thumb.is-dragging {
    cursor: grabbing;
    opacity: 1;
    background: rgba(17, 17, 17, 0.52);
}

#ph-scroll-thumb.is-hidden {
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 1024px), (pointer: coarse) {
    #ph-scroll-thumb {
        display: none !important;
    }
}

body.mss-legal-page a,
body.mss-legal-page button,
body.mss-legal-page [role="button"] {
    touch-action: manipulation;
}

a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
ul { list-style: none; }

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; white-space: nowrap;
}

/* ——— SÖZLEŞME İÇERİĞİ ——— */
/* flex-grow / min-height: 100vh kaldırıldı: kısa sayfalarda içerik ile footer arasında dev boşluk oluşuyordu */
.mss-legal-site-main {
    padding-top: 0;
    flex: 0 0 auto;
    width: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
}

/* Ana sayfa hero ile aynı yükseklik bandı; görsel assets/mss-legal-page-banner.js ile rastgele atanır */
.mss-legal-page-banner {
    flex: 0 0 auto;
    width: 100%;
    height: 55vh;
    min-height: 400px;
    max-height: min(720px, 88vh);
    background-color: #e8e4dc;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .mss-legal-page-banner {
        height: 42vh;
        min-height: 280px;
        max-height: min(520px, 75vh);
    }
}

/* İki sütun: sol yasal menü + metin (KVKK ve diğer aydınlatma sayfaları) */
.legal-doc-site-main > .legal-doc-layout {
    flex: 1 0 auto;
    width: 100%;
}

.legal-doc-layout {
    display: grid;
    grid-template-columns: minmax(13rem, 17.5rem) minmax(0, 48rem);
    justify-content: center;
    align-items: start;
    column-gap: clamp(1.5rem, 3vw, 3rem);
    row-gap: 0;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 2rem clamp(1rem, 4vw, 2.5rem) 4.5rem;
    box-sizing: border-box;
}

.legal-doc-layout__aside {
    max-width: 100%;
    position: static;
    top: auto;
    background: #fff;
}

.legal-doc-layout__content {
    min-width: 0;
    width: 100%;
    max-width: 48rem;
    justify-self: stretch;
}

.legal-doc-layout__content > .legal-doc-panel {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
}

.legal-doc-layout__content .mss-legal {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}

.legal-doc-panel[hidden] {
    display: none !important;
}

.legal-doc-jump {
    display: inline;
    padding: 0;
    margin: 0;
    border: none;
    background: none;
    font: inherit;
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
}

.legal-doc-jump:hover {
    text-decoration: none;
}

.legal-side-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid #e8e8e8;
}

.legal-side-nav__item {
    margin: 0;
    border-bottom: 1px solid #e8e8e8;
}

.legal-side-nav__link {
    display: block;
    width: 100%;
    margin: 0;
    padding: 1.125rem 0.85rem 1.125rem 0.65rem;
    font-family: var(--font-lux);
    font-size: 10.5px;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #111;
    text-decoration: none;
    text-align: left;
    border: none;
    border-left: 5px solid transparent;
    background: transparent;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

.legal-side-nav__link:hover {
    color: #000;
    background: #fafafa;
}

.legal-side-nav__link.is-active,
.legal-side-nav__link[aria-current="page"] {
    background: #f0f0f0;
    border-left-color: #111;
}

.legal-side-nav__link:focus-visible {
    outline: 2px solid #111;
    outline-offset: 2px;
}

@media (max-width: 900px) {
    .legal-doc-layout {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding-top: 1.5rem;
    }

    .legal-doc-layout__aside {
        width: 100%;
        max-width: 100%;
        margin-bottom: 1.25rem;
    }

    .legal-doc-layout__content {
        max-width: none;
    }

    .legal-doc-layout__content > .legal-doc-panel {
        max-width: 48rem;
        margin-inline: auto;
        width: 100%;
    }

    .legal-doc-layout__content .mss-legal {
        padding-left: 0;
    }
}

.mss-legal {
    max-width: 48rem;
    margin: 0 auto;
    padding: 2rem 1.25rem 4.5rem;
    width: 100%;
    font-size: 14px;
    line-height: 1.7;
    color: #1a1a1a;
}

.mss-legal h1 {
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 2.2vw, 1.5rem);
    font-weight: 500;
    text-align: center;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

/* Kişisel veriler / KVKK aydınlatma — üst başlık (lüks sans, geniş tracking, ince ayırıcı) */
.kvkk-page .mss-legal h1 {
    font-family: var(--font-lux);
    font-size: clamp(10.5px, 1.35vw, 12.5px);
    font-weight: 500;
    font-kerning: none;
    font-feature-settings: "kern" 0;
    letter-spacing: 0.16em;
    line-height: 1.5;
    text-align: left;
    text-transform: uppercase;
    color: #111;
    margin: 0 0 1.35rem;
    padding: 0 0 1rem;
    border-bottom: 1px solid #e3e3e3;
    max-width: 100%;
}

.mss-legal .mss-legal-kicker {
    text-align: center; font-size: 12px; color: var(--text-muted);
    font-family: var(--font-main); text-transform: uppercase; letter-spacing: 0.18em; margin-bottom: 2rem;
}

.mss-madde-bar {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 2.25rem 0 0.75rem;
    padding: 0.5rem 0 0.35rem;
    border-top: 1px solid #ddd;
    font-family: var(--font-serif);
    font-style: normal;
    color: #000;
}
.mss-madde-bar:first-of-type { margin-top: 1rem; border-top: 0; padding-top: 0; }

.mss-justify { text-align: justify; }
.mss-center { text-align: center; }
.mss-center p { text-align: center; }

p.mss-p, .mss-legal p { margin: 0 0 0.9rem; }
p.mss-p--tight { font-size: 12.5px; color: #333; }

.mss-bullets { list-style: disc; text-align: left; padding: 0 0 0 1.1rem; max-width: 100%; margin: 0.25rem 0 1.25rem; }
.mss-bullets.mss-bullets--center { max-width: 40rem; margin-left: auto; margin-right: auto; }
.mss-bullets li { margin: 0.35em 0; }

.mss-legal-ol-steps {
    list-style: decimal;
    text-align: left;
    padding: 0 0 0 1.35rem;
    max-width: 100%;
    margin: 0.5rem 0 1.25rem;
    line-height: 1.65;
}
.mss-legal-ol-steps li { margin: 0.45em 0; }
.mss-bullets--disc-center { list-style: disc; padding-left: 1.25em; }

/* İşlem rehberi: kadın koleksiyonu gridi ile aynı font (Montserrat / --font-lux); kalın = strong */
.islem-rehberi-page .mss-legal {
    font-family: var(--font-lux);
    letter-spacing: var(--ls-none);
}

.islem-rehberi-page .mss-legal .mss-madde-bar {
    font-family: var(--font-lux);
    font-style: normal;
    font-weight: 600;
    font-kerning: none;
    font-feature-settings: "kern" 0;
    letter-spacing: 0.1em;
}

.islem-rehberi-page .mss-legal .mss-legal-ol-steps,
.islem-rehberi-page .mss-legal .mss-legal-ol-steps li {
    font-family: inherit;
    font-weight: 400;
}

.islem-rehberi-page .mss-legal .mss-legal-ol-steps li strong {
    font-weight: 600;
}

.islem-rehberi-page .mss-legal a {
    font-weight: inherit;
}

/* Üyelik / kargo-iade / mesafeli: ana başlık nav ve grid ile aynı (Montserrat) */
.uyelik-sozlesmesi-page .mss-legal > h1,
.kargo-ve-iade-page .mss-legal > h1,
.mesafeli-satis-sozlesmesi-page .mss-legal > h1 {
    font-family: var(--font-lux);
    font-weight: 600;
    font-kerning: none;
    font-feature-settings: "kern" 0;
}

.mss-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 0.5rem;
}
.mss-table td, .mss-table th { border: 1px solid #ddd; padding: 0.45rem 0.6rem; vertical-align: top; }
.mss-table th { font-weight: 600; background: #fafafa; }

/* KVKK / uzun yasal tablolar */
.mss-table--kvkk {
    font-size: 11.5px;
    line-height: 1.45;
    margin: 0.75rem 0 1.25rem;
}
.mss-table--kvkk td,
.mss-table--kvkk th { padding: 0.4rem 0.5rem; }
.mss-table--kvkk ul { margin: 0.2rem 0 0; padding-left: 1rem; }
.mss-table--kvkk li { margin: 0.15em 0; }
.mss-table--cols3 .mss-lab { width: 36%; text-align: right; font-weight: 500; border-right: none; }
.mss-table--cols3 .mss-colon { width: 2%; text-align: center; padding: 0.4rem 0.15rem; border-left: 0; border-right: 0; }
.mss-table--cols3 .mss-val { text-align: left; }
.mss-table--plain-rows td, .mss-table--plain-rows th { border-left: none; border-right: none; }
.mss-table--plain-rows tr:last-child td { border-bottom: 1px solid #ddd; }

.mss-party-caps {
    text-align: center; font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.15em; padding: 0.6rem; border: 1px solid #ddd; background: #faf9f6; }

.mss-subhead { font-size: 13px; font-weight: 600; text-align: center; margin: 0.5rem 0; }

.mss-boxed-note {
    border: 1px solid #e0e0e0; padding: 0.9rem 1rem; background: #fafafa; font-size: 14px; margin: 0.5rem 0 1.25rem;
}

.mss-product-grid { width: 100%; border-collapse: collapse; margin: 0.5rem 0; font-size: 14px; }
.mss-product-grid th, .mss-product-grid td { border: 1px solid #d5d0c8; padding: 0.55rem 0.65rem; }
.mss-product-grid th { text-align: left; font-weight: 600; background: #faf9f5; }
.mss-small-cap { text-align: center; font-size: 12.5px; color: #444; margin: 0.4rem 0; }

ol.mss-alpha { list-style: lower-latin; padding: 0 0 0 1.2rem; margin: 0.3rem 0 1rem; }
ol.mss-alpha li { margin: 0.35em 0; }
ol.mss-num { list-style: decimal; padding: 0 0 0 1.2rem; }
ol.mss-num.mss-legal-clauses > li { margin: 0.5rem 0 0.6rem; }

h3.mss-clause { font-size: 14px; font-weight: 600; margin: 1.25rem 0 0.4rem; font-family: var(--font-main); }

.mss-sigbox {
    max-width: 32rem; margin: 2rem auto 0; padding: 1.25rem 1.5rem;
    background: #faf9f5; border: 1px solid #ece8e2; text-align: center;
    font-size: 14px; line-height: 1.7;
}
.mss-sigbox p { text-align: center; margin: 0 0 0.5rem; }

/* Madde 3+ bazı sözleşmeler: orta hizalı maddi liste */
.mss-block--centered-list { text-align: center; }
.mss-block--centered-list p { text-align: center; }
.mss-block--centered-list .mss-bullets--disc-center { text-align: left; display: inline-block; }
.mss-fatura-tag {
    display: inline-block; border: 1px solid #c8c2b8; padding: 0.2rem 0.6rem; font-size: 12px; font-weight: 600; margin: 0.2rem 0 0.6rem;
    background: #fff;
}
@media (max-width: 520px) {
    .mss-table--cols3 .mss-lab { width: auto; font-size: 13px; }
    .mss-legal { padding-left: 1rem; padding-right: 1rem; }
    .mss-legal h1 { letter-spacing: 0.08em; }
    .kvkk-page .mss-legal h1 { letter-spacing: 0.12em; }
}
