/* ===================================================================
   CSS DEDYKOWANY DLA STRONY POLITYKI PRYWATNOŚCI (polityka-prywatnosci.php)
   Atlas Nieruchomości - Polityka prywatności
   =================================================================== */

/* SEKCJA POLITYKI PRYWATNOŚCI */
.privacy-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.privacy-section .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    text-align: center;
}

.privacy-section .section-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 40px;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Kontener polityki prywatności */
.privacy-container {
    max-width: 900px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    padding: 40px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.privacy-content {
    line-height: 1.8;
    color: #495057;
}

.privacy-content h1 {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
}

.privacy-content h2 {
    font-size: 1.6rem;
    color: #2c3e50;
    margin: 40px 0 20px 0;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid #28a745;
}

.privacy-content h3 {
    font-size: 1.3rem;
    color: #495057;
    margin: 30px 0 15px 0;
    font-weight: 600;
}

.privacy-content p {
    margin-bottom: 20px;
    text-align: justify;
    font-size: 1rem;
}

.privacy-content ul,
.privacy-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.privacy-content li {
    margin-bottom: 10px;
    color: #6c757d;
}

.privacy-content strong {
    color: #2c3e50;
    font-weight: 600;
}

.privacy-content em {
    color: #6c757d;
    font-style: italic;
}

/* Spis treści */
.privacy-toc {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 40px;
    border-left: 4px solid #28a745;
}

.privacy-toc h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
}

.privacy-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.privacy-toc li {
    margin-bottom: 8px;
}

.privacy-toc a {
    color: #28a745;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.privacy-toc a:hover {
    color: #1e7e34;
    text-decoration: underline;
}

/* Sekcje polityki prywatności */
.privacy-section-content {
    margin-bottom: 40px;
    padding: 25px;
    background-color: #fff;
    border-radius: 10px;
    border-left: 4px solid #e9ecef;
    transition: all 0.3s ease;
}

.privacy-section-content:hover {
    border-left-color: #28a745;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Data ostatniej aktualizacji */
.last-updated {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
    border-radius: 10px;
    margin-bottom: 30px;
    color: #6c757d;
    font-style: italic;
}

.last-updated strong {
    color: #2c3e50;
}

/* Informacje o administratorze danych */
.data-controller {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.data-controller h3 {
    color: white;
    margin-bottom: 15px;
}

.data-controller p {
    margin-bottom: 10px;
}

.data-controller a {
    color: #fff;
    text-decoration: underline;
}

.data-controller a:hover {
    text-decoration: none;
}

/* Prawa użytkownika */
.user-rights {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px;
    border-radius: 15px;
    margin: 30px 0;
    border-left: 5px solid #28a745;
}

.user-rights h3 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.user-rights ul {
    list-style: none;
    padding: 0;
}

.user-rights li {
    padding: 10px 0;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.user-rights li:last-child {
    border-bottom: none;
}

.user-rights i {
    color: #28a745;
    margin-top: 2px;
    font-size: 1.1rem;
}

/* Kontakt w sprawie danych */
.privacy-contact {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-top: 40px;
    text-align: center;
}

.privacy-contact h3 {
    color: white;
    margin-bottom: 15px;
}

.privacy-contact p {
    margin-bottom: 10px;
}

.privacy-contact a {
    color: #fff;
    text-decoration: underline;
}

.privacy-contact a:hover {
    text-decoration: none;
}

/* RESPONSYWNOŚĆ */
@media (max-width: 768px) {
    .privacy-section .section-title {
        font-size: 2rem;
    }
    
    .privacy-container {
        padding: 25px;
        margin: 0 15px;
    }
    
    .privacy-content h1 {
        font-size: 1.8rem;
    }
    
    .privacy-content h2 {
        font-size: 1.4rem;
        margin: 30px 0 15px 0;
    }
    
    .privacy-content h3 {
        font-size: 1.2rem;
        margin: 25px 0 12px 0;
    }
    
    .privacy-content p {
        font-size: 0.95rem;
        text-align: left;
    }
    
    .privacy-content ul,
    .privacy-content ol {
        padding-left: 25px;
    }
    
    .privacy-toc {
        padding: 20px;
    }
    
    .privacy-section-content {
        padding: 20px;
    }
    
    .data-controller,
    .user-rights,
    .privacy-contact {
        padding: 25px;
        margin-left: 15px;
        margin-right: 15px;
    }
}

@media (max-width: 480px) {
    .privacy-container {
        padding: 20px;
        margin: 0 10px;
    }
    
    .privacy-content h1 {
        font-size: 1.6rem;
    }
    
    .privacy-content h2 {
        font-size: 1.3rem;
    }
    
    .privacy-content h3 {
        font-size: 1.1rem;
    }
    
    .privacy-content p {
        font-size: 0.9rem;
    }
    
    .privacy-content ul,
    .privacy-content ol {
        padding-left: 20px;
    }
    
    .privacy-toc {
        padding: 15px;
    }
    
    .privacy-section-content {
        padding: 15px;
    }
    
    .data-controller,
    .user-rights,
    .privacy-contact {
        padding: 20px;
        margin-left: 10px;
        margin-right: 10px;
    }
    
    .user-rights li {
        flex-direction: column;
        gap: 5px;
        text-align: left;
    }
}

/* Animacje */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.privacy-section-content {
    animation: fadeInUp 0.6s ease forwards;
}

.privacy-section-content:nth-child(2) { animation-delay: 0.1s; }
.privacy-section-content:nth-child(3) { animation-delay: 0.2s; }
.privacy-section-content:nth-child(4) { animation-delay: 0.3s; }
