/* =====================================================
   Bahya Restyling - Stili pagine legali (privacy, ecc.)
   Estende style.css con regole specifiche per testi lunghi.
   ===================================================== */

.legal-page {
    padding: var(--space-lg) 0 var(--space-xl) 0;
    background: var(--c-cream);
}

.legal-page .container {
    max-width: 820px;
}

.legal-head {
    margin-bottom: var(--space-lg);
    border-bottom: 1px solid var(--c-cream-dark);
    padding-bottom: var(--space-md);
}

.legal-head .section-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    margin-bottom: 1rem;
}

.legal-meta {
    color: var(--c-text-soft);
    font-size: .95rem;
    line-height: 1.6;
    margin: 0;
}

.legal-section {
    margin-bottom: 2.5rem;
}

.legal-section h2 {
    font-family: var(--f-display);
    font-size: 1.45rem;
    color: var(--c-bordeaux);
    margin: 0 0 1rem 0;
    line-height: 1.2;
    letter-spacing: .01em;
}

.legal-section h3.legal-subhead {
    font-family: var(--f-body);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--c-text);
    margin: 1.4rem 0 .6rem 0;
    text-transform: none;
}

.legal-section p {
    color: var(--c-text);
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.legal-section ul {
    margin: 0 0 1rem 0;
    padding-left: 1.4rem;
    list-style: disc;
    color: var(--c-text);
}

.legal-section li {
    line-height: 1.7;
    margin-bottom: .6rem;
}

.legal-section a {
    color: var(--c-bordeaux);
    text-decoration: underline;
    text-decoration-color: rgba(92, 31, 31, .35);
    text-underline-offset: 3px;
    transition: text-decoration-color .2s ease;
}
.legal-section a:hover {
    text-decoration-color: var(--c-bordeaux);
}

.legal-card {
    background: var(--c-cream-soft);
    border-left: 4px solid var(--c-sage);
    padding: 1.2rem 1.4rem;
    border-radius: 6px;
    line-height: 1.8;
    margin: 1rem 0 1.5rem 0;
    font-size: .98rem;
}

.legal-back {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--c-cream-dark);
}
.legal-back a {
    font-family: var(--f-hand);
    font-size: 1.3rem;
    color: var(--c-bordeaux);
    text-decoration: none;
}
.legal-back a:hover {
    text-decoration: underline;
}

/* Footer-bottom layout per pagine legali (con link aggiuntivi) */
.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal-links a {
    color: inherit;
    opacity: .85;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, .35);
}
.footer-legal-links a:hover {
    opacity: 1;
}

@media (max-width: 600px) {
    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: .5rem;
    }
    .legal-section h2 { font-size: 1.25rem; }
}
