:root {
      --bg-color: #f8f8f8;
      --text-main: #181D27;
      --text-muted: #535862;
      --brand-primary: #0d6f90;
      --brand-accent: #40e0d0;
    }

    

    html {
      scroll-behavior: smooth;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      font-family: 'Bespoke Serif', 'Bespoke Serif Placeholder', serif;
      background-color: var(--bg-color);
      color: var(--text-main);
      line-height: 1.6;
      padding: 40px 20px;
    }

    /* Contenitore per centrare la cornice nella pagina */
    .card-container {
      display: flex;
      justify-content: center;
      align-items: center;
      min-height: 100vh;
      padding: 20px;
    }

    /* La cornice stondata e centrata */
    .card {
      width: 100%;
      padding: 30px;
      /*border: 2px solid #e0e0e0;*/
      border-radius: 16px; /* Bordo stondata */
      box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
      text-align: center; /* Testo centrato all'interno */
      background-color: #ffffff;
    }

    #legal-page {
      padding: 0 0;
    }

    .legal-card {
      max-width: 800px;
      margin: 0 auto;
      background: #ffffff;
      padding: 48px;
      border-radius: 16px;
      box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    }

    #legal-page .legal-card {
      padding: 60px;
    }

    .legal-header {
      text-align: center;
      margin-top: 36px;
      /*padding-bottom: 24px;
      border-bottom: 1px solid #e5e7eb;*/
    }

    .legal-logo {
      max-width: 180px;
      height: auto;
      margin-bottom: 20px;
    }

    .legal-badge {
      display: inline-block;
      font-family: 'Expletus Sans', sans-serif;
      font-weight: 700;
      font-size: 14px;
      color: var(--brand-primary);
      background-color: #ebfdff;
      border: 1px solid #a5f0fb;
      padding: 4px 16px;
      border-radius: 9999px;
      margin-bottom: 16px;
    }

    h1.legal-title {
      font-family: 'Expletus Sans', sans-serif;
      font-size: 36px;
      font-weight: 700;
      line-height: 1.2;
      color: var(--text-main);
      margin-bottom: 20px;
    }

    .legal-intro {
      font-size: 16px;
      color: var(--text-muted);
      text-align: left;
      margin-bottom: 16px;
    }

    .legal-notice-box {
      background-color: #fff9eb;
      border-left: 4px solid #f59e0b;
      padding: 16px;
      border-radius: 6px;
      font-size: 15px;
      color: #78350f;
      text-align: left;
      margin-bottom: 20px;
    }

    /* SEZIONI TESTO LEGALE */
    .legal-section {
      margin-bottom: 32px;
    }

    h2.section-title {
      font-family: 'Expletus Sans', sans-serif;
      font-size: 22px;
      font-weight: 700;
      color: var(--text-main);
      margin-bottom: 12px;
    }

    p,
    li {
      color: var(--text-muted);
      margin-bottom: 12px;
      font-size: 18px; line-height: 1.6; 
      margin-top: 24px;
    }

    ul,
    ol {
      margin-left: 24px;
      margin-bottom: 16px;
    }

    li {
      margin-bottom: 8px;
    }

    strong {
      color: var(--text-main);
    }

    a, a:visited, a:active {
      color: #1a5a53;
      text-decoration: underline;
    }

    a:hover {
      text-decoration: none;
    }

    /* PULSANTE HOME PAGE */
    .btn-back {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-family: 'Expletus Sans', sans-serif;
      font-weight: 700;
      font-size: 16px;
      color: #1a5a53;
      background-color: var(--brand-accent);
      padding: 12px 28px;
      border-radius: 8px;
      text-decoration: none;
      margin-top: 24px;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
      transition: transform 0.2s, background-color 0.2s;
    }

    .btn-back:hover {
      background-color: #36cbbe;
      transform: translateY(-2px);
    }

    /* RESPONSIVE DESIGNS */
    @media (max-width: 640px) {
      body {
        padding: 16px 12px;
      }

      .legal-card {
        padding: 24px 16px;
      }

      #legal-page .legal-card {
        padding: 30px;
      }

      h1.legal-title {
        font-size: 28px;
      }

      h2.section-title {
        font-size: 18px;
      }
    }