/* ================================================
   privacy.css — stili pagina Privacy Policy Keledò
   ================================================ */

/* ── Header sezione privacy ─────────────────────────── */
.privacy-header {
    background: linear-gradient(135deg, var(--fe-primary, #2d8a00), var(--fe-secondary, #1f6400));
    color: #fff;
    padding: 2.5rem 2rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    text-align: center;
}
.privacy-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff !important;
    margin-bottom: 0.5rem;
}
.privacy-header p {
    opacity: 0.9;
    margin-bottom: 0;
}

/* ── Barra ultimo aggiornamento ─────────────────────── */
.privacy-last-update {
    background: #e8f5e9;
    border-left: 4px solid var(--fe-primary, #2d8a00);
    padding: 0.75rem 1.25rem;
    border-radius: 0 0.5rem 0.5rem 0;
    margin-bottom: 1.5rem;
    font-size: 0.92rem;
}
[data-theme="dark"] .privacy-last-update {
    background: rgba(45, 138, 0, 0.15);
    color: #c8d3e0;
}

/* ── Navigazione rapida ─────────────────────────────── */
.privacy-quick-nav {
    background: var(--fe-surface, #fff);
    border: 1px solid var(--fe-border, #dee2e6);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.privacy-quick-nav h2 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--fe-primary, #2d8a00);
}
.privacy-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
}
.privacy-nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: var(--fe-bg, #f8f9fa);
    border: 1px solid var(--fe-border, #dee2e6);
    border-radius: 0.5rem;
    color: var(--fe-text, #212529);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.18s, border-color 0.18s, color 0.18s;
}
.privacy-nav-item:hover {
    background: var(--fe-primary, #2d8a00);
    border-color: var(--fe-primary, #2d8a00);
    color: #fff;
}

/* ── Sezioni ────────────────────────────────────────── */
.privacy-section {
    background: var(--fe-surface, #fff);
    border: 1px solid var(--fe-border, #dee2e6);
    border-radius: 0.75rem;
    padding: 1.75rem;
    margin-bottom: 1.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    scroll-margin-top: 80px;
}
.privacy-section h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--fe-primary, #2d8a00);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--fe-border, #dee2e6);
}
.privacy-section h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
}

/* ── Info box ───────────────────────────────────────── */
.privacy-info-box {
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
    font-size: 0.92rem;
}
.privacy-info-box.info {
    background: #e3f2fd;
    border-left: 4px solid #1565c0;
    color: #1a237e;
}
.privacy-info-box.warning {
    background: #fff8e1;
    border-left: 4px solid #f9a825;
    color: #4e342e;
}
.privacy-info-box.success {
    background: #e8f5e9;
    border-left: 4px solid var(--fe-primary, #2d8a00);
    color: #1b5e20;
}
[data-theme="dark"] .privacy-info-box.info    { background: rgba(21,101,192,.2); color: #90caf9; }
[data-theme="dark"] .privacy-info-box.warning { background: rgba(249,168,37,.15); color: #ffe082; }
[data-theme="dark"] .privacy-info-box.success { background: rgba(45,138,0,.2); color: #a5d6a7; }

/* ── Accordion ──────────────────────────────────────── */
.privacy-accordion {
    border: 1px solid var(--fe-border, #dee2e6);
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    overflow: hidden;
}
.privacy-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 1.25rem;
    cursor: pointer;
    background: var(--fe-bg, #f8f9fa);
    font-weight: 600;
    user-select: none;
    transition: background 0.18s;
}
.privacy-accordion-header:hover { background: var(--fe-border, #dee2e6); }
.privacy-accordion-icon { transition: transform 0.25s; }
.privacy-accordion.is-open .privacy-accordion-icon { transform: rotate(180deg); }
.privacy-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.privacy-accordion.is-open .privacy-accordion-content { max-height: 600px; }
.privacy-accordion-content-inner { padding: 1rem 1.25rem; }

/* ── Griglia diritti ────────────────────────────────── */
.privacy-rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1rem;
    margin: 1.25rem 0;
}
.privacy-right-card {
    background: var(--fe-bg, #f8f9fa);
    border: 1px solid var(--fe-border, #dee2e6);
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    transition: box-shadow 0.18s;
}
.privacy-right-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.privacy-right-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--fe-primary, #2d8a00);
    margin-bottom: 0.5rem;
}
.privacy-icon {
    font-size: 3rem;
    color: var(--fe-primary, #2d8a00);
}



/* ── Tabella ────────────────────────────────────────── */
.privacy-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.privacy-table th {
    background: var(--fe-primary, #2d8a00);
    color: #fff;
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
}
.privacy-table td {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--fe-border, #dee2e6);
    vertical-align: middle;
}
.privacy-table tbody tr:hover { background: var(--fe-bg, #f8f9fa); }

/* ── Card contatti ──────────────────────────────────── */
.privacy-contact-card {
    background: var(--fe-bg, #f8f9fa);
    border: 1px solid var(--fe-border, #dee2e6);
    border-radius: 0.5rem;
    padding: 1.25rem;
    margin: 1rem 0;
}
.privacy-contact-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--fe-primary, #2d8a00);
}
.privacy-contact-info { display: flex; flex-direction: column; gap: 0.75rem; }
.privacy-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.privacy-contact-icon {
    width: 2rem;
    height: 2rem;
    background: var(--fe-primary, #2d8a00);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.85rem;
}




/* ── Email anti-spam ────────────────────────────────── */
a.email-link { cursor: pointer; }
