/* --- LEGAL PAGES --- */

.legal-page {
    padding: 140px 0 80px;
    min-height: 80vh;
}

.legal-page h1 {
    font-size: 2.5rem;
    margin-bottom: 5px;
    color: #fff;
}

.legal-update {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 50px;
    padding-bottom: 20px;
    border-bottom: 1px solid #1a1a1a;
}

/* Sezioni */
.legal-section {
    margin-bottom: 45px;
}

.legal-section h2 {
    font-size: 1.4rem;
    color: #00a8ff;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #1a1a1a;
}

.legal-section h3 {
    font-size: 1.1rem;
    color: #ccc;
    margin-top: 25px;
    margin-bottom: 10px;
}

.legal-section p {
    color: #bbb;
    font-size: 0.92rem;
    line-height: 1.8;
    margin-bottom: 12px;
}

.legal-section ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 15px;
}

.legal-section ul li {
    color: #bbb;
    font-size: 0.92rem;
    line-height: 1.8;
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
}

.legal-section ul li::before {
    content: '—';
    color: #00a8ff;
    position: absolute;
    left: 0;
}

.legal-section a {
    color: #00a8ff;
    text-decoration: none;
    transition: color 0.3s;
}

.legal-section a:hover {
    color: #fff;
    text-decoration: underline;
}

.legal-section code {
    background: #1a1a1a;
    color: #00a8ff;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.85rem;
    font-family: 'Courier New', monospace;
}

/* Info Box (titolare) */
.legal-info-box {
    background: #0a0a0a;
    border-left: 4px solid #00a8ff;
    padding: 20px 25px;
    margin: 15px 0 20px;
    border-radius: 0 4px 4px 0;
}

.legal-info-box p {
    margin-bottom: 5px;
    color: #ccc;
}

.legal-info-box a {
    color: #00a8ff;
}

/* Tabelle Cookie */
.table-responsive {
    overflow-x: auto;
    margin: 15px 0 10px;
    border-radius: 6px;
    border: 1px solid #222;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    min-width: 600px;
}

.legal-table thead {
    background: #111;
}

.legal-table th {
    color: #00a8ff;
    font-weight: 600;
    text-align: left;
    padding: 14px 16px;
    border-bottom: 2px solid #222;
    white-space: nowrap;
}

.legal-table td {
    color: #bbb;
    padding: 12px 16px;
    border-bottom: 1px solid #1a1a1a;
    vertical-align: top;
}

.legal-table tbody tr:hover {
    background: #0a0a0a;
}

.legal-table td code {
    background: #1a1a1a;
    color: #00a8ff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.82rem;
    white-space: nowrap;
}

/* Note sotto le tabelle */
.legal-note {
    font-size: 0.82rem !important;
    color: #666 !important;
    margin-top: 8px;
}

.legal-note a {
    color: #555 !important;
}

.legal-note a:hover {
    color: #00a8ff !important;
}

/* Bottone torna alla home */
.legal-back {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #1a1a1a;
}

/* Footer semplificato nelle legal */
.legal-page + footer {
    padding: 20px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .legal-page {
        padding: 120px 0 60px;
    }

    .legal-page h1 {
        font-size: 1.8rem;
    }

    .legal-section h2 {
        font-size: 1.2rem;
    }

    .legal-table {
        font-size: 0.8rem;
    }

    .legal-table th,
    .legal-table td {
        padding: 10px 12px;
    }
}
