/* legal.css — stile comune alle pagine legali (Termini e Condizioni, Privacy Policy).
   Ripreso dal design di calcolatoridelprofitto.it, pensato per la lettura lunga. */
:root {
    --primary: #00A3FF;
    --text: #e8eef6;
    --text-muted: #94a3b8;
    --neon: #00f3ff;
    --border: rgba(255, 255, 255, 0.08);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; }

html { overflow-x: hidden; }

body {
    font-family: 'Outfit', system-ui, sans-serif;
    background-color: #030a1a;
    background-image:
        radial-gradient(circle at 50% -10%, #004a80 0%, transparent 45%),
        radial-gradient(circle at 0% 100%, #002b4d 0%, transparent 40%);
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.7;
    padding: 2.5rem 1.2rem 4rem;
    overflow-x: hidden;
}

.wrap { max-width: 820px; margin: 0 auto; }

header.testata { text-align: center; margin-bottom: 2.5rem; }
header.testata img { width: 150px; max-width: 55%; opacity: 0.9; filter: drop-shadow(0 0 12px rgba(0, 163, 255, 0.4)); }
header.testata h1 {
    font-size: 1.7rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
    margin: 1.4rem 0 0.5rem; text-shadow: 0 0 18px rgba(0, 163, 255, 0.4);
}
header.testata .agg { font-size: 0.78rem; color: var(--text-muted); }

.riquadro {
    background: rgba(0, 10, 20, 0.6);
    border: 1px solid var(--border);
    border-radius: 1.2rem;
    padding: 1.5rem 1.6rem;
    margin-bottom: 1.6rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.riquadro.evidenza { border-color: rgba(0, 163, 255, 0.3); background: rgba(0, 163, 255, 0.06); }

.titolare { font-size: 0.92rem; }
.titolare b { color: #fff; }

nav.indice ul { list-style: none; columns: 2; column-gap: 2rem; }
nav.indice li { margin-bottom: 0.35rem; break-inside: avoid; }
nav.indice a { color: var(--neon); text-decoration: none; font-size: 0.86rem; }
nav.indice a:hover { text-decoration: underline; }

h2 {
    font-size: 1.15rem; font-weight: 700; color: #fff; margin: 2.4rem 0 0.9rem;
    padding-bottom: 0.5rem; border-bottom: 1px solid rgba(0, 163, 255, 0.25);
    scroll-margin-top: 1rem;
}
h3 { font-size: 1rem; font-weight: 600; color: var(--primary); margin: 1.6rem 0 0.6rem; }
h4 { font-size: 0.9rem; font-weight: 600; color: #cbd5e1; margin: 1.1rem 0 0.4rem; }

p { margin-bottom: 0.9rem; font-size: 0.94rem; }
ul, ol { margin: 0 0 1rem 1.3rem; }
li { margin-bottom: 0.4rem; font-size: 0.94rem; }
strong, b { color: #fff; }
a { color: var(--neon); }
hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

.nota {
    font-size: 0.84rem; color: var(--text-muted); background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid rgba(0, 163, 255, 0.5); border-radius: 0 0.6rem 0.6rem 0;
    padding: 0.8rem 1rem; margin: 1.2rem 0;
}

.modulo-recesso {
    font-size: 0.88rem; background: rgba(0, 0, 0, 0.35); border: 1px dashed rgba(255, 255, 255, 0.18);
    border-radius: 0.8rem; padding: 1.1rem 1.2rem; margin: 1rem 0;
}
.modulo-recesso p { margin-bottom: 0.6rem; }

table { width: 100%; border-collapse: collapse; font-size: 0.88rem; margin: 0.8rem 0 1.2rem; min-width: 0; }
th, td { text-align: left; padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--text-muted); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.tab-wrap { overflow-x: auto; }

footer.pie {
    margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
    text-align: center; font-size: 0.8rem; color: var(--text-muted);
}
footer.pie a { margin: 0 0.5rem; }

@media (max-width: 640px) {
    body { padding: 1.6rem 1rem 3rem; line-height: 1.65; }
    header.testata h1 { font-size: 1.35rem; }
    .riquadro { padding: 1.1rem 1.1rem; }
    nav.indice ul { columns: 1; }
    h2 { font-size: 1.05rem; }
}
