/* ===========================
   legal.css
   Kullanım Koşulları, Gizlilik
   Politikası, Çerez Politikası
   için ortak stiller
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Poppins:wght@400;500;600;700&display=swap');

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

footer {
    position: relative;
    z-index: 2; /* Arka plan 0, içerik 1, footer 2 olsun */
    width: 100%;
    margin-top: auto; /* Sayfa az içerikli olsa bile footer'ı aşağı iter */
    background: transparent; /* İstersen renk verebilirsin */
}

:root {
    --primary:       #5b5fcf;
    --primary-light: #7b7fe8;
    --primary-dark:  #4347b0;
    --accent:        #6c63ff;
    --bg-grad-start: #7b6fd4;
    --bg-grad-mid:   #6a5bbf;
    --bg-grad-end:   #8e7de0;
    --card-bg:       #ffffff;
    --text-dark:     #1e1e2e;
    --text-body:     #3d3d5c;
    --text-muted:    #7a7a9a;
    --border:        #e8e8f0;
    --highlight-bg:  #f0f0ff;
    --radius-card:   20px;
    --radius-item:   12px;
    --shadow-card:   0 20px 60px rgba(91,95,207,0.15), 0 4px 16px rgba(0,0,0,0.08);
    --font-display:  'Nunito', sans-serif;
    --font-body:     'Poppins', sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text-body);
    background: #f4f4fb;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

/* ===========================
   LAYOUT
   =========================== */

.main-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 48px 20px 64px;
    overflow: visible;
}

.gradient-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(
        135deg,
        var(--bg-grad-start) 0%,
        var(--bg-grad-mid)   45%,
        var(--bg-grad-end)   100%
    );
}

.gradient-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.5;
}

.content-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 780px;
}

/* ===========================
   WHITE CARD
   =========================== */

.legal-white-card {
    background: var(--card-bg);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    animation: cardIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(24px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

/* ===========================
   CARD HEADER
   =========================== */

.card-header {
    background: linear-gradient(
        135deg,
        var(--primary) 0%,
        var(--primary-light) 60%,
        var(--bg-grad-end) 100%
    );
    padding: 44px 48px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.card-header::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 220px; height: 220px;
    background: rgba(255,255,255,0.07);
    border-radius: 50%;
}

.card-header::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -40px;
    width: 180px; height: 180px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.brand-logo {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 30px;
    padding: 5px 16px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.card-header h1 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.card-header .subtitle {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.78);
    font-weight: 400;
    position: relative;
    z-index: 1;
}

/* ===========================
   LEGAL BODY
   =========================== */

.legal-body {
    padding: 40px 48px 48px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ===========================
   INTRO SECTION
   =========================== */

.intro-section {
    background: var(--highlight-bg);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius-item) var(--radius-item) 0;
    padding: 18px 22px;
    margin-bottom: 12px;
}

.intro-section p {
    font-size: 0.93rem;
    line-height: 1.7;
    color: var(--text-body);
}

.intro-section strong { color: var(--primary); font-weight: 700; }

/* ===========================
   POLICY ITEMS
   =========================== */

.policy-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-item);
    padding: 24px 28px;
    background: #fff;
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.policy-item:hover {
    border-color: var(--primary-light);
    box-shadow: 0 4px 20px rgba(91,95,207,0.1);
    transform: translateY(-1px);
}

.policy-item h2 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.policy-item h2::before {
    content: '';
    display: inline-block;
    width: 8px; height: 8px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
}

.policy-item h3 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 14px 0 8px;
}

.policy-item p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--text-body);
}

.policy-item p + p { margin-top: 10px; }

/* Privacy / info highlight */
.policy-item.privacy-highlight {
    background: linear-gradient(135deg, #f0f0ff 0%, #e8e8fc 100%);
    border-color: var(--primary-light);
}

.policy-item.privacy-highlight h2 { color: var(--primary-dark); }

/* ===========================
   STYLED LISTS (ol/ul)
   =========================== */

.styled-list {
    list-style: none;
    padding: 0;
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    counter-reset: list-counter;
}

.styled-list li {
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--text-body);
    padding: 10px 14px 10px 42px;
    background: var(--highlight-bg);
    border-radius: 8px;
    position: relative;
    counter-increment: list-counter;
}

.styled-list li::before {
    content: counter(list-counter);
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px; height: 22px;
    background: var(--primary);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* alpha list (a, b, c …) */
.styled-list-alpha {
    list-style: none;
    padding: 0;
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    counter-reset: alpha-counter;
}

.styled-list-alpha li {
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--text-body);
    padding: 10px 14px 10px 42px;
    background: var(--highlight-bg);
    border-radius: 8px;
    position: relative;
    counter-increment: alpha-counter;
}

.styled-list-alpha li::before {
    content: counter(alpha-counter, lower-alpha);
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px; height: 22px;
    background: var(--primary-dark);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* bullet list */
.styled-list-bullet {
    list-style: none;
    padding: 0;
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.styled-list-bullet li {
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--text-body);
    padding: 8px 14px 8px 36px;
    background: var(--highlight-bg);
    border-radius: 8px;
    position: relative;
}

.styled-list-bullet li::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px; height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

.styled-list-bullet li strong { color: var(--primary-dark); }

/* ===========================
   PRIVACY LINK
   =========================== */

.privacy-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 1px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.privacy-link:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-dark);
}

/* ===========================
   LAST SECTION
   =========================== */

.last-section {
    border: 1px solid var(--border);
    border-radius: var(--radius-item);
    padding: 28px 28px 32px;
    background: linear-gradient(135deg, #fafafe 0%, #f4f4fb 100%);
    text-align: center;
}

.last-section h2 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
}

.last-section p {
    font-size: 0.88rem;
    line-height: 1.8;
    color: var(--text-body);
    margin-bottom: 24px;
}

.last-section p strong { color: var(--primary-dark); font-weight: 700; }

/* ===========================
   BACK HOME BUTTON
   =========================== */

.back-home-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    text-decoration: none;
    padding: 13px 38px;
    border-radius: 50px;
    box-shadow: 0 6px 20px rgba(91,95,207,0.38);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.back-home-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(91,95,207,0.48);
    opacity: 0.93;
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 600px) {
    .main-wrapper   { padding: 24px 12px 40px; }
    .card-header    { padding: 32px 24px 28px; }
    .card-header h1 { font-size: 1.6rem; }
    .legal-body     { padding: 28px 20px 32px; }
    .policy-item    { padding: 18px 16px; }
    .last-section   { padding: 22px 16px 24px; }
}
