/* =====================================================================
   EPIC — yasal sayfalar (KVKK, Çerez Politikası, Çalışan Adayı, Açık Rıza)
   Temel katmanlar index.html'deki satır içi CSS ile aynıdır (renkler,
   sıfırlama, arka plan, konteyner, footer); altta okuma sütunu stilleri.
   ===================================================================== */
:root {
    --epic-blue: #1e5a9e;
    --epic-blue-dark: #143f73;
    --epic-blue-light: #5b8cc4;
    --gold: #c9a961;
    --gold-light: #e3c98a;
    --cream: #faf8f4;
    --ink: #1a1a1a;
    --muted: #6b6b6b;
}

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

html, body {
    min-height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 300;
    background: var(--cream);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Arka plan katmanları (index.html ile aynı) */
.bg-gradient {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse at top left, rgba(30, 90, 158, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(201, 169, 97, 0.06) 0%, transparent 50%),
        linear-gradient(180deg, #faf8f4 0%, #f4f0e8 100%);
}

.bg-noise {
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: 0.025;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.orbs {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--epic-blue-light), transparent);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--gold-light), transparent);
    bottom: -15%;
    right: -10%;
    animation-delay: -7s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--epic-blue), transparent);
    top: 40%;
    right: 20%;
    opacity: 0.15;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -40px) scale(1.05); }
    66% { transform: translate(-20px, 30px) scale(0.95); }
}

/* Düzen */
.container {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: 2.5rem clamp(1.5rem, 5vw, 4rem);
    position: relative;
}

/* Üst bölüm: logo -> ana sayfa */
.legal-header {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: fadeDown 1.2s ease 0.2s forwards;
}

.legal-logo {
    display: inline-block;
    line-height: 0;
    border-radius: 8px;
}

.legal-logo img {
    width: clamp(120px, 18vw, 170px);
    height: auto;
    display: block;
}

.legal-logo:focus-visible {
    outline: 2px solid var(--epic-blue);
    outline-offset: 4px;
}

/* Sayfa başlığı */
.legal-main {
    flex: 1;
    width: 100%;
    max-width: 880px;
    margin: 0 auto;
    padding: 2.5rem 0 3rem;
    opacity: 0;
    animation: fadeUp 1.2s ease 0.4s forwards;
}

.legal-crumb {
    text-align: center;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 400;
    margin-bottom: 1.2rem;
}

.legal-crumb a {
    color: var(--muted);
    text-decoration: none;
}

.legal-crumb a:hover {
    color: var(--epic-blue);
}

.legal-crumb .sep {
    display: inline-block;
    margin: 0 0.8em;
    color: var(--gold);
}

.legal-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.7rem, 3.8vw, 2.7rem);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.01em;
    text-align: center;
    color: var(--ink);
}

.legal-divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 1.8rem auto 2.2rem;
}

/* Okuma sütunu (acik şablon gövdesi: h3, p, ul, table.table-bordered) */
.legal-content {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(30, 90, 158, 0.12);
    border-radius: 16px;
    padding: clamp(1.4rem, 4vw, 3rem);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--ink);
    overflow-wrap: break-word;
}

.legal-content h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.45rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--epic-blue-dark);
    margin: 2.2rem 0 0.7rem;
}

.legal-content > h3:first-child {
    margin-top: 0;
}

.legal-content p {
    margin: 0 0 1rem;
}

.legal-content ul {
    margin: 0 0 1rem 1.3rem;
}

.legal-content li {
    margin-bottom: 0.4rem;
}

.legal-content strong {
    font-weight: 500;
}

.legal-content em {
    color: var(--muted);
}

.legal-content a {
    color: var(--epic-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

.legal-content a:hover {
    color: var(--epic-blue-dark);
}

.legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.2rem;
    font-size: 0.86rem;
    line-height: 1.55;
    background: rgba(255, 255, 255, 0.7);
}

.legal-content th,
.legal-content td {
    border: 1px solid rgba(26, 26, 26, 0.14);
    padding: 0.6rem 0.75rem;
    text-align: left;
    vertical-align: top;
}

.legal-content th {
    font-weight: 500;
    background: rgba(30, 90, 158, 0.06);
    color: var(--epic-blue-dark);
}

/* Footer (index.html ile aynı) */
footer {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.9rem;
    padding-top: 2rem;
    opacity: 0;
    animation: fadeUp 1.2s ease 1s forwards;
    font-size: 0.78rem;
    color: var(--muted);
    letter-spacing: 0.05em;
}

footer a {
    color: var(--epic-blue);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

footer a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: var(--epic-blue);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

footer a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

footer a:hover {
    color: var(--epic-blue-dark);
}

.footer-right {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(30, 90, 158, 0.25);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icons a::after {
    display: none;
}

.social-icons a:hover {
    background: var(--epic-blue);
    border-color: var(--epic-blue);
    transform: translateY(-2px);
}

.social-icons a:hover svg {
    stroke: white;
}

.social-icons svg {
    width: 14px;
    height: 14px;
    stroke: var(--epic-blue);
    transition: stroke 0.3s ease;
}

.footer-legal {
    text-align: right;
    line-height: 1.9;
}

.footer-legal a {
    white-space: nowrap;
}

/* Animasyonlar */
@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobil */
@media (max-width: 640px) {
    .container {
        padding: 1.5rem;
    }

    .legal-main {
        padding: 1.8rem 0 2rem;
    }

    .legal-crumb {
        font-size: 0.65rem;
        letter-spacing: 0.2em;
    }

    .legal-content {
        font-size: 0.92rem;
    }

    .legal-content h3 {
        font-size: 1.3rem;
    }

    /* Geniş tablolar sayfayı taşırmasın; tablo kendi içinde kayar */
    .legal-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        font-size: 0.8rem;
    }

    .legal-content thead th,
    .legal-content thead + tbody td {
        min-width: 7.5rem;
    }

    .legal-content thead th:nth-child(4),
    .legal-content thead + tbody td:nth-child(4) {
        min-width: 15rem;
    }

    footer {
        flex-direction: column;
        align-items: center;
        gap: 1.2rem;
        text-align: center;
    }

    .footer-right {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-legal {
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Çerez kartı v3: sitenin miras stillerini acik.com görünümüne eşitler (şablon değiştirilmez; yazı ailesi bilerek miras kalır) */
.ck3.ck3-card, .ck3.ck3-overlay { font-weight: 400; }
.ck3.ck3-overlay { line-height: 1.5; color: #555; }
.ck3.ck3-card .ck3-btn, .ck3.ck3-overlay .ck3-btn, .ck3.ck3-overlay .ck3-x { -webkit-appearance: button; appearance: button; }
.ck3.ck3-overlay .ck3-sw { font-size: inherit; line-height: inherit; }
.ck3.ck3-card .ck3-links a, .ck3.ck3-overlay .ck3-plinks a { text-decoration: none; }

@media print {
    .bg-gradient, .bg-noise, .orbs, .legal-header, footer { display: none !important; }
    .legal-main, .legal-header, footer { opacity: 1 !important; animation: none !important; }
    .legal-content { background: none; border: 0; padding: 0; }
}
