/* ==========================================================================
   Harita Mühendisliği Hizmetleri — genel site stilleri
   Bootstrap 5.3 üzerine kurulu tasarım katmanı.
   Tüm renk/ölçü değerleri aşağıdaki token'lardan türetilir.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TASARIM TOKEN'LARI
   -------------------------------------------------------------------------- */
:root {
    /* Marka renkleri */
    --brand-500: #2563eb;
    --brand-600: #1d4ed8;
    --brand-700: #1e40af;
    --brand-400: #60a5fa;
    --accent-teal: #0ea5e9;
    --map-green: #059669;

    /* Yüzeyler */
    --ink-900: #0b1220; /* en koyu — navbar / footer */
    --ink-800: #111c2e;
    --ink-700: #1e293b;
    --surface: #ffffff;
    --surface-alt: #f8fafc;
    --surface-sunken: #f1f5f9;

    /* Metin */
    --text-strong: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
    --text-inverse: #e2e8f0;

    /* Kenarlıklar */
    --border: #e2e8f0;
    --border-strong: #cbd5e1;

    /* Gölgeler — yumuşak ve katmanlı */
    --shadow-xs: 0 1px 2px rgb(15 23 42 / .06);
    --shadow-sm: 0 1px 3px rgb(15 23 42 / .07), 0 1px 2px rgb(15 23 42 / .04);
    --shadow-md: 0 4px 12px rgb(15 23 42 / .08), 0 2px 4px rgb(15 23 42 / .04);
    --shadow-lg: 0 12px 32px rgb(15 23 42 / .10), 0 4px 8px rgb(15 23 42 / .04);
    --shadow-brand: 0 8px 24px rgb(37 99 235 / .28);

    /* Yarıçap */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-pill: 999px;

    /* Tipografi */
    --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'SFMono-Regular', ui-monospace, 'Cascadia Mono', Consolas, monospace;

    /* Ölçüler */
    --nav-h: 76px;
    --nav-h-scrolled: 62px;

    /* Geçişler */
    --ease: cubic-bezier(.4, 0, .2, 1);
    --dur: .25s;

    /* Bootstrap değişkenlerini markaya bağla */
    --bs-primary: var(--brand-500);
    --bs-primary-rgb: 37, 99, 235;
    --bs-body-font-family: var(--font-sans);
    --bs-body-color: var(--text-body);
    --bs-border-color: var(--border);
    --bs-link-color: var(--brand-600);
    --bs-link-hover-color: var(--brand-700);
}

/* --------------------------------------------------------------------------
   2. TEMEL
   -------------------------------------------------------------------------- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
    font-family: var(--font-sans);
    color: var(--text-body);
    background-color: var(--surface);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'cv11', 'ss01';
    letter-spacing: -0.006em;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    color: var(--text-strong);
    font-weight: 700;
    letter-spacing: -0.022em;
    line-height: 1.22;
    text-wrap: balance;
}

p {
    line-height: 1.75;
    text-wrap: pretty;
}

a {
    text-decoration: none;
    transition: color var(--dur) var(--ease);
}

/* Klavye kullanıcıları için görünür odak halkası */
:focus-visible {
    outline: 2px solid var(--brand-500);
    outline-offset: 2px;
    border-radius: 4px;
}

::selection {
    background: rgb(37 99 235 / .18);
    color: var(--text-strong);
}

/* İnce, modern kaydırma çubuğu */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--border-strong) transparent;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border: 3px solid var(--surface);
    border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* Sabit navbar yüksekliği kadar boşluk */
#mainContent {
    padding-top: var(--nav-h);
}

/* --------------------------------------------------------------------------
   3. NAVBAR
   -------------------------------------------------------------------------- */
#mainNav {
    background-color: rgb(11 18 32 / .82);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border-bottom: 1px solid rgb(255 255 255 / .07);
    padding: .85rem 0;
    transition: background-color var(--dur) var(--ease),
                padding var(--dur) var(--ease),
                box-shadow var(--dur) var(--ease),
                border-color var(--dur) var(--ease);
}

#mainNav.navbar-scrolled {
    background-color: rgb(11 18 32 / .97);
    padding: .45rem 0;
    box-shadow: 0 6px 24px rgb(0 0 0 / .28);
    border-bottom-color: rgb(37 99 235 / .28);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff !important;
    font-size: 1.22rem;
    letter-spacing: -0.02em;
}

.brand-icon {
    background: linear-gradient(135deg, var(--brand-500), var(--accent-teal));
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-brand);
    transition: transform var(--dur) var(--ease);
}

.navbar-brand:hover .brand-icon {
    transform: rotate(-6deg) scale(1.05);
}

.brand-icon i {
    font-size: 1.15rem;
    color: #fff;
}

.brand-text {
    line-height: 1.15;
}

.brand-text .text-primary {
    color: var(--brand-400) !important;
    font-weight: 800;
}

.navbar-nav .nav-link {
    color: rgb(226 232 240 / .82) !important;
    font-weight: 500;
    padding: .5rem .8rem !important;
    position: relative;
    font-size: .92rem;
    white-space: nowrap; /* "Ana Sayfa" / "Online Araçlar" iki satıra bölünmesin */
    border-radius: var(--radius-sm);
    transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus-visible {
    color: #fff !important;
    background-color: rgb(255 255 255 / .06);
}

.navbar-nav .nav-link.active {
    color: #fff !important;
    font-weight: 600;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--brand-400), var(--accent-teal));
    border-radius: 2px;
    transition: width var(--dur) var(--ease);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 55%;
}

#mainNav .btn-primary { white-space: nowrap; }

/* Dar masaüstü genişliklerinde menüyü sıkıştır — iki satıra düşmesin */
@media (min-width: 992px) and (max-width: 1299.98px) {
    .navbar-nav .nav-link {
        padding: .5rem .55rem !important;
        font-size: .875rem;
    }

    .navbar-brand { font-size: 1.05rem; }
    .brand-icon { width: 36px; height: 36px; }
    #mainNav .btn-primary { padding: .5rem 1rem !important; font-size: .85rem; }
}

/* Küçük ekranlarda marka + hamburger tek satırda kalsın */
@media (max-width: 575.98px) {
    .navbar-brand {
        font-size: .95rem;
        gap: 9px;
        min-width: 0;
    }

    .brand-icon {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    .brand-icon i { font-size: .95rem; }

    .navbar-brand .brand-text {
        min-width: 0;
        line-height: 1.25;
    }
}

.navbar-toggler:focus { box-shadow: none; }

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991.98px) {
    #mainNav {
        background-color: var(--ink-900);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        padding: .5rem 0;
    }

    .navbar-collapse {
        background: var(--ink-800);
        padding: 1.25rem;
        border-radius: var(--radius-lg);
        margin-top: 1rem;
        border: 1px solid rgb(255 255 255 / .08);
        box-shadow: var(--shadow-lg);
    }

    .navbar-nav .nav-link::after { display: none; }

    .navbar-nav .nav-link.active {
        color: var(--brand-400) !important;
        background-color: rgb(37 99 235 / .14);
    }
}

/* --------------------------------------------------------------------------
   4. BUTONLAR
   -------------------------------------------------------------------------- */
.btn {
    font-weight: 600;
    letter-spacing: -0.01em;
    border-radius: var(--radius-sm);
    transition: transform .18s var(--ease),
                box-shadow var(--dur) var(--ease),
                background-color var(--dur) var(--ease),
                border-color var(--dur) var(--ease),
                color var(--dur) var(--ease);
}

.btn-primary {
    background-color: var(--brand-500);
    border-color: var(--brand-500);
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background-color: var(--brand-600);
    border-color: var(--brand-600);
    transform: translateY(-2px);
    box-shadow: var(--shadow-brand);
}

.btn-primary:active { transform: translateY(0); }

.btn-outline-primary {
    color: var(--brand-600);
    border-color: var(--brand-500);
}

.btn-outline-primary:hover {
    background-color: var(--brand-500);
    border-color: var(--brand-500);
    transform: translateY(-2px);
}

.btn-lg { padding: .8rem 1.75rem; font-size: 1rem; }

/* --------------------------------------------------------------------------
   5. KARTLAR
   -------------------------------------------------------------------------- */
.card {
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--surface);
    box-shadow: var(--shadow-xs);
    transition: transform var(--dur) var(--ease),
                box-shadow var(--dur) var(--ease),
                border-color var(--dur) var(--ease);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgb(37 99 235 / .22);
}

.shadow-hover {
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.shadow-hover:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg) !important;
}

/* --------------------------------------------------------------------------
   6. BÖLÜM BAŞLIKLARI
   -------------------------------------------------------------------------- */
.section-title {
    position: relative;
    padding-bottom: 16px;
    margin-bottom: 32px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 56px;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-500), var(--accent-teal));
    border-radius: var(--radius-pill);
}

.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* --------------------------------------------------------------------------
   7. FOOTER
   -------------------------------------------------------------------------- */
footer {
    background-color: var(--ink-900);
    color: #94a3b8;
    border-top: 1px solid rgb(255 255 255 / .07);
    padding: 4rem 0 1.5rem;
    margin-top: auto;
    font-size: .93rem;
}

/* Üst kenarda ince marka çizgisi */
.site-footer {
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent, var(--brand-500) 30%, var(--accent-teal) 70%, transparent);
    opacity: .55;
}

footer h5 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 1.35rem;
    font-size: 1.03rem;
    letter-spacing: -0.015em;
}

footer a {
    color: #94a3b8;
}

footer a:hover {
    color: var(--brand-400);
}

/* ── Marka bloğu ─────────────────────────────── */
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.15rem;
}

.footer-brand-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand-500), var(--accent-teal));
    color: #fff;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-brand);
}

.footer-brand-name {
    color: #fff;
    font-weight: 700;
    font-size: 1.08rem;
    letter-spacing: -0.02em;
}

.footer-brand:hover .footer-brand-name { color: #fff; }

.footer-about {
    font-size: .89rem;
    line-height: 1.7;
    max-width: 34ch;
    margin-bottom: 1.25rem;
}

.footer-badges {
    margin-bottom: 1.5rem;
    font-size: .82rem;
}

.footer-badges li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: .5rem;
    color: #7c8ba1;
}

.footer-badges i {
    color: var(--brand-400);
    font-size: .8rem;
    width: 14px;
    text-align: center;
}

/* ── Bağlantı listeleri ──────────────────────── */
.footer-links li { margin-bottom: .6rem; }

.footer-links a {
    position: relative;
    display: inline-block;
    transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.footer-links a:hover { transform: translateX(3px); }

/* ── İletişim ────────────────────────────────── */
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: .7rem;
    font-size: .89rem;
    line-height: 1.55;
}

.footer-contact i {
    color: var(--brand-400);
    font-size: .82rem;
    margin-top: .28rem;
    width: 14px;
    text-align: center;
    flex-shrink: 0;
}

.footer-cta {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: .35rem;
    padding: .6rem 1rem;
    border-radius: var(--radius-sm);
    background: rgb(37 99 235 / .12);
    border: 1px solid rgb(37 99 235 / .3);
    color: #bfdbfe !important;
    font-size: .85rem;
    font-weight: 600;
    transition: background-color var(--dur) var(--ease),
                border-color var(--dur) var(--ease),
                transform var(--dur) var(--ease);
}

.footer-cta:hover {
    background: var(--brand-500);
    border-color: var(--brand-500);
    color: #fff !important;
    transform: translateY(-2px);
}

/* ── Sosyal ikonlar ──────────────────────────── */
footer .social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgb(255 255 255 / .05);
    border-radius: var(--radius-sm);
    margin-right: 8px;
    border: 1px solid rgb(255 255 255 / .08);
    transition: background-color var(--dur) var(--ease),
                border-color var(--dur) var(--ease),
                transform var(--dur) var(--ease),
                color var(--dur) var(--ease);
}

footer .social-icons a:hover {
    background: var(--brand-500);
    color: #fff;
    border-color: var(--brand-500);
    transform: translateY(-3px);
}

/* ── Alt bar ─────────────────────────────────── */
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgb(255 255 255 / .07);
}

.footer-copy {
    margin: 0;
    font-size: .83rem;
    color: #6b7a90;
}

.footer-legal {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .55rem;
    font-size: .83rem;
}

.footer-legal > a {
    color: #6b7a90;
}

.footer-legal > a:hover { color: var(--brand-400); }

.footer-sep { color: #3b4759; }

/* Yönetim paneli girişi — ayrı, göze batmayan ama bulunabilir bir rozet */
.footer-admin-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-left: .65rem;
    padding: .34rem .8rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgb(255 255 255 / .1);
    background: rgb(255 255 255 / .04);
    color: #8b9aae !important;
    font-size: .78rem;
    font-weight: 500;
    white-space: nowrap;
    transition: background-color var(--dur) var(--ease),
                border-color var(--dur) var(--ease),
                color var(--dur) var(--ease),
                transform var(--dur) var(--ease);
}

.footer-admin-link i {
    font-size: .7rem;
    opacity: .8;
}

.footer-admin-link:hover,
.footer-admin-link:focus-visible {
    background: rgb(37 99 235 / .16);
    border-color: rgb(37 99 235 / .45);
    color: #bfdbfe !important;
    transform: translateY(-1px);
}

@media (max-width: 767.98px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal { justify-content: center; }

    .footer-admin-link {
        margin-left: 0;
        margin-top: .5rem;
    }
}

/* --------------------------------------------------------------------------
   7b. SAYFA BAŞLIĞI BANDI (_PageHeader)
   -------------------------------------------------------------------------- */
.page-header {
    position: relative;
    overflow: hidden;
    padding: 3.25rem 0 2.75rem;
    background: linear-gradient(135deg, var(--ink-900) 0%, var(--ink-800) 55%, #16263f 100%);
    color: #fff;
    isolation: isolate;
}

.page-header-grid {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(rgb(96 165 250 / .06) 1px, transparent 1px),
        linear-gradient(90deg, rgb(96 165 250 / .06) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: linear-gradient(to bottom, #000 30%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent);
}

.page-header-glow {
    position: absolute;
    top: -160px;
    right: -80px;
    width: 460px;
    height: 460px;
    z-index: -1;
    background: radial-gradient(circle, rgb(37 99 235 / .28) 0%, transparent 66%);
    pointer-events: none;
}

/* Kırıntı yolu */
.page-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
    font-size: .8rem;
    margin-bottom: 1.4rem;
    color: #7c8ba1;
}

.page-breadcrumb a {
    color: #94a3b8;
    transition: color var(--dur) var(--ease);
}

.page-breadcrumb a:hover { color: var(--brand-400); }

.page-breadcrumb .sep {
    font-size: .55rem;
    color: #475569;
}

.page-breadcrumb .current {
    color: #e2e8f0;
    font-weight: 500;
}

/* Başlık gövdesi */
.page-header-body {
    display: flex;
    align-items: center;
    gap: 1.15rem;
}

.page-header-icon {
    width: 58px;
    height: 58px;
    flex-shrink: 0;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-500), var(--accent-teal));
    box-shadow: var(--shadow-brand);
}

.page-eyebrow {
    display: inline-block;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .13em;
    color: var(--brand-400);
    margin-bottom: .4rem;
}

.page-title {
    color: #fff;
    font-size: clamp(1.6rem, 3.4vw, 2.2rem);
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.03em;
}

.page-subtitle {
    margin: .5rem 0 0;
    color: #94a3b8;
    font-size: .96rem;
    max-width: 62ch;
    line-height: 1.6;
}

@media (max-width: 575.98px) {
    .page-header { padding: 2.5rem 0 2rem; }
    .page-header-icon { width: 46px; height: 46px; font-size: 1.1rem; }
}

/* --------------------------------------------------------------------------
   7c. YASAL SAYFALAR
   -------------------------------------------------------------------------- */
.legal-section {
    padding: 3.5rem 0 4.5rem;
    background: var(--surface);
}

.legal-wrap {
    display: grid;
    grid-template-columns: 232px minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
}

/* Grid öğelerinin varsayılan auto minimumu, içindeki geniş tablonun
   ızgarayı şişirmesine izin verir; min-width:0 bunu engeller. */
.legal-wrap > * {
    min-width: 0;
}

/* İçindekiler */
.legal-toc {
    position: sticky;
    top: calc(var(--nav-h) + 20px);
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface-alt);
}

.legal-toc-title {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--text-muted);
    margin: 0 0 .85rem;
}

.legal-toc nav {
    display: flex;
    flex-direction: column;
    gap: .1rem;
}

.legal-toc nav a {
    padding: .42rem .65rem;
    border-radius: var(--radius-sm);
    font-size: .855rem;
    color: var(--text-muted);
    border-left: 2px solid transparent;
    transition: background-color var(--dur) var(--ease),
                color var(--dur) var(--ease),
                border-color var(--dur) var(--ease);
}

.legal-toc nav a:hover {
    background: var(--surface-sunken);
    color: var(--text-strong);
}

.legal-toc nav a.active {
    color: var(--brand-600);
    background: rgb(37 99 235 / .07);
    border-left-color: var(--brand-500);
    font-weight: 600;
}

/* İçerik */
.legal-content {
    max-width: 74ch;
    font-size: .97rem;
    line-height: 1.8;
}

.legal-content h2 {
    font-size: 1.18rem;
    margin: 2.5rem 0 .85rem;
    padding-top: .4rem;
    scroll-margin-top: calc(var(--nav-h) + 20px);
}

.legal-content h2:first-of-type { margin-top: 1.5rem; }

.legal-content p { margin-bottom: 1.1rem; }

.legal-content ul {
    margin-bottom: 1.3rem;
    padding-left: 1.15rem;
}

.legal-content li {
    margin-bottom: .55rem;
    padding-left: .2rem;
}

.legal-content li::marker { color: var(--brand-500); }

.legal-content a {
    color: var(--brand-600);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
}

.legal-content a:hover { color: var(--brand-700); }

.legal-updated {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .82rem;
    color: var(--text-muted);
    background: var(--surface-sunken);
    padding: .4rem .8rem;
    border-radius: var(--radius-pill);
    margin-bottom: 1.75rem;
}

.legal-notice {
    display: flex;
    gap: .85rem;
    padding: 1rem 1.15rem;
    margin-bottom: 1.75rem;
    border-radius: var(--radius-md);
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 3px solid #f59e0b;
    font-size: .89rem;
    line-height: 1.65;
    color: #713f12;
}

.legal-notice i {
    color: #d97706;
    margin-top: .22rem;
    flex-shrink: 0;
}

.legal-placeholder {
    padding: .75rem 1rem;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--surface-alt);
    font-size: .89rem;
    color: var(--text-muted);
}

/* Tablo */
.table-scroll {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.legal-table {
    width: 100%;
    min-width: 540px;
    border-collapse: collapse;
    font-size: .875rem;
}

.legal-table th {
    text-align: left;
    padding: .75rem 1rem;
    background: var(--surface-alt);
    color: var(--text-strong);
    font-weight: 600;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    border-bottom: 1px solid var(--border);
}

.legal-table td {
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.legal-table tr:last-child td { border-bottom: none; }

.legal-table code {
    font-family: var(--font-mono);
    font-size: .8rem;
    color: var(--brand-700);
    background: var(--surface-sunken);
    padding: .12rem .35rem;
    border-radius: 4px;
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .legal-wrap {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.75rem;
    }

    .legal-toc {
        position: static;
    }

    .legal-toc nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: .35rem;
    }

    .legal-toc nav a {
        border-left: none;
        border: 1px solid var(--border);
        background: var(--surface);
    }

    .legal-toc nav a.active { border-color: var(--brand-500); }
}

/* --------------------------------------------------------------------------
   7d. ÇEREZ BİLDİRİMİ
   -------------------------------------------------------------------------- */
.cookie-consent {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 1040;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .28s var(--ease), transform .28s var(--ease);
}

.cookie-consent.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.cookie-consent-inner {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .9rem 1.1rem;
    border-radius: var(--radius-lg);
    background: var(--ink-800);
    border: 1px solid rgb(255 255 255 / .1);
    box-shadow: 0 16px 44px rgb(0 0 0 / .34);
    color: #cbd5e1;
}

.cookie-consent-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(37 99 235 / .16);
    color: var(--brand-400);
}

.cookie-consent-text {
    margin: 0;
    font-size: .85rem;
    line-height: 1.55;
    flex: 1;
}

.cookie-consent-text a {
    color: var(--brand-400);
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
}

.cookie-consent .btn { flex-shrink: 0; }

@media (max-width: 575.98px) {
    .cookie-consent-inner {
        flex-wrap: wrap;
        gap: .75rem;
    }

    .cookie-consent-icon { display: none; }
    .cookie-consent .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   7e. YUKARI ÇIK + İÇERİĞE GEÇ
   -------------------------------------------------------------------------- */
.back-to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1030;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: var(--brand-500);
    color: #fff;
    font-size: .9rem;
    cursor: pointer;
    box-shadow: var(--shadow-brand);
    animation: btt-in .25s var(--ease);
    transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.back-to-top:hover {
    background: var(--brand-600);
    transform: translateY(-3px);
}

@keyframes btt-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Çerez bildirimi açıkken çakışmayı önle */
.cookie-consent.is-visible ~ .back-to-top { bottom: 5.5rem; }

.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 2000;
    padding: .7rem 1.15rem;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    background: var(--brand-500);
    color: #fff;
    font-weight: 600;
    font-size: .88rem;
    transition: top .18s var(--ease);
}

.skip-link:focus {
    top: 0;
    color: #fff;
}

#mainContent:focus { outline: none; }

/* --------------------------------------------------------------------------
   8. YARDIMCI SINIFLAR
   -------------------------------------------------------------------------- */
.text-map-green {
    color: var(--map-green) !important;
}

.bg-map-pattern {
    background-color: var(--surface-alt);
    background-image: radial-gradient(rgb(148 163 184 / .45) .5px, transparent .5px);
    background-size: 22px 22px;
}

.backdrop-blur {
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
}

/* Görsel yükleme sırasında düzen kaymasını azalt */
img {
    max-width: 100%;
    height: auto;
}

/* Bootstrap gutter düzeltmesi
   .row.g-5 satırın negatif kenar boşluğunu 24px'e çıkarır ama .container
   yalnızca 12px iç boşluk verir; aradaki fark küçük ekranlarda 12px yatay
   kaymaya yol açar. Dar ekranlarda gutter'ı container ile hizalıyoruz. */
@media (max-width: 767.98px) {
    .row.g-5,
    .row.gx-5 {
        --bs-gutter-x: 1.5rem;
    }
}

/* --------------------------------------------------------------------------
   9. HATA SAYFASI
   -------------------------------------------------------------------------- */
.error-page {
    min-height: calc(100vh - var(--nav-h) - 200px);
    display: flex;
    align-items: center;
    padding: 4rem 0;
    background-color: var(--surface-alt);
    background-image: radial-gradient(rgb(148 163 184 / .4) .5px, transparent .5px);
    background-size: 22px 22px;
}

.error-card {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
    padding: 3rem 2.25rem 2.5rem;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.error-code {
    position: absolute;
    top: -.35em;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11rem;
    font-weight: 800;
    line-height: 1;
    color: var(--surface-sunken);
    letter-spacing: -0.05em;
    pointer-events: none;
    user-select: none;
}

.error-icon {
    position: relative;
    width: 68px;
    height: 68px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--brand-500), var(--accent-teal));
    color: #fff;
    font-size: 1.6rem;
    box-shadow: var(--shadow-brand);
}

.error-title {
    position: relative;
    font-size: 1.6rem;
    margin-bottom: .75rem;
}

.error-message {
    position: relative;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.error-actions {
    position: relative;
    display: flex;
    gap: .75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.error-request-id {
    position: relative;
    margin: 2rem 0 0;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    font-size: .8rem;
    color: var(--text-muted);
}

.error-request-id code {
    font-family: var(--font-mono);
    font-size: .78rem;
    color: var(--text-body);
    background: var(--surface-sunken);
    padding: .15rem .4rem;
    border-radius: 4px;
}

/* --------------------------------------------------------------------------
   10. ERİŞİLEBİLİRLİK / YAZDIRMA
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

@media print {
    #mainNav, footer, .btn { display: none !important; }
    #mainContent { padding-top: 0; }
    body { color: #000; background: #fff; }
}

/* --------------------------------------------------------------------------
   11. GÖRÜNÜRLÜĞE GİRİNCE BELİRME (.reveal)
   Gizleme yalnızca JS çalışıyorsa uygulanır (html.js sınıfı site.js
   tarafından eklenir); böylece betik yüklenmezse içerik görünür kalır.
   -------------------------------------------------------------------------- */
.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .55s var(--ease), transform .55s var(--ease);
}

.js .reveal.is-revealed {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .js .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
