/* --- VARIABILI GLOBALI --- */
:root {
    --bg-body: #f4f6f8;
    --bg-content: #ffffff;
    --text-main: #333333;
    --text-muted: #666666;
    --accent-color: #d4a373; /* Sostituisci con il colore principale del tuo bar */
    --link-color: #a47148;
    --border-color: #e9ecef;
    --footer-bg: #212529;
    --container-width: 800px;
    --font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* --- RESET BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Mantiene il footer in basso */
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- HEADER --- */
.header {
    background-color: var(--bg-content);
    border-bottom: 1px solid var(--border-color);
    padding: 40px 0;
    text-align: center;
    position: relative;
}

.back-link {
    position: absolute;
    left: 20px;
    top: 45px;
    font-weight: 500;
}

.header h1 {
    font-size: 2.2rem;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.header .subtitle {
    color: var(--text-muted);
    font-size: 1rem;
}

/* --- CONTENUTO PRINCIPALE --- */
.content {
    background-color: var(--bg-content);
    padding: 50px 40px;
    margin-top: 40px;
    margin-bottom: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    flex: 1; /* Permette al main di spingere giù il footer */
}

.policy-section {
    margin-bottom: 35px;
}

.policy-section:last-child {
    margin-bottom: 0;
}

.policy-section h2 {
    font-size: 1.3rem;
    color: var(--accent-color);
    margin-bottom: 12px;
    border-bottom: 2px solid var(--bg-body);
    padding-bottom: 8px;
}

.policy-section p {
    margin-bottom: 15px;
    color: var(--text-main);
}

.policy-section ul {
    padding-left: 25px;
    color: var(--text-main);
}

.policy-section li {
    margin-bottom: 8px;
}

/* --- FOOTER & CREDITS --- */
.footer {
    background-color: var(--footer-bg);
    color: #f8f9fa;
    text-align: center;
    padding: 40px 0 30px;
}

.footer p {
    font-size: 0.95rem;
}

.developer-credits {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: #adb5bd;
}

.developer-credits a {
    color: var(--accent-color);
    font-weight: bold;
    text-decoration: none;
}

.developer-credits a:hover {
    color: #ffffff;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
    .content {
        padding: 30px 20px;
        margin-top: 20px;
        border-radius: 0; /* Rimuove i bordi arrotondati su mobile */
    }

    .header h1 {
        font-size: 1.8rem;
    }

    .back-link {
        position: static;
        display: block;
        margin-bottom: 15px;
    }
}