/* =============================================
   ZORELIN — Privacy Policy
   /www/styles/privacy.css
   ============================================= */

:root {
    --bg: #08081a;
    --bg-card: #0e0e28;
    --bg-card-hover: #141438;
    --gold: #b8963e;
    --gold-light: #d4b366;
    --gold-dim: rgba(212, 168, 67, 0.12);
    --text: #c2c2d0;
    --text-muted: #6a6a80;
    --text-bright: #ededf4;
    --border: rgba(212, 168, 67, 0.08);
    --border-light: rgba(212, 168, 67, 0.18);
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', system-ui, sans-serif;
    --radius: 16px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.75;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =============================================
   Back button
   ============================================= */

.privacy-back {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 100;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    color: var(--gold-light);
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.privacy-back:hover {
    background: var(--bg-card-hover);
    border-color: var(--gold);
    color: var(--gold);
    transform: translateX(-2px);
}

.privacy-back svg {
    width: 20px;
    height: 20px;
}

/* =============================================
   Main layout
   ============================================= */

.privacy-main {
    max-width: 780px;
    margin: 0 auto;
    padding: 80px 32px 100px;
}

/* =============================================
   Header
   ============================================= */

.privacy-header {
    text-align: center;
    margin-bottom: 56px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-light);
}

.privacy-header h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-bright);
    letter-spacing: -0.01em;
    margin-bottom: 12px;
}

.privacy-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.privacy-meta-sep {
    margin: 0 8px;
    opacity: 0.5;
}

/* =============================================
   Sections
   ============================================= */

.privacy-section {
    margin-bottom: 48px;
}

.privacy-section h2 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--gold-light);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.privacy-content h3 {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-bright);
    margin-top: 28px;
    margin-bottom: 12px;
}

.privacy-content p {
    margin-bottom: 14px;
}

.privacy-content a {
    color: var(--gold-light);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.privacy-content a:hover {
    border-bottom-color: var(--gold);
}

/* =============================================
   Lists
   ============================================= */

.privacy-content ul,
.privacy-content ol {
    margin: 12px 0 18px 24px;
}

.privacy-content li {
    margin-bottom: 6px;
    padding-left: 4px;
}

.privacy-content ul li::marker {
    color: var(--gold);
}

.privacy-content ol li::marker {
    color: var(--gold-light);
    font-weight: 600;
}

/* =============================================
   Tables
   ============================================= */

.privacy-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 24px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.privacy-content thead th {
    background: var(--bg-card);
    color: var(--gold-light);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.privacy-content tbody td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.privacy-content tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.privacy-content code {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.85em;
    background: var(--bg-card);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--gold-light);
}

/* =============================================
   Cards (contact, authority)
   ============================================= */

.privacy-contact-card,
.privacy-authority-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin: 16px 0 20px;
    line-height: 1.8;
}

.privacy-authority-card {
    padding: 16px 20px;
    margin: 12px 0;
}

.privacy-contact-card strong,
.privacy-authority-card strong {
    color: var(--text-bright);
}

.privacy-contact-card a,
.privacy-authority-card a {
    color: var(--gold-light);
    text-decoration: none;
}

/* =============================================
   Badges
   ============================================= */

.privacy-badge {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--gold-dim);
    color: var(--gold-light);
    padding: 3px 10px;
    border-radius: 20px;
    margin-left: 8px;
    vertical-align: middle;
}

.privacy-badge-consent {
    background: rgba(100, 180, 255, 0.1);
    color: #8cb8e8;
}

/* =============================================
   GDPR references
   ============================================= */

.privacy-ref {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
    font-family: var(--font-body);
}

/* =============================================
   Footer
   ============================================= */

.privacy-footer {
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--border-light);
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
}

/* =============================================
   Responsive — Tablet
   ============================================= */

@media (max-width: 900px) {
    .privacy-main {
        padding: 72px 24px 80px;
    }

    .privacy-header h1 {
        font-size: 1.75rem;
    }
}

/* =============================================
   Responsive — Mobile
   ============================================= */

@media (max-width: 640px) {
    .privacy-back {
        top: 16px;
        left: 16px;
        width: 40px;
        height: 40px;
    }

    .privacy-back svg {
        width: 18px;
        height: 18px;
    }

    .privacy-main {
        padding: 64px 16px 60px;
    }

    .privacy-header {
        margin-bottom: 40px;
        padding-bottom: 28px;
    }

    .privacy-header h1 {
        font-size: 1.5rem;
    }

    .privacy-section {
        margin-bottom: 36px;
    }

    .privacy-section h2 {
        font-size: 1.2rem;
    }

    .privacy-content h3 {
        font-size: 1rem;
    }

    body {
        font-size: 15px;
    }

    /* Horizontální scroll pro tabulky na mobilu */
    .privacy-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }

    .privacy-content thead th,
    .privacy-content tbody td {
        padding: 8px 10px;
        font-size: 0.82rem;
    }

    .privacy-contact-card,
    .privacy-authority-card {
        padding: 16px 18px;
    }

    .privacy-badge {
        font-size: 0.65rem;
        padding: 2px 8px;
    }
}

/* =============================================
   Reduced motion
   ============================================= */

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}

/* =============================================
   Scrollbar (desktop)
   ============================================= */

@media (min-width: 641px) {
    ::-webkit-scrollbar {
        width: 8px;
    }

    ::-webkit-scrollbar-track {
        background: var(--bg);
    }

    ::-webkit-scrollbar-thumb {
        background: var(--border-light);
        border-radius: 4px;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: var(--gold-dim);
    }
}
