/* ================================
   PAGINE LEGALI
   Privacy, Cookie, Termini, Gioco Responsabile
   ================================ */

.legal-page {
    padding: 120px 0 90px;
    background: #f7f8fb;
    color: #20243a;
}

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

.legal-hero {
    max-width: 900px;
    margin: 0 auto 32px;
    text-align: center;
}

.legal-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(243, 89, 65, .12);
    color: #f35941;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 12px;
}

.legal-hero h1 {
    color: #172039;
    font-weight: 900;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.05;
    margin-bottom: 18px;
}

.legal-hero p {
    color: #5d6475;
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 8px;
}

.legal-hero small {
    display: inline-block;
    color: #7a8191;
    font-size: 14px;
    margin-top: 4px;
}

.legal-card {
    max-width: 980px;
    margin: 0 auto 18px;
    padding: 28px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 16px 50px rgba(20, 27, 49, .08);
    border: 1px solid rgba(23, 32, 57, .06);
}

.legal-card h2 {
    color: #172039;
    font-size: 24px;
    font-weight: 850;
    margin-bottom: 14px;
}

.legal-card p,
.legal-card li {
    color: #4c5366;
    font-size: 16px;
    line-height: 1.78;
}

.legal-card p:last-child,
.legal-card ul:last-child {
    margin-bottom: 0;
}

.legal-card ul {
    padding-left: 22px;
}

.legal-card a {
    color: #f35941;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-alert {
    border-left: 5px solid #f3b641;
    background: #fff9ec;
}

.legal-danger {
    border-left: 5px solid #dc3545;
    background: #fff2f3;
}

.legal-table-wrap {
    overflow-x: auto;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.legal-table th,
.legal-table td {
    padding: 14px 16px;
    border: 1px solid #e8ebf1;
    vertical-align: top;
}

.legal-table th {
    background: #172039;
    color: #ffffff;
    font-weight: 800;
}

.legal-table td {
    background: #ffffff;
    color: #4c5366;
}

.legal-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    padding: 12px 20px;
    margin-top: 8px;
    background: #f35941;
    color: #ffffff !important;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none !important;
    box-shadow: 0 10px 24px rgba(243, 89, 65, .24);
}

.legal-button:hover {
    color: #ffffff !important;
    filter: brightness(.96);
}

.legal-checkout-box {
    background: #fff7ef;
    border: 1px solid rgba(243, 89, 65, .25);
    border-radius: 12px;
    padding: 14px;
    color: #3d4357;
    font-size: 14px;
    line-height: 1.5;
}

.legal-checkout-box label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 0;
    cursor: pointer;
}

.legal-checkout-box input {
    margin-top: 4px;
}

.legal-checkout-box a {
    color: #f35941;
    font-weight: 800;
}

@media (max-width: 767px) {
    .legal-page {
        padding: 80px 0 60px;
    }

    .legal-card {
        padding: 22px;
        border-radius: 14px;
    }

    .legal-hero h1 {
        font-size: 36px;
    }

    .legal-hero p {
        font-size: 16px;
    }
}

/* ==========================================================
   SignaSure footer legal fix v0.4
   Obiettivo:
   - evitare sovrapposizione logo/link legali
   - rendere disclaimer più pulito e centrato
   - sistemare layout desktop/mobile del footer
   ========================================================== */

.footer {
    padding: 58px 0 38px !important;
    background: #222222 !important;
    overflow: visible;
}

/* Il logo rosso flottante originale crea sovrapposizione con i link legali.
   Lo nascondiamo nel footer: il brand resta già scritto come "SignaSure". */
.footer > .site-logo {
    display: none !important;
}

.footer .container {
    max-width: 1180px;
}

.footer .row.justify-content-between {
    justify-content: center !important;
}

.footer .about-widget {
    text-align: center;
}

.footer .about-widget a.site-title {
    margin-bottom: 22px !important;
    font-size: 30px !important;
    line-height: 1.2 !important;
    color: #ffffff !important;
}

.footer .about-widget .support {
    margin-top: 18px !important;
}

.footer .about-widget .support ul {
    display: flex !important;
    flex-wrap: wrap;
    gap: 22px 42px;
    padding-left: 0 !important;
    margin: 0 !important;
}

.footer .about-widget .support ul li {
    margin: 0 !important;
    list-style: none;
}

.footer .about-widget .support ul li span.text span.title {
    color: rgba(255,255,255,.84) !important;
    font-size: 15px !important;
    font-weight: 800 !important;
}

.footer .about-widget .support ul li span.text span.descr {
    color: rgba(255,255,255,.42) !important;
    font-size: 14px !important;
    opacity: 1 !important;
}

/* Disclaimer gioco responsabile */
.footer-gambling-disclaimer {
    width: calc(100% - 32px) !important;
    max-width: 1180px !important;
    margin: 34px auto 0 !important;
    padding: 18px 22px !important;
    border-radius: 16px !important;
    background: rgba(255,255,255,.055) !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    color: rgba(255,255,255,.82) !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
    box-shadow: none !important;
}

.footer-gambling-disclaimer strong {
    color: #ffffff !important;
    font-weight: 900 !important;
}

.footer-gambling-disclaimer a {
    color: #ffffff !important;
    font-weight: 900 !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

/* Fascia copyright */
.copyright-footer {
    padding: 24px 0 28px !important;
    background: #101010 !important;
}

.copyright-footer .container {
    max-width: 1180px;
}

.copyright-footer .row.justify-content-between {
    align-items: center !important;
}

.copyright-footer .copyright-text {
    color: rgba(255,255,255,.82) !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    margin: 0 !important;
}

.copyright-footer .copyright-text a {
    color: #ffffff !important;
    font-weight: 900 !important;
    text-decoration: none !important;
}

.copyright-footer .text-right {
    text-align: right !important;
}

/* Link legali */
.footer-legal-links {
    width: 100%;
    margin-top: 18px !important;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.08);
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 10px 18px !important;
    color: rgba(255,255,255,.35) !important;
    line-height: 1.4 !important;
}

.footer-legal-links a,
.footer-legal-links button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.86) !important;
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    font: inherit !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: color .2s ease, opacity .2s ease;
}

.footer-legal-links a:hover,
.footer-legal-links button:hover {
    color: #ffffff !important;
    opacity: 1 !important;
    text-decoration: underline !important;
    text-underline-offset: 4px;
}

.footer-legal-links span {
    color: rgba(255,255,255,.24) !important;
}

/* Mobile */
@media (max-width: 991px) {
    .footer {
        padding: 46px 0 30px !important;
    }

    .footer .about-widget {
        text-align: center;
    }

    .footer .about-widget .support ul {
        justify-content: center;
        gap: 18px 28px;
    }

    .copyright-footer .text-right,
    .copyright-footer .copyright-text {
        text-align: center !important;
    }

    .copyright-footer .row.justify-content-between > div + div {
        margin-top: 8px;
    }
}

@media (max-width: 575px) {
    .footer {
        padding: 38px 0 24px !important;
    }

    .footer .about-widget a.site-title {
        display: inline-block !important;
        text-align: center !important;
        width: auto !important;
        margin-left: auto !important;
        margin-right: auto !important;
        font-size: 28px !important;
    }

    .footer .about-widget .support ul {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 18px;
        text-align: center;
        justify-content: center !important;
    }

    .footer-gambling-disclaimer {
        width: calc(100% - 24px) !important;
        margin-top: 28px !important;
        padding: 16px !important;
        font-size: 13px !important;
        text-align: left;
    }

    .footer-legal-links {
        gap: 10px 14px !important;
    }

    .footer-legal-links span {
        display: none;
    }
}

.footer .about-widget .support {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
}

.footer .about-widget .support ul {
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
    gap: 48px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

.footer .about-widget .support ul li {
    text-align: center !important;
}

.footer .about-widget .support ul li span.text {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
}

@media (max-width: 575px) {
    .footer .about-widget .support ul {
        flex-direction: column !important;
        gap: 18px !important;
        align-items: center !important;
    }
}

.footer-contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.2em;
    margin-right: 6px;
    color: #ffffff;
    font-weight: 900;
}

/* Fix checkbox policy/cookie/checkout */
.sg-cookie-modal input[type="checkbox"]:checked,
.sg-cookie-modal input[type="checkbox"]:not(:checked),
.sg-cookie-option input[type="checkbox"]:checked,
.sg-cookie-option input[type="checkbox"]:not(:checked),
.legal-checkout-box input[type="checkbox"]:checked,
.legal-checkout-box input[type="checkbox"]:not(:checked) {
    position: static !important;
    left: auto !important;
    top: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-block !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    flex: 0 0 18px !important;
    margin: 4px 10px 0 0 !important;
    padding: 0 !important;
    cursor: pointer !important;
    accent-color: #f35941;
    -webkit-appearance: checkbox !important;
    appearance: auto !important;
}

.sg-cookie-modal input[type="checkbox"] {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    flex-basis: 22px !important;
    margin: 0 !important;
}

.legal-checkout-box label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
}

.legal-checkout-box input[type="checkbox"] {
    margin-top: 5px !important;
}
