/*
 * hsd-legal.css — Hector Solis Digital
 * Privacy Policy + Cookie Policy
 * Usa: variabili hsd-theme.css + classi Bootstrap esistenti
 */

/* ============================================================
   SEZIONE
   ============================================================ */

.hsd-legal-section {
    padding: 64px 0 80px;
    background: var(--hsd-bg-alt);
}

/* ============================================================
   CARD CONTENITORE
   ============================================================ */

.hsd-legal-card {
    background: var(--hsd-white);
    border-radius: 16px;
    padding: 3rem 3.5rem;
    box-shadow: 0 4px 32px rgba(31, 95, 175, 0.07);
}

.hsd-legal-update {
    font-size: 0.78rem;
    color: var(--hsd-text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
}

.hsd-legal-intro {
    font-size: 0.95rem;
    line-height: 1.85;
    color: var(--hsd-text);
    padding: 1.25rem 1.5rem;
    background: var(--hsd-blue-light);
    border-left: 4px solid var(--hsd-blue);
    border-radius: 0 8px 8px 0;
    margin-bottom: 2rem;
}

/* ============================================================
   BLOCCHI
   ============================================================ */

.hsd-legal-block {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(31, 95, 175, 0.08);
}

.hsd-legal-block:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.hsd-legal-h2 {
    font-family: var(--hsd-font);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--hsd-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.hsd-legal-h3 {
    font-family: var(--hsd-font);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--hsd-text);
    margin-bottom: 0.75rem;
}

/* ============================================================
   TESTO
   ============================================================ */

.hsd-legal-card p {
    font-size: 0.92rem;
    line-height: 1.85;
    color: var(--hsd-text);
    margin-bottom: 0.75rem;
}

.hsd-legal-card a {
    color: var(--hsd-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.hsd-legal-card a:hover {
    color: var(--hsd-blue-dark);
}

/* ============================================================
   LISTA
   ============================================================ */

.hsd-legal-list {
    padding-left: 1.25rem;
    margin-bottom: 0.75rem;
}

.hsd-legal-list li {
    font-size: 0.92rem;
    line-height: 1.85;
    color: var(--hsd-text);
    margin-bottom: 0.5rem;
}

.hsd-legal-list li::marker {
    color: var(--hsd-blue);
}

/* ============================================================
   BOX TITOLARE
   ============================================================ */

.hsd-legal-box {
    background: var(--hsd-bg-alt);
    border: 1px solid rgba(31, 95, 175, 0.12);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    font-size: 0.92rem;
    line-height: 1.85;
    color: var(--hsd-text);
}

/* ============================================================
   TABELLA
   ============================================================ */

.hsd-legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    margin-top: 0.75rem;
}

.hsd-legal-table thead tr {
    background: var(--hsd-blue);
    color: #fff;
}

.hsd-legal-table thead th {
    padding: 10px 14px;
    font-weight: 700;
    text-align: left;
    letter-spacing: 0.3px;
}

.hsd-legal-table tbody tr:nth-child(even) {
    background: var(--hsd-bg-alt);
}

.hsd-legal-table tbody td {
    padding: 10px 14px;
    color: var(--hsd-text);
    border-bottom: 1px solid rgba(31, 95, 175, 0.06);
    vertical-align: top;
    line-height: 1.6;
}

.hsd-legal-table code {
    font-size: 0.82rem;
    background: var(--hsd-blue-light);
    color: var(--hsd-blue);
    padding: 2px 6px;
    border-radius: 4px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 767px) {

    .hsd-legal-card {
        padding: 2rem 1.25rem;
    }

    .hsd-legal-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}
