/* ========================================
   DENDRIA TERMINI DI SERVIZIO - MATCH PRIVACY STYLE
   (Allineato a privacy.css)
======================================== */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #1a1a1a;
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   PAGE LAYOUT
======================================== */

.legal-page {
  margin-top: 40px;
  padding: 0;
  background: #ffffff;
  min-height: 100vh;
}

.legal-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================================
   TERMS HERO SECTION (stile come Privacy)
======================================== */

.terms-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  padding: 80px 0 60px;
  min-height: 600px;
}

/* Illustrazione a SINISTRA */
.terms-hero__art {
  flex: 0 0 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  order: 1;
}

.terms-hero__art img {
  width: 120%;
  max-width: 600px;
  height: auto;
  display: block;
}

/* Testo a DESTRA */
.terms-hero__text {
  flex: 1;
  max-width: 550px;
  order: 2;
}

.terms-hero__text h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #1a1a1a;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.terms-hero__subtitle {
  font-size: 18px;
  color: #666666;
  line-height: 1.7;
  margin-bottom: 32px;
}

.terms-hero__actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.terms-hero__btn {
  padding: 16px 40px;
  background: #000000;
  color: #ffffff;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.terms-hero__btn:hover {
  background: #333333;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.terms-hero__btn:active {
  transform: translateY(0);
}

.legal-update {
  color: #999999;
  font-size: 14px;
  font-style: italic;
}

/* ========================================
   TERMS CONTENT SECTION (uguale a Privacy)
======================================== */

.terms-content {
  padding: 40px 0 80px;
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   CARDS (boxed come Privacy)
======================================== */

.legal-card {
  background: #ffffff;
  padding: 40px;
  border-radius: 12px;
  margin-bottom: 24px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.legal-card h2 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #1a1a1a;
}

.legal-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #1a1a1a;
}

.legal-card h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1a1a1a;
}

.legal-card p {
  line-height: 1.8;
  color: #333333;
  margin-bottom: 16px;
  font-size: 16px;
}

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

.section-intro {
  color: #666666;
  margin-bottom: 24px;
}

/* ========================================
   SIMPLE LISTS (stile Privacy)
======================================== */

.simple-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.simple-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: #333333;
  line-height: 1.7;
  font-size: 16px;
}

.simple-list li:before {
  content: "•";
  position: absolute;
  left: 8px;
  color: #000000;
  font-weight: bold;
  font-size: 20px;
}

/* ========================================
   HIGHLIGHT CARD (come Privacy)
======================================== */

.highlight-card {
  background: #fafafa;
  border: 2px solid #000000;
}

/* ========================================
   NOTE BOX (se ti serve anche in Termini)
======================================== */

.note-box {
  background: #fef9ed;
  padding: 20px 24px;
  border-radius: 8px;
  border: 1px solid #f4d9a0;
  margin-top: 20px;
  color: #666666;
  font-size: 15px;
  line-height: 1.7;
}

.note-box.important {
  background: #fef3f2;
  border-color: #fecdca;
}

/* ========================================
   CONTACT INFO (come Privacy)
======================================== */

.contact-info {
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-label {
  font-size: 12px;
  color: #999999;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
}

.contact-link {
  font-size: 18px;
  color: #1a1a1a;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-link:hover {
  color: #666666;
}

/* ========================================
   RESPONSIVE - TABLET
======================================== */

@media (max-width: 1024px) {
  .terms-hero {
    gap: 40px;
    padding: 60px 0 40px;
    min-height: auto;
  }

  .terms-hero__art {
    flex: 0 0 350px;
  }

  .terms-hero__text h1 {
    font-size: 40px;
  }

  .terms-hero__subtitle {
    font-size: 17px;
  }
}

/* ========================================
   RESPONSIVE - MOBILE
======================================== */

@media (max-width: 768px) {
  .legal-container {
    padding: 0 20px;
  }

  .terms-hero {
    flex-direction: column;
    text-align: left;
    gap: 40px;
    padding: 40px 0 30px;
  }

  .terms-hero__art {
    flex: none;
    order: -1;
    width: 100%;
    max-width: 300px;
  }

  .terms-hero__art img {
    max-width: 300px;
    width: 100%;
  }

  .terms-hero__text {
    max-width: 100%;
  }

  .terms-hero__text h1 {
    font-size: 32px;
  }

  .terms-hero__subtitle {
    font-size: 16px;
    margin-bottom: 24px;
  }

  .terms-hero__btn {
    padding: 14px 32px;
    font-size: 15px;
  }

  .terms-content {
    padding: 30px 0 60px;
  }

  .legal-card {
    padding: 28px 20px;
  }

  .legal-card h2 {
    font-size: 24px;
  }

  .legal-card h3 {
    font-size: 18px;
  }

  .legal-card p,
  .simple-list li {
    font-size: 15px;
  }
}

/* ========================================
   RESPONSIVE - SMALL MOBILE
======================================== */

@media (max-width: 480px) {
  .legal-container {
    padding: 0 16px;
  }

  .terms-hero {
    padding: 30px 0 20px;
  }

  .terms-hero__art {
    max-width: 250px;
  }

  .terms-hero__art img {
    max-width: 250px;
  }

  .terms-hero__text h1 {
    font-size: 28px;
  }

  .terms-hero__subtitle {
    font-size: 15px;
  }

  .terms-hero__btn {
    padding: 12px 28px;
    font-size: 14px;
  }

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

  .legal-card h2 {
    font-size: 22px;
  }

  .legal-card h3 {
    font-size: 17px;
  }

  .legal-card p,
  .simple-list li {
    font-size: 14px;
  }
}
/* ================================
   HERO ART — dimensione uniforme
   ================================ */
.privacy-hero__art,
.terms-hero__art {
  width: 420px;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.privacy-hero__art img,
.terms-hero__art img {
  width: 130%;
  height: 130%;
  object-fit: contain;
  display: block;
}

@media (max-width: 900px) {
  .privacy-hero__art,
  .terms-hero__art {
    width: 320px;
    height: 320px;
    margin: 0 auto;
  }
}

@media (max-width: 520px) {
  .privacy-hero__art,
  .terms-hero__art {
    width: 260px;
    height: 260px;
  }
}