/* public/css/privacy.css */

/* Privacy Policy Specific Styles */
.privacy-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Last Updated */
.last-updated {
    text-align: right;
    font-style: italic;
    color: var(--text-secondary);
    margin-top: 1rem;
    font-size: 0.9rem;
    padding: 0.5rem;
    border-top: 1px dashed var(--border-color);
}

/* Table of Contents */
.toc {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.toc h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.toc-item {
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.toc-item:hover {
    background-color: var(--bg-primary);
    transform: translateX(5px);
}

.toc-item a {
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toc-item a:hover {
    color: var(--accent-color);
}

.toc-item i {
    font-size: 0.8rem;
    color: var(--accent-color);
}

/* Privacy Sections */
.privacy-section {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    scroll-margin-top: 80px;
}

.privacy-section:hover {
    box-shadow: var(--shadow-hover);
}

.privacy-section h2 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.privacy-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient);
    border-radius: 3px;
}

.privacy-section h3 {
    margin: 1.5rem 0 1rem;
    font-size: 1.3rem;
    color: var(--text-primary);
}

.privacy-section p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* Lists */
.privacy-section ul,
.privacy-section ol {
    color: var(--text-secondary);
    margin: 1rem 0 1rem 2rem;
}

.privacy-section li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
    position: relative;
}

.privacy-section ul li {
    list-style-type: none;
    padding-left: 1.5rem;
}

.privacy-section ul li::before {
    content: '•';
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.privacy-section ol {
    counter-reset: item;
}

.privacy-section ol li {
    counter-increment: item;
    list-style-type: none;
    padding-left: 2rem;
}

.privacy-section ol li::before {
    content: counter(item) ".";
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Highlights */
.highlight-box {
    background-color: var(--bg-primary);
    border-left: 4px solid var(--accent-color);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
}

.highlight-box p:last-child {
    margin-bottom: 0;
}

/* Table Styles */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background-color: var(--bg-primary);
    border-radius: 10px;
    overflow: hidden;
}

.data-table th {
    background: var(--gradient);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 500;
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

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

.data-table tr:hover td {
    background-color: var(--bg-secondary);
}

/* Contact Info in Privacy */
.privacy-contact {
    background-color: var(--bg-primary);
    padding: 1.5rem;
    border-radius: 15px;
    margin-top: 1.5rem;
}

.privacy-contact p {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.privacy-contact i {
    color: var(--accent-color);
    width: 20px;
}

/* Version History */
.version-history {
    margin-top: 2rem;
}

.version-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.version-item:hover {
    background-color: var(--bg-primary);
}

.version-badge {
    background: var(--gradient);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    height: fit-content;
}

.version-content {
    flex: 1;
}

.version-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.version-changes {
    color: var(--text-primary);
    font-size: 0.95rem;
}

/* Cookie Settings */
.cookie-settings {
    background-color: var(--bg-primary);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.cookie-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.cookie-option:last-child {
    border-bottom: none;
}

.cookie-info {
    flex: 1;
}

.cookie-info h4 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.cookie-info p {
    margin: 0;
    font-size: 0.9rem;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 60px;
    height: 30px;
    background-color: var(--border-color);
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.toggle-switch.active {
    background-color: var(--accent-color);
}

.toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.toggle-switch.active .toggle-slider {
    transform: translateX(30px);
}

/* Data Access Request */
.request-form {
    background-color: var(--bg-primary);
    padding: 1.5rem;
    border-radius: 15px;
    margin: 1.5rem 0;
}

.request-form .form-group {
    margin-bottom: 1rem;
}

.request-form input,
.request-form select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.request-form button {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.request-form button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Responsive */
@media (max-width: 768px) {
    .toc-grid {
        grid-template-columns: 1fr;
    }

    .data-table {
        display: block;
        overflow-x: auto;
    }

    .version-item {
        flex-direction: column;
    }

    .version-badge {
        align-self: flex-start;
    }

    .cookie-option {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .privacy-section {
        padding: 1.5rem;
    }

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

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

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .toc,
    .request-form,
    .cookie-settings {
        display: none;
    }

    .privacy-section {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}