/**
 * Zásady ochrany osobních údajů a cookies - Styly
 * JERGONLAB 2025
 * Moderní design s přepínacími taby
 */

/* ========================================
   Hlavní layout
   ======================================== */
.zasady-main {
    min-height: 100vh;
    background: linear-gradient(135deg, #FAFAFA 0%, #F5F5F5 100%);
    padding-top: 80px; /* Prostor pro fixed header */
}

.zasady-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 30px;
}

/* ========================================
   Hero sekce
   ======================================== */
.zasady-hero {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease;
}

.zasady-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 900;
    color: #0A0A0A;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
    line-height: 1.1;
}

.zasady-title .highlight {
    background: linear-gradient(135deg, #D4AF37, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.zasady-subtitle {
    font-size: 1.25rem;
    color: #666;
    font-weight: 500;
}

/* ========================================
   Přepínací taby
   ======================================== */
.zasady-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    background: #FFFFFF;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.tab-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 30px;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    position: relative;
    overflow: hidden;
}

.tab-button:hover {
    background: rgba(212, 175, 55, 0.05);
    color: #0A0A0A;
}

.tab-button.active {
    background: linear-gradient(135deg, #D4AF37, #FFD700);
    color: #0A0A0A;
    border-color: #D4AF37;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
}

.tab-button svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.tab-button:hover svg {
    transform: scale(1.1);
}

.tab-button.active svg {
    animation: rotateOnce 0.5s ease;
}

@keyframes rotateOnce {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================
   Obsah tabů
   ======================================== */
.zasady-content {
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Content wrapper s navigací
   ======================================== */
.content-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
    padding: 50px;
}

/* ========================================
   Rychlá navigace (sidebar)
   ======================================== */
.quick-nav {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.quick-nav h3 {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 20px;
}

.quick-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-nav li {
    margin-bottom: 2px;
}

.quick-nav a {
    display: block;
    padding: 10px 15px;
    color: #666;
    text-decoration: none;
    font-size: 0.9375rem;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.quick-nav a:hover {
    color: #D4AF37;
    background: rgba(212, 175, 55, 0.05);
    border-left-color: rgba(212, 175, 55, 0.3);
}

.quick-nav a.active {
    color: #D4AF37;
    background: rgba(212, 175, 55, 0.1);
    border-left-color: #D4AF37;
    font-weight: 600;
}

/* ========================================
   Hlavní obsah
   ======================================== */
.content-main {
    max-width: 800px;
}

.content-section {
    margin-bottom: 60px;
    scroll-margin-top: 100px;
}

.content-section h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #0A0A0A;
    margin-bottom: 25px;
    letter-spacing: -0.5px;
    position: relative;
    padding-bottom: 15px;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #D4AF37, #FFD700);
}

.content-section h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #0A0A0A;
    margin: 30px 0 15px;
}

.content-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #333;
    margin: 20px 0 10px;
}

.content-section p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
}

.content-section ul {
    margin: 20px 0;
    padding-left: 25px;
}

.content-section li {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 10px;
}

.content-section strong {
    color: #0A0A0A;
    font-weight: 600;
}

/* ========================================
   Info boxy
   ======================================== */
.info-box {
    background: linear-gradient(135deg, #F8F9FA 0%, #FFFFFF 100%);
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
    position: relative;
    overflow: hidden;
}

.info-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #D4AF37, #FFD700);
}

.info-box h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0A0A0A;
    margin-bottom: 15px;
}

.info-box.warning {
    background: linear-gradient(135deg, #FFF9E6 0%, #FFFEF5 100%);
    border-color: rgba(212, 175, 55, 0.3);
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.contact-list li {
    padding: 5px 0;
    color: #444;
}

.contact-list a {
    color: #D4AF37;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-list a:hover {
    color: #FFD700;
    text-decoration: underline;
}

.note {
    font-size: 0.9375rem;
    color: #666;
    font-style: italic;
    margin-top: 10px;
}

/* ========================================
   Category boxy
   ======================================== */
.category-box {
    background: #FAFAFA;
    border-radius: 10px;
    padding: 25px;
    margin: 25px 0;
}

.category-box h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0A0A0A;
    margin-bottom: 20px;
}

.category-box h3 svg {
    stroke: #D4AF37;
}

.category-box ul {
    list-style: none;
    padding: 0;
}

.category-box li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.category-box li:last-child {
    border-bottom: none;
}

/* ========================================
   Purpose grid
   ======================================== */
.purpose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.purpose-card {
    background: linear-gradient(135deg, #FAFAFA 0%, #FFFFFF 100%);
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
}

.purpose-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
}

.purpose-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(255, 215, 0, 0.1));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.purpose-icon svg {
    stroke: #D4AF37;
}

.purpose-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0A0A0A;
    margin-bottom: 12px;
}

.purpose-card p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
}

.legal-basis {
    display: inline-block;
    font-size: 0.8125rem;
    color: #999;
    font-style: italic;
    background: rgba(212, 175, 55, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
}

/* ========================================
   Retention table
   ======================================== */
.retention-table {
    background: #FAFAFA;
    border-radius: 10px;
    overflow: hidden;
    margin: 30px 0;
}

.retention-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.retention-row:last-child {
    border-bottom: none;
}

.retention-row:nth-child(even) {
    background: #FFFFFF;
}

.retention-type {
    font-weight: 600;
    color: #0A0A0A;
}

.retention-period {
    color: #666;
    text-align: right;
}

/* ========================================
   Recipients grid
   ======================================== */
.recipients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.recipient-box {
    background: linear-gradient(135deg, #F5F5F5 0%, #FAFAFA 100%);
    border-radius: 12px;
    padding: 30px;
}

.recipient-box h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0A0A0A;
    margin-bottom: 15px;
}

.recipient-box p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 15px;
}

.recipient-box ul {
    list-style: none;
    padding: 0;
}

.recipient-box li {
    padding: 8px 0 8px 25px;
    position: relative;
    color: #444;
}

.recipient-box li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #D4AF37;
    font-weight: bold;
}

/* ========================================
   Rights grid
   ======================================== */
.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.right-card {
    background: #FFFFFF;
    border: 2px solid #F0F0F0;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
}

.right-card:hover {
    border-color: rgba(212, 175, 55, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.right-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.right-header svg {
    stroke: #D4AF37;
    flex-shrink: 0;
}

.right-header h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0A0A0A;
    margin: 0;
}

.right-card p {
    font-size: 0.9375rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* ========================================
   Security grid
   ======================================== */
.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.security-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05), rgba(255, 215, 0, 0.05));
    border-radius: 10px;
    transition: all 0.3s ease;
}

.security-item:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(255, 215, 0, 0.1));
}

.security-item svg {
    stroke: #D4AF37;
    margin-bottom: 12px;
}

.security-item h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #0A0A0A;
    margin: 0;
}

/* ========================================
   Contact box
   ======================================== */
.contact-box {
    background: linear-gradient(135deg, #D4AF37, #FFD700);
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
    text-align: center;
}

.contact-box h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0A0A0A;
    margin-bottom: 20px;
}

.contact-items {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    text-decoration: none;
    color: #0A0A0A;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: #FFFFFF;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-item svg {
    stroke: #D4AF37;
}

/* ========================================
   Cookie types
   ======================================== */
.cookie-type {
    background: #FAFAFA;
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
    border: 1px solid #E0E0E0;
}

.cookie-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.cookie-header svg {
    stroke: #D4AF37;
    flex-shrink: 0;
}

.cookie-header h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #0A0A0A;
    margin: 0;
}

.cookie-examples {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.cookie-examples h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.cookie-examples ul {
    list-style: none;
    padding: 0;
}

.cookie-examples li {
    padding: 8px 0 8px 25px;
    position: relative;
    color: #666;
}

.cookie-examples li::before {
    content: '•';
    position: absolute;
    left: 10px;
    color: #D4AF37;
    font-weight: bold;
}

.cookie-note {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05), rgba(255, 215, 0, 0.05));
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.cookie-note svg {
    stroke: #D4AF37;
    flex-shrink: 0;
    margin-top: 2px;
}

.cookie-note p {
    margin: 0;
    color: #666;
}

/* ========================================
   Browser instructions
   ======================================== */
.browser-instructions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.browser-item {
    background: #FAFAFA;
    border-radius: 10px;
    padding: 25px;
}

.browser-item h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.125rem;
    font-weight: 700;
    color: #0A0A0A;
    margin-bottom: 15px;
}

.browser-item svg {
    stroke: #D4AF37;
}

.browser-item ol {
    margin: 0;
    padding-left: 20px;
}

.browser-item li {
    padding: 5px 0;
    color: #666;
    font-size: 0.9375rem;
}

/* ========================================
   Warning box
   ======================================== */
.warning-box {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: linear-gradient(135deg, #FFF5F5, #FFFAFA);
    border: 2px solid #FFD700;
    border-radius: 10px;
    padding: 20px;
    margin: 30px 0;
}

.warning-box svg {
    stroke: #D4AF37;
    flex-shrink: 0;
}

.warning-box p {
    margin: 0;
    color: #666;
    font-weight: 500;
}

/* ========================================
   Duration grid
   ======================================== */
.duration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.duration-card {
    background: #FFFFFF;
    border: 2px solid #F0F0F0;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.duration-card:hover {
    border-color: rgba(212, 175, 55, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.duration-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(255, 215, 0, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.duration-icon svg {
    stroke: #D4AF37;
}

.duration-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0A0A0A;
    margin-bottom: 12px;
}

.duration-card p {
    font-size: 0.9375rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* ========================================
   Date info
   ======================================== */
.date-info {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05), rgba(255, 215, 0, 0.05));
    border-left: 4px solid #D4AF37;
    padding: 20px;
    margin: 30px 0;
}

.date-info p {
    margin: 0;
    font-size: 1.0625rem;
    color: #444;
}

.date-info strong {
    color: #D4AF37;
    font-weight: 700;
}

/* ========================================
   Back button
   ======================================== */
.back-button-wrapper {
    text-align: center;
    margin-top: 60px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    background: linear-gradient(135deg, #D4AF37, #FFD700);
    color: #0A0A0A;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.back-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.4);
}

.back-button svg {
    transition: transform 0.3s ease;
}

.back-button:hover svg {
    transform: translateX(-3px);
}

/* ========================================
   Responzivní design
   ======================================== */
@media (max-width: 1200px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .quick-nav {
        position: static;
        background: #FAFAFA;
        border-radius: 10px;
        padding: 25px;
    }
    
    .quick-nav ul {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .zasady-container {
        padding: 40px 20px;
    }
    
    .zasady-title {
        font-size: 32px;
    }
    
    .zasady-subtitle {
        font-size: 1.125rem;
    }
    
    .zasady-tabs {
        flex-direction: column;
        gap: 10px;
    }
    
    .tab-button {
        width: 100%;
        justify-content: center;
    }
    
    .content-wrapper {
        padding: 30px 20px;
    }
    
    .content-section h2 {
        font-size: 1.75rem;
    }
    
    .purpose-grid,
    .recipients-grid,
    .rights-grid {
        grid-template-columns: 1fr;
    }
    
    .retention-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .retention-period {
        text-align: left;
        font-weight: 600;
        color: #D4AF37;
    }
    
    .contact-items {
        flex-direction: column;
        align-items: stretch;
    }
    
    .contact-item {
        justify-content: center;
    }
    
    .browser-instructions {
        grid-template-columns: 1fr;
    }
    
    .duration-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .zasady-title {
        font-size: 28px;
        letter-spacing: -0.5px;
    }
    
    .tab-button {
        padding: 14px 20px;
        font-size: 0.9375rem;
    }
    
    .tab-button svg {
        width: 18px;
        height: 18px;
    }
    
    .content-section h2 {
        font-size: 1.5rem;
    }
    
    .content-section p,
    .content-section li {
        font-size: 1rem;
    }
    
    .info-box {
        padding: 20px;
    }
    
    .back-button {
        padding: 14px 30px;
        font-size: 0.875rem;
    }
}

/* ========================================
   Animace
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   Print styles
   ======================================== */
@media print {
    .zasady-main {
        padding-top: 0;
    }
    
    .header,
    .zasady-tabs,
    .quick-nav,
    .back-button-wrapper {
        display: none;
    }
    
    .tab-content {
        display: block !important;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
        padding: 0;
    }
    
    .content-section {
        page-break-inside: avoid;
    }
    
    .info-box,
    .category-box,
    .cookie-type {
        page-break-inside: avoid;
    }
}