/**
 * LEGAL PAGES STYLES
 * Stili per Privacy Policy, Cookie Policy, Termini e Condizioni
 */

/* ============================================================
   PAGE CONTAINER
   ============================================================ */
.legal-page {
    padding: 40px 0 60px;
    background: #f8f9fa;
    min-height: calc(100vh - 200px);
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================
   HEADER
   ============================================================ */
.legal-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e9ecef;
}

.legal-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px;
}

.legal-subtitle {
    font-size: 18px;
    color: #666;
    margin: 0 0 15px;
}

.legal-update {
    font-size: 14px;
    color: #999;
    margin: 0;
}

/* ============================================================
   CONTENT
   ============================================================ */
.legal-content {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 40px;
}

/* Sections */
.legal-section {
    margin-bottom: 35px;
    padding-bottom: 35px;
    border-bottom: 1px solid #eee;
}

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

.legal-section h2 {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #c8102e;
    display: inline-block;
}

.legal-section h3 {
    font-size: 17px;
    font-weight: 600;
    color: #333;
    margin: 25px 0 12px;
}

.legal-section p {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
    margin: 0 0 15px;
}

.legal-section ul {
    margin: 0 0 15px;
    padding-left: 20px;
}

.legal-section li {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 8px;
}

.legal-section li strong {
    color: #222;
}

.legal-section a {
    color: #c8102e;
    text-decoration: none;
    transition: color 0.2s;
}

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

/* Address Block */
.legal-address {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    font-style: normal;
    line-height: 1.8;
    margin: 15px 0;
    border-left: 4px solid #c8102e;
}

/* Warning Box */
.legal-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 20px 0;
    font-size: 14px;
    line-height: 1.6;
}

.legal-warning strong {
    color: #856404;
}

/* Button Style */
.legal-button {
    display: inline-block;
    background: #c8102e;
    color: #fff !important;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none !important;
    font-weight: 500;
    transition: background 0.2s;
    margin: 10px 0;
}

.legal-button:hover {
    background: #a00d24;
}

/* ============================================================
   COOKIE TABLE
   ============================================================ */
.cookie-table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 500px;
}

.cookie-table th {
    background: #f8f9fa;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #dee2e6;
}

.cookie-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.cookie-table tr:last-child td {
    border-bottom: none;
}

.cookie-table code {
    background: #f1f3f4;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 13px;
    color: #c8102e;
}

.cookie-table a {
    color: #c8102e;
}

/* ============================================================
   BROWSER SETTINGS
   ============================================================ */
.browser-settings {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.browser-item {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.browser-item strong {
    display: block;
    font-size: 15px;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.browser-item p {
    font-size: 13px;
    color: #666;
    margin: 0 0 8px;
    line-height: 1.5;
}

.browser-item a {
    font-size: 13px;
    color: #c8102e;
    text-decoration: none;
}

.browser-item a:hover {
    text-decoration: underline;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .legal-page {
        padding: 30px 0 50px;
    }

    .legal-header h1 {
        font-size: 26px;
    }

    .legal-subtitle {
        font-size: 16px;
    }

    .legal-content {
        padding: 25px 20px;
        border-radius: 0;
    }

    .legal-section h2 {
        font-size: 19px;
    }

    .legal-section h3 {
        font-size: 16px;
    }

    .browser-settings {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .legal-header h1 {
        font-size: 22px;
    }

    .legal-content {
        padding: 20px 15px;
    }

    .legal-section {
        margin-bottom: 25px;
        padding-bottom: 25px;
    }

    .legal-address {
        padding: 15px;
    }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
    .legal-page {
        background: #fff;
        padding: 0;
    }

    .legal-content {
        box-shadow: none;
        padding: 0;
    }

    .legal-section a::after {
        content: " (" attr(href) ")";
        font-size: 12px;
        color: #666;
    }

    .legal-button {
        background: none;
        color: #c8102e !important;
        border: 1px solid #c8102e;
    }
}
