﻿
/**
 * Copyright (c) 2026 DNA Genics, S.L. All rights reserved.
 * 
 * Home Privacy.css styling.
 */


/*
 * Copyright (c) 2026 DNA Genics, S.L. All rights reserved.
 * 
 * Privacy policy page styling.
 */

/* Privacy Policy Page Styles - Inspired by catalogador.net layout */
/* Modern, clean, and GDPR-focused design using DnaGenics brand colors */

/* ========================================
   PAGE STRUCTURE & CONTAINER
   ======================================== */

.privacy-policy-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    font-family: var(--dnagenics-font-body);
    color: var(--dnagenics-dark);
    line-height: 1.7;
}

/* ========================================
   HEADER SECTION
   ======================================== */

.privacy-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--dnagenics-gray-200);
}

.privacy-header h1 {
    font-family: var(--dnagenics-font-accent);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dnagenics-teal);
    margin-bottom: 1rem;
}

.privacy-last-updated {
    display: inline-block;
    background: var(--dnagenics-teal-light);
    color: var(--dnagenics-teal);
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 1rem;
}

/* ========================================
   QUICK NAVIGATION
   ======================================== */

.quick-navigation {
    background: linear-gradient(135deg, var(--dnagenics-teal-light) 0%, var(--dnagenics-lime-light) 100%);
    border: 2px solid var(--dnagenics-gray-200);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 3rem;
}

.quick-navigation h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dnagenics-teal);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.quick-navigation h3 i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.quick-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.quick-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    background: white;
    border: 1px solid var(--dnagenics-gray-200);
    border-radius: var(--radius-md);
    color: var(--dnagenics-teal);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.quick-nav-link:hover {
    background: var(--dnagenics-teal);
    color: white;
    border-color: var(--dnagenics-teal);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

/* ========================================
   MAIN CONTENT LAYOUT
   ======================================== */

.privacy-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    margin-bottom: 3rem;
}

.privacy-main-content {
    min-width: 0; /* Prevents grid blowout */
}

.privacy-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* ========================================
   SECTION STYLING
   ======================================== */

.privacy-section {
    background: white;
    border: 1px solid var(--dnagenics-gray-200);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease;
}

.privacy-section:hover {
    box-shadow: var(--shadow-md);
}

.privacy-section h2 {
    font-family: var(--dnagenics-font-accent);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dnagenics-teal);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--dnagenics-lime);
}

.privacy-section h2 i {
    margin-right: 0.75rem;
    color: var(--dnagenics-lime);
    font-size: 1.5rem;
}

.privacy-section h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--dnagenics-teal-dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.privacy-section h4 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--dnagenics-teal);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.privacy-section p {
    margin-bottom: 1rem;
    color: var(--dnagenics-gray-700);
}

.privacy-section ul, .privacy-section ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.privacy-section li {
    margin-bottom: 0.5rem;
    color: var(--dnagenics-gray-700);
}

/* ========================================
   DATA TABLES
   ======================================== */

.privacy-data-table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--dnagenics-gray-200);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.privacy-data-table thead {
    background: var(--dnagenics-teal);
    color: white;
}

.privacy-data-table thead th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
}

.privacy-data-table tbody tr {
    border-bottom: 1px solid var(--dnagenics-gray-200);
    transition: background 0.2s ease;
}

.privacy-data-table tbody tr:hover {
    background: var(--dnagenics-gray-50);
}

.privacy-data-table tbody tr:last-child {
    border-bottom: none;
}

.privacy-data-table tbody td {
    padding: 1rem;
    color: var(--dnagenics-gray-700);
    vertical-align: top;
}

.privacy-data-table tbody td:first-child {
    font-weight: 600;
    color: var(--dnagenics-teal-dark);
}

/* ========================================
   HIGHLIGHT BOXES
   ======================================== */

.privacy-highlight-box {
    background: var(--dnagenics-teal-light);
    border-left: 4px solid var(--dnagenics-teal);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.privacy-highlight-box.warning {
    background: rgba(245, 158, 11, 0.1);
    border-left-color: var(--warning-color);
}

.privacy-highlight-box.info {
    background: rgba(14, 165, 233, 0.1);
    border-left-color: var(--info-color);
}

.privacy-highlight-box.success {
    background: rgba(34, 197, 94, 0.1);
    border-left-color: var(--success-color);
}

.privacy-highlight-box h4 {
    color: var(--dnagenics-teal);
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.privacy-highlight-box h4 i {
    margin-right: 0.5rem;
}

.privacy-highlight-box p {
    margin-bottom: 0;
    color: var(--dnagenics-gray-700);
}

.privacy-highlight-box ul {
    margin-bottom: 0;
}

/* ========================================
   SIDEBAR HIGHLIGHTS
   ======================================== */

.privacy-highlights-sidebar {
    background: linear-gradient(135deg, var(--dnagenics-teal) 0%, var(--dnagenics-teal-dark) 100%);
    color: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.privacy-highlights-sidebar h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 0.75rem;
}

.privacy-highlights-sidebar .highlight-item {
    display: flex;
    align-items: start;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.privacy-highlights-sidebar .highlight-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.privacy-highlights-sidebar .highlight-item i {
    color: var(--dnagenics-lime);
    font-size: 1.25rem;
    margin-right: 0.75rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.privacy-highlights-sidebar .highlight-item div {
    flex: 1;
}

.privacy-highlights-sidebar .highlight-item strong {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.privacy-highlights-sidebar .highlight-item span {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ========================================
   RIGHTS AT A GLANCE
   ======================================== */

.rights-glance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.right-card {
    background: white;
    border: 2px solid var(--dnagenics-gray-200);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: all 0.3s ease;
    text-align: center;
}

.right-card:hover {
    border-color: var(--dnagenics-teal);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.right-card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--dnagenics-teal) 0%, var(--dnagenics-lime) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: white;
}

.right-card h4 {
    color: var(--dnagenics-teal);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.right-card p {
    color: var(--dnagenics-gray-700);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ========================================
   CONTACT INFO CARDS
   ======================================== */

.contact-info-card {
    background: var(--dnagenics-gray-50);
    border: 1px solid var(--dnagenics-gray-200);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.contact-info-card h4 {
    color: var(--dnagenics-teal);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.contact-info-card h4 i {
    margin-right: 0.5rem;
}

.contact-info-card p {
    margin-bottom: 0.5rem;
}

.contact-info-card strong {
    color: var(--dnagenics-teal-dark);
}

.contact-info-card a {
    color: var(--dnagenics-teal);
    text-decoration: none;
    font-weight: 500;
}

.contact-info-card a:hover {
    text-decoration: underline;
}

/* ========================================
   FOOTER NAVIGATION
   ======================================== */

.privacy-footer-nav {
    background: var(--dnagenics-gray-50);
    border: 1px solid var(--dnagenics-gray-200);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-top: 3rem;
    text-align: center;
}

.privacy-footer-nav h4 {
    color: var(--dnagenics-teal);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.privacy-footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.privacy-footer-links a {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: white;
    border: 1px solid var(--dnagenics-gray-300);
    border-radius: var(--radius-md);
    color: var(--dnagenics-teal);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.privacy-footer-links a:hover {
    background: var(--dnagenics-teal);
    color: white;
    border-color: var(--dnagenics-teal);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.privacy-footer-links a i {
    margin-right: 0.5rem;
}

/* ========================================
   BADGES
   ======================================== */

.privacy-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0 0.25rem;
}

.privacy-badge.success {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success-color);
}

.privacy-badge.info {
    background: rgba(14, 165, 233, 0.1);
    color: var(--info-color);
}

.privacy-badge.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 992px) {
    .privacy-content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .privacy-sidebar {
        position: static;
    }

    .privacy-highlights-sidebar {
        order: -1; /* Show sidebar first on mobile */
    }

    .rights-glance-grid {
        grid-template-columns: 1fr;
    }

    .quick-nav-grid {
        grid-template-columns: 1fr;
    }

    .privacy-header h1 {
        font-size: 2rem;
    }

    .privacy-section {
        padding: 1.5rem;
    }

    .privacy-section h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .privacy-policy-container {
        padding: 1rem 0.75rem;
    }

    .privacy-section {
        padding: 1.25rem;
    }

    .privacy-data-table {
        font-size: 0.9rem;
    }

    .privacy-data-table thead th,
    .privacy-data-table tbody td {
        padding: 0.75rem;
    }

    .privacy-footer-links {
        flex-direction: column;
        gap: 0.75rem;
    }

    .privacy-footer-links a {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .privacy-policy-container {
        max-width: 100%;
    }

    .quick-navigation {
        display: none;
    }

    .privacy-content-wrapper {
        display: block;
    }

    .privacy-sidebar {
        display: none;
    }

    .privacy-section {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .privacy-footer-nav {
        display: none;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }
}

/* ========================================
   SMOOTH SCROLLING FOR ANCHOR LINKS
   ======================================== */

html {
    scroll-behavior: smooth;
}

.privacy-section {
    scroll-margin-top: 100px; /* Account for fixed header if present */
}

