/* ==================================================
   GDPR stránka
================================================== */


.gdpr-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 40px;
    align-items: start;
    margin-top: 8px;
}

/* Postranní navigace */
.gdpr-toc {
    position: sticky;
    top: 24px;
    background: #fff;
    border: 1px solid #dbe4f0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-medium);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.gdpr-toc-title {
    display: block;
    padding: 10px 18px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #fff;
    background: var(--primary-color);
    flex-shrink: 0;
    order: 0;
}

.gdpr-toc ol {
    order: 1;
}

.gdpr-toc ol {
    margin: 0;
    padding: 10px 0;
    list-style: none;
    counter-reset: toc-counter;
}

.gdpr-toc li {
    counter-increment: toc-counter;
}

.gdpr-toc a {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 7px 18px;
    font-size: 0.86rem;
    color: #4b5563;
    text-decoration: none;
    line-height: 1.35;
    transition: background 0.12s ease, color 0.12s ease;
}

.gdpr-toc a::before {
    content: counter(toc-counter) ".";
    flex-shrink: 0;
    font-weight: 700;
    font-size: 0.78rem;
    color: var(--primary-color);
    width: 18px;
}

.gdpr-toc a:hover {
    background: #f4f8fd;
    color: var(--primary-color);
}

/* Obsah */
.gdpr-content {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

.gdpr-section {
    padding: 32px 0;
    border-bottom: 1px solid #edf2fa;
}

.gdpr-section:first-child {
    padding-top: 0;
}

.gdpr-section:last-child {
    border-bottom: none;
}

.gdpr-section h3 {
    margin-bottom: 14px;
    font-size: 1.15rem;
    color: var(--text-color);
}

.gdpr-section h4 {
    margin: 22px 0 10px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-color);
}

.gdpr-section p {
    margin-bottom: 12px;
    color: #4b5563;
    line-height: 1.7;
}

.gdpr-section p:last-child {
    margin-bottom: 0;
}

.gdpr-section a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.gdpr-section a:hover {
    text-decoration: underline;
}

/* Info box (správce) */
.gdpr-box {
    margin: 14px 0;
    padding: 16px 20px;
    background: #f4f8fd;
    border-left: 4px solid var(--primary-color);
    border-radius: 0 8px 8px 0;
}

.gdpr-box p {
    margin-bottom: 4px;
}

/* Karta účelu */
.gdpr-purpose-card {
    margin: 14px 0;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #dbe4f0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-medium);
}

.gdpr-purpose-title {
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 0.97rem;
    color: var(--text-color);
}

.gdpr-legal-basis {
    margin-top: 10px;
    padding: 10px 14px;
    background: #f4f8fd;
    border-radius: 8px;
}

/* Tabulka */
.gdpr-table-wrap {
    margin: 14px 0;
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-lg);
    border: 1px solid #dbe4f0;
    box-shadow: var(--shadow-medium);
    box-sizing: border-box;
}

.gdpr-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.gdpr-table thead {
    background: var(--primary-color);
}

.gdpr-table th {
    padding: 11px 16px;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gdpr-table td {
    padding: 12px 16px;
    color: #374151;
    border-bottom: 1px solid #f0f4fb;
    line-height: 1.5;
}

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

/* Badges */
.gdpr-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.gdpr-badge--yes {
    background: #fef3c7;
    color: #92400e;
}

.gdpr-badge--no {
    background: #d1fae5;
    color: #065f46;
}

/* Práva – grid */
.gdpr-rights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 16px 0;
}

.gdpr-right-item {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #dbe4f0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-medium);
}

.gdpr-right-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 2px;
}

.gdpr-right-item strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text-color);
}

.gdpr-right-item p {
    margin: 0;
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.55;
}

/* Tlačítko správy cookies */
.gdpr-btn-cookies {
    margin-top: 14px;
    padding: 10px 20px;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
    background: #fff;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.gdpr-btn-cookies:hover {
    background: var(--primary-color);
    color: #fff;
}

/* ==================================================
   Cookie Banner
================================================== */

#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9000;
    background: #1a2742;
    color: #e5eaf4;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.18);
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

#cookie-banner.cookie-banner--visible {
    transform: translateY(0);
}

.cookie-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1080px;
    margin: 0 auto;
    padding: 16px 24px;
}

.cookie-banner-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-banner-text strong {
    font-size: 0.95rem;
    color: #fff;
}

.cookie-banner-text span {
    color: #9db4d4;
}

.cookie-banner-text a {
    color: #7eb3f5;
    text-decoration: underline;
    font-weight: 600;
}

.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 20px;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.cookie-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.cookie-btn--primary {
    background: var(--primary-color);
    color: #fff;
}

.cookie-btn--secondary {
    background: transparent;
    color: #e5eaf4;
    border: 1.5px solid rgba(255, 255, 255, 0.45);
}

/* ==================================================
   Map placeholder (bez souhlasu)
================================================== */

.map-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
    background: #f0f4fb;
    border-radius: var(--radius-lg);
}

.map-placeholder-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    padding: 24px;
}

.map-placeholder-icon {
    font-size: 2.4rem;
    opacity: 0.4;
}

.map-placeholder-inner p {
    margin: 0;
    font-size: 0.9rem;
    color: #6b7280;
    max-width: 260px;
    line-height: 1.55;
}

.map-accept-btn {
    padding: 9px 18px;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.map-accept-btn:hover {
    opacity: 0.88;
}

/* ==================================================
   Responsive – tablet
================================================== */

@media (max-width: 860px) {
    .gdpr-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .gdpr-toc {
        position: static;
    }

    .gdpr-rights-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================================================
   Responsive – mobil
================================================== */

@media (max-width: 640px) {
    /* TOC – skrýt na mobilu */
    .gdpr-toc {
        display: none;
    }

    /* Tabulky – stacked card layout */
    .gdpr-table-wrap {
        border: none;
        box-shadow: none;
        background: transparent;
        overflow-x: visible;
    }

    .gdpr-table thead {
        display: none;
    }

    .gdpr-table,
    .gdpr-table tbody {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .gdpr-table tr {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px 20px;
        padding: 16px;
        background: #fff;
        border: 1px solid #dbe4f0;
        border-radius: 12px;
        box-shadow: var(--shadow-medium);
    }

    .gdpr-table td {
        display: flex;
        flex-direction: column;
        gap: 4px;
        padding: 0;
        border: none;
        font-size: 0.93rem;
        color: var(--text-color);
    }

    /* Buňky, které mají zabrat celý řádek (dlouhý text – účel) */
    .gdpr-table td:nth-child(3) {
        grid-column: 1 / -1;
    }

    .gdpr-table td::before {
        content: attr(data-label);
        font-size: 0.68rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--primary-color);
    }

    /* Cookie banner */
    .cookie-banner-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 16px 18px;
    }

    .cookie-banner-actions {
        width: 100%;
    }

    .cookie-btn {
        flex: 1;
        text-align: center;
    }
}
