@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--theme-bg, #262626);
    color: #444444;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.container {
    max-width: 800px;
    /* In un flex column i margini auto fanno restringere il box al contenuto: la larghezza
       esplicita lo tiene a tutta pagina (meno il margine laterale) anche con testi brevi. */
    width: calc(100% - 32px);
    box-sizing: border-box;
    margin: 40px auto auto auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
h1 {
    color: var(--theme-bg, #333);
    margin-top: 0;
}
p {
    margin-bottom: 1em;
}

/* --- Cookie Policy ------------------------------------------------------ */
.policy-cookie {
    margin-bottom: 32px;
}
.policy-cookie h1 {
    font-size: 1.7rem;
    line-height: 1.25;
}
.policy-cookie h2 {
    color: var(--theme-bg, #333);
    font-size: 1.35rem;
    margin: 1.8em 0 0.5em;
}
.policy-cookie h3 {
    color: #333333;
    font-size: 1.1rem;
    margin: 1.5em 0 0.4em;
}
.policy-cookie a {
    color: var(--theme-bg, #1a4f8b);
    text-decoration: underline;
}
.policy-cookie ul {
    margin: 0 0 1em;
    padding-left: 1.3em;
}
.policy-cookie li {
    margin-bottom: 0.3em;
}
.policy-cookie .aggiornamento {
    color: #777777;
    font-size: 0.9rem;
    margin-top: -0.4em;
}
.policy-cookie .riepilogo {
    background: #f5f6f8;
    border-left: 4px solid var(--theme-bg, #262626);
    border-radius: 4px;
    padding: 14px 16px;
    margin: 1.2em 0;
}
.policy-cookie address {
    font-style: normal;
    background: #f5f6f8;
    border-radius: 4px;
    padding: 14px 16px;
    overflow-wrap: anywhere;
}
.policy-cookie code {
    background: #eef0f3;
    border-radius: 3px;
    padding: 1px 5px;
    font-size: 0.9em;
    overflow-wrap: anywhere;
}

.tabella-cookie {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0 1.5em;
    font-size: 0.92rem;
}
.tabella-cookie caption {
    caption-side: top;
    text-align: left;
    font-weight: 600;
    color: #333333;
    padding-bottom: 8px;
}
.tabella-cookie th,
.tabella-cookie td {
    text-align: left;
    vertical-align: top;
    padding: 10px 12px;
    border: 1px solid #e1e4e8;
}
.tabella-cookie thead th {
    background: #f1f2f4;
    color: #333333;
}
.tabella-cookie tbody th {
    font-weight: 600;
    white-space: nowrap;
}
.tabella-cookie tbody th a {
    font-weight: 400;
    font-size: 0.9em;
}

/* Su schermi stretti ogni riga diventa un blocco con le etichette davanti ai valori:
   una tabella a 4 colonne non si legge e farebbe scorrere la pagina in orizzontale. */
@media (max-width: 700px) {
    .container {
        width: calc(100% - 24px);
        margin-top: 16px;
        padding: 20px 16px;
    }
    .policy-cookie h1 {
        font-size: 1.4rem;
    }
    .tabella-cookie,
    .tabella-cookie caption,
    .tabella-cookie tbody,
    .tabella-cookie tr,
    .tabella-cookie th,
    .tabella-cookie td {
        display: block;
        width: auto;
    }
    .tabella-cookie thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }
    .tabella-cookie tr {
        border: 1px solid #e1e4e8;
        border-radius: 6px;
        margin-bottom: 12px;
        overflow: hidden;
    }
    .tabella-cookie th,
    .tabella-cookie td {
        border: none;
        border-bottom: 1px solid #eceef1;
    }
    .tabella-cookie tr > :last-child {
        border-bottom: none;
    }
    .tabella-cookie tbody th {
        background: #f1f2f4;
        white-space: normal;
    }
    .tabella-cookie td::before {
        content: attr(data-label);
        display: block;
        font-size: 0.78rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        color: #777777;
        margin-bottom: 2px;
    }
}
