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

:root {
    --bg-warm: #FDFBF7;
    --bg-cream: #F7F3EC;
    --bg-pink: #F9EBE9;
    --bg-mint: #E2EFE6;
    --primary: #2C4A3B;
    --primary-light: #5A7D6A;
    --primary-dark: #1E3328;
    --accent: #C4A265;
    --accent-light: #D9BF8E;
    --text-dark: #2A2A2A;
    --text-medium: #4A4A4A;
    --text-light: #7A7A7A;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(44, 62, 51, 0.06);
    --shadow-md: 0 8px 30px rgba(44, 62, 51, 0.08);
    --shadow-lg: 0 15px 50px rgba(44, 62, 51, 0.12);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--bg-warm);
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- NAWIGACJA --- */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(253, 251, 247, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(61, 90, 76, 0.08);
    transition: var(--transition);
}
.nav-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    height: 72px; display: flex; align-items: center; justify-content: space-between;
}
.logo {
    font-family: 'Playfair Display', serif; font-size: 1.35rem; font-weight: 600;
    color: var(--primary); display: flex; align-items: center; gap: 10px; text-decoration: none;
}
.logo-mark {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    color: var(--white); font-size: 1rem; font-weight: 700;
}
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
    text-decoration: none; color: var(--text-medium); font-size: 0.92rem;
    font-weight: 500; transition: var(--transition); position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 2px; background: var(--accent); transition: var(--transition);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta {
    background: var(--primary); color: var(--white) !important;
    padding: 10px 24px; border-radius: 50px; font-weight: 600; font-size: 0.88rem;
}
.nav-cta:hover { background: var(--primary-dark); }
.nav-cta::after { display: none; }
.hamburger {
    display: none; flex-direction: column; gap: 5px;
    cursor: pointer; background: none; border: none; padding: 8px;
}
.hamburger span { width: 24px; height: 2px; background: var(--primary); border-radius: 2px; }

/* --- SEKCJA POLITYKI --- */
.privacy-page {
    flex: 1;
    padding: 160px 24px 100px;
    background: radial-gradient(ellipse at 50% 0%, rgba(196, 162, 101, 0.05) 0%, transparent 70%);
}

.privacy-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
    align-items: start;
}

/* Sidebar (Spis treści) */
.privacy-sidebar {
    background: var(--white);
    padding: 32px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(61, 90, 76, 0.06);
    position: sticky;
    top: 100px; /* Odstęp od góry przy przewijaniu */
}

.privacy-sidebar h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(61, 90, 76, 0.1);
}

.toc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toc-list a {
    text-decoration: none;
    color: var(--text-medium);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    display: block;
}

.toc-list a:hover {
    color: var(--accent);
    transform: translateX(4px);
}

/* Treść dokumentu */
.privacy-content {
    background: var(--white);
    padding: 56px 64px;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(61, 90, 76, 0.06);
}

.page-header {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 2px solid rgba(196, 162, 101, 0.2);
}

.page-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--primary-dark);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.page-header h1 .highlight {
    color: var(--accent);
}

.last-updated {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Typografia tekstu */
.content-body p {
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 20px;
}

.content-body h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-top: 40px;
    margin-bottom: 16px;
    scroll-margin-top: 100px; /* Zapobiega ucinaniu nagłówka przy kliknięciu w link */
}

.content-body ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.content-body li {
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 8px;
}

.content-body strong {
    color: var(--primary-dark);
}

.content-body a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.content-body a:hover {
    color: var(--accent);
}

/* --- STOPKA --- */
footer {
    background: var(--primary-dark); color: rgba(255, 255, 255, 0.6);
    padding: 48px 24px 32px;
}
.footer-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: space-between;
    align-items: center; flex-wrap: wrap; gap: 24px;
}
.footer-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem; font-weight: 600; color: var(--white);
}
.footer-links { display: flex; gap: 28px; list-style: none; flex-wrap: wrap; }
.footer-links a {
    color: rgba(255, 255, 255, 0.6); text-decoration: none;
    font-size: 0.88rem; transition: var(--transition);
}
.footer-links a:hover { color: var(--accent-light); }
.footer-copy {
    font-size: 0.82rem; color: rgba(255, 255, 255, 0.4);
    width: 100%; text-align: center; padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08); margin-top: 16px;
}
.cookie-settings-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 0.88rem;
    padding: 0;
    transition: var(--transition);
}
.cookie-settings-link:hover { color: var(--accent-light); }

/* --- RESPONSYWNOŚĆ --- */
@media (max-width: 960px) {
    .privacy-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .privacy-sidebar {
        position: static; /* Wyłączenie przyklejania na mobile */
        padding: 24px;
    }
    
    .privacy-content {
        padding: 40px 32px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; position: absolute; top: 72px; left: 0; right: 0;
        background: var(--bg-warm); flex-direction: column;
        padding: 24px; gap: 20px;
        border-bottom: 1px solid rgba(61, 90, 76, 0.08);
        box-shadow: var(--shadow-md);
    }
    .nav-links.open { display: flex; }
    .hamburger { display: flex; }
    .privacy-page { padding: 120px 20px 60px; }
    .privacy-content { padding: 32px 24px; }
    .content-body h2 { font-size: 1.3rem; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { flex-wrap: wrap; justify-content: center; }
}