/* ============================================================
   LEGAL DOC — Privacy Policy & Cookie Policy (PHP nativo)
   Prefisso CONDIVISO: tf-ld-*
   Usato da: page-templates/privacy-policy.php, cookie-policy.php
   v4.2.0
   ============================================================ */

.tf-ld-page {
    --tf-ld-blue: #0077b6;
    --tf-ld-navy: #023e8a;
    --tf-ld-text: #2d3436;
    --tf-ld-text-soft: #5a6c72;
    --tf-ld-border: #e0e0e0;
    font-family: 'Open Sans', sans-serif;
    color: var(--tf-ld-text);
    line-height: 1.8;
}

.tf-ld-container { max-width: 940px; margin: 0 auto; padding: 0 20px; }

/* ---------- HERO ---------- */
.tf-ld-hero {
    background: linear-gradient(135deg, #003366 0%, #0077b6 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}
.tf-ld-hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
}
.tf-ld-hero-sub { font-size: 16px; color: rgba(255, 255, 255, 0.82); margin: 0; }

/* ---------- BREADCRUMB ---------- */
.tf-ld-breadcrumb-bar { background: #f8f9fa; padding: 12px 0; }
.tf-ld-breadcrumb { font-size: 14px; color: var(--tf-ld-text-soft); }
.tf-ld-breadcrumb a { color: #04262d; text-decoration: none; }
.tf-ld-breadcrumb a:hover { text-decoration: underline; }
.tf-ld-breadcrumb span { margin: 0 7px; }

/* ---------- CONTENT ---------- */
.tf-ld-content { padding: 56px 20px 70px; }

.tf-ld-intro { text-align: center; margin-bottom: 44px; padding-bottom: 30px; border-bottom: 3px solid var(--tf-ld-blue); }
.tf-ld-intro-title { font-family: 'Poppins', sans-serif; font-size: 30px; font-weight: 700; color: var(--tf-ld-blue); margin: 0 0 10px; }
.tf-ld-intro-sub { color: var(--tf-ld-text-soft); font-size: 15px; margin: 0; }

/* ---------- SEZIONI ---------- */
.tf-ld-section { margin-bottom: 38px; }
.tf-ld-section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--tf-ld-blue);
    margin: 0 0 8px;
}
.tf-ld-section-divider { height: 2px; background: var(--tf-ld-blue); opacity: 0.18; border: none; margin: 0 0 18px; }

/* ---------- PROSE ---------- */
.tf-ld-prose { font-size: 15px; line-height: 1.8; color: var(--tf-ld-text); }
.tf-ld-prose p { margin: 0 0 14px; }
.tf-ld-prose p:last-child { margin-bottom: 0; }
.tf-ld-prose a { color: var(--tf-ld-blue); font-weight: 600; text-decoration: none; }
.tf-ld-prose a:hover { text-decoration: underline; }
.tf-ld-prose strong { color: var(--tf-ld-navy); font-weight: 700; }
.tf-ld-prose h3, .tf-ld-subhead {
    font-family: 'Poppins', sans-serif;
    font-size: 16.5px;
    font-weight: 700;
    color: var(--tf-ld-navy);
    margin: 22px 0 8px;
}
.tf-ld-prose h3:first-child { margin-top: 0; }
.tf-ld-prose ul, .tf-ld-prose .ul-list { margin: 14px 0; padding-left: 0; list-style: none; }
.tf-ld-prose ul li, .tf-ld-prose .ul-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.7;
}
.tf-ld-prose ul li::before, .tf-ld-prose .ul-list li::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 11px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--tf-ld-blue);
}

/* ---------- INFO BOX ---------- */
.tf-ld-infobox, .tf-ld-prose .info-box {
    background: #e8f4f8;
    border: 1px solid #b8dce8;
    border-left: 4px solid var(--tf-ld-blue);
    border-radius: 8px;
    padding: 20px 24px;
    margin: 18px 0 0;
    font-size: 14.5px;
    line-height: 1.7;
}
.tf-ld-infobox strong, .tf-ld-prose .info-box strong { color: var(--tf-ld-navy); }
.tf-ld-prose .tf-ld-infobox { margin: 16px 0; }
.tf-ld-prose .tf-ld-infobox p { margin: 0 0 6px; }
.tf-ld-prose .tf-ld-infobox p:last-child { margin-bottom: 0; }
.tf-ld-infobox a, .tf-ld-prose .info-box a { color: var(--tf-ld-blue); font-weight: 600; text-decoration: none; }
.tf-ld-infobox a:hover { text-decoration: underline; }

/* ---------- TABELLE ---------- */
.tf-ld-prose table, .tf-ld-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.tf-ld-prose table thead th, .tf-ld-table thead th {
    background: var(--tf-ld-blue);
    color: #fff;
    text-align: left;
    padding: 12px 14px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 13.5px;
}
.tf-ld-prose table td, .tf-ld-table td {
    padding: 11px 14px;
    border-bottom: 1px solid #e6ecf1;
    vertical-align: top;
}
.tf-ld-prose table tbody tr:nth-child(even), .tf-ld-table tbody tr:nth-child(even) { background: #f6f9fb; }

/* tag tipologia cookie */
.tf-ld-tag, .cookie-type {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
}
.tf-ld-tag.necessary, .cookie-type.necessary { background: #d1f3e0; color: #14794a; }
.tf-ld-tag.analytics, .cookie-type.analytics { background: #d6e9fb; color: #1763a6; }
.tf-ld-tag.marketing, .cookie-type.marketing { background: #fde2cf; color: #b5521a; }
.tf-ld-tag.preferences, .cookie-type.preferences { background: #ece1fb; color: #6a3bb0; }

/* ---------- GRIGLIA DIRITTI (Privacy sez. 8) ---------- */
.tf-ld-rights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 18px 0 6px;
}
.tf-ld-right {
    background: #f8f9fa;
    border: 1px solid var(--tf-ld-border);
    border-radius: 10px;
    padding: 20px 18px;
}
.tf-ld-right-ico { font-size: 24px; margin-bottom: 8px; }
.tf-ld-right h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--tf-ld-navy);
    margin: 0 0 6px;
}
.tf-ld-right p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--tf-ld-text-soft); }

/* ---------- FOOTER LINE ---------- */
.tf-ld-footer-line {
    text-align: center;
    margin-top: 46px;
    padding-top: 28px;
    border-top: 1px solid var(--tf-ld-border);
}
.tf-ld-footer-line p { font-size: 13px; color: var(--tf-ld-text-soft); line-height: 1.7; margin: 0; }
.tf-ld-footer-line strong { color: var(--tf-ld-text); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .tf-ld-hero { padding: 56px 0; }
    .tf-ld-hero-title { font-size: 34px; }
    .tf-ld-content { padding: 44px 20px 56px; }
    .tf-ld-intro-title { font-size: 25px; }
    .tf-ld-section-title { font-size: 20px; }
    .tf-ld-rights { grid-template-columns: 1fr 1fr; }
    /* tabelle scrollabili su mobile */
    .tf-ld-prose table, .tf-ld-table { display: block; overflow-x: auto; white-space: nowrap; }
}

@media (max-width: 480px) {
    .tf-ld-container { padding: 0 16px; }
    .tf-ld-hero-title { font-size: 28px; }
    .tf-ld-intro-title { font-size: 22px; }
    .tf-ld-rights { grid-template-columns: 1fr; }
}
