/* =========================================================
   Legal / utility pages — linguaggio editoriale Tutela Penale
   ========================================================= */

/* ---------- Quiet page header ---------- */
.le-hero {
  position: relative;
  background: var(--bg-deep, #080e28);
  padding: clamp(7.5rem, 14vw, 10rem) 0 clamp(3.25rem, 6vw, 4.75rem);
  overflow: hidden;
}

.le-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 18% 20%, rgba(212, 175, 55, 0.07) 0%, transparent 55%),
    linear-gradient(180deg, transparent 55%, rgba(10, 19, 54, 0.9) 100%);
}

.le-hero .container {
  position: relative;
  z-index: 1;
  max-width: 44rem;
}

.le-hero--center .container {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.le-hero--center .le-title-rule {
  margin-left: auto;
  margin-right: auto;
}

.le-eyebrow {
  margin: 0 0 1.35rem;
}

.le-eyebrow .eyebrow-gold,
.le-eyebrow {
  font-family: var(--font-body), 'Source Sans 3', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary-gold, #d4af37);
}

.le-title-rule {
  width: 48px;
  height: 1px;
  margin-bottom: 1.5rem;
  background: linear-gradient(90deg, var(--primary-gold, #d4af37), transparent);
}

.le-title {
  margin: 0 0 1rem !important;
  font-family: var(--font-display), 'Libre Baskerville', Georgia, serif !important;
  font-size: clamp(1.9rem, 4vw, 2.85rem) !important;
  font-weight: 400 !important;
  line-height: 1.18 !important;
  letter-spacing: 0.01em !important;
  color: #f7f4ec !important;
}

.le-lead {
  margin: 0 !important;
  max-width: 34rem;
  font-family: var(--font-display), 'Libre Baskerville', Georgia, serif !important;
  font-size: clamp(1.05rem, 0.4vw + 1rem, 1.22rem) !important;
  font-weight: 400 !important;
  font-style: italic;
  line-height: 1.65 !important;
  color: rgba(230, 232, 240, 0.88) !important;
}

.le-hero--center .le-lead {
  margin-left: auto !important;
  margin-right: auto !important;
}

.le-meta {
  margin: 1.25rem 0 0;
  font-family: var(--font-body), 'Source Sans 3', sans-serif;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(184, 189, 208, 0.7);
}

.le-meta strong {
  color: rgba(212, 175, 55, 0.92);
  font-weight: 600;
}

/* ---------- Body band ---------- */
.le-section {
  padding: clamp(3.25rem, 6vw, 5rem) 0 clamp(5rem, 10vw, 8rem);
}

.le-section .container {
  max-width: 44rem;
}

.le-section--center .container {
  text-align: center;
}

/* ---------- Prose ---------- */
.le-prose {
  border: none;
  background: transparent;
  box-shadow: none;
}

.le-prose > *:first-child {
  margin-top: 0;
}

.le-prose h2 {
  margin: 2.75rem 0 1.15rem !important;
  padding: 0 !important;
  border: none !important;
  font-family: var(--font-display), 'Libre Baskerville', Georgia, serif !important;
  font-size: clamp(1.35rem, 1.5vw + 1.05rem, 1.65rem) !important;
  font-weight: 400 !important;
  line-height: 1.3 !important;
  letter-spacing: 0.01em !important;
  color: #f2f4fa !important;
}

.le-prose h2:first-child {
  margin-top: 0 !important;
}

.le-prose h3 {
  margin: 2.15rem 0 0.9rem !important;
  font-family: var(--font-display), 'Libre Baskerville', Georgia, serif !important;
  font-size: clamp(1.1rem, 0.6vw + 1rem, 1.28rem) !important;
  font-weight: 400 !important;
  font-style: italic;
  line-height: 1.45 !important;
  color: rgba(230, 232, 240, 0.92) !important;
}

.le-prose h4 {
  margin: 1.5rem 0 0.75rem !important;
  font-family: var(--font-body), 'Source Sans 3', sans-serif !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: rgba(212, 175, 55, 0.95) !important;
}

.le-prose p {
  margin: 0 0 1.35rem !important;
  color: #c8cddc !important;
  font-family: var(--font-body), 'Source Sans 3', sans-serif !important;
  font-size: clamp(1.05rem, 0.25vw + 1rem, 1.14rem) !important;
  font-weight: 300 !important;
  line-height: 1.85 !important;
  letter-spacing: 0.01em !important;
  text-align: left !important;
}

.le-prose .le-intro {
  margin-bottom: 2rem !important;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.16);
  font-family: var(--font-display), 'Libre Baskerville', Georgia, serif !important;
  font-size: clamp(1.08rem, 0.35vw + 1rem, 1.2rem) !important;
  font-style: italic;
  font-weight: 400 !important;
  line-height: 1.7 !important;
  color: rgba(230, 232, 240, 0.92) !important;
}

.le-prose ul,
.le-prose ol {
  list-style: none !important;
  margin: 0 0 1.5rem !important;
  padding: 0 !important;
}

.le-prose li {
  position: relative;
  margin: 0 0 0.75rem !important;
  padding-left: 1.25rem !important;
  color: #c8cddc !important;
  font-family: var(--font-body), 'Source Sans 3', sans-serif !important;
  font-size: clamp(1.02rem, 0.2vw + 0.98rem, 1.1rem) !important;
  font-weight: 300 !important;
  line-height: 1.75 !important;
}

.le-prose li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 8px;
  height: 1px;
  background: var(--primary-gold, #d4af37);
}

.le-prose strong {
  font-weight: 600 !important;
  color: #f2f4fa !important;
}

.le-prose em {
  font-style: italic;
  color: #e6e9f2 !important;
}

.le-prose a {
  color: rgba(212, 175, 55, 0.95) !important;
  text-decoration: underline;
  text-decoration-color: rgba(212, 175, 55, 0.35);
  text-underline-offset: 0.22em;
  transition: color 0.25s ease, text-decoration-color 0.25s ease;
}

.le-prose a:hover {
  color: #f4d03f !important;
  text-decoration-color: #f4d03f;
}

/* ---------- Nested editorial blocks (cookie types, notes) ---------- */
.le-block {
  margin: 1.75rem 0 2rem;
  padding: 1.35rem 0 1.35rem 1.35rem;
  border-left: 1px solid rgba(212, 175, 55, 0.35);
  background: none;
}

.le-block > *:last-child {
  margin-bottom: 0 !important;
}

.le-block-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  margin-bottom: 0.85rem;
}

.le-block-head h4 {
  margin: 0 !important;
}

.le-status {
  font-family: var(--font-body), 'Source Sans 3', sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(184, 189, 208, 0.75);
}

.le-status--required {
  color: rgba(212, 175, 55, 0.9);
}

.le-examples {
  margin-top: 1rem !important;
  font-size: 0.95rem !important;
  color: rgba(184, 189, 208, 0.85) !important;
}

.le-note {
  margin: 2.25rem 0;
  padding: 1.35rem 0 1.35rem 1.35rem;
  border-left: 1px solid rgba(212, 175, 55, 0.4);
}

.le-note p {
  margin-bottom: 0 !important;
}

/* ---------- Contact strip ---------- */
.le-contact {
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.le-contact h4 {
  margin-top: 0 !important;
}

.le-contact p {
  margin-bottom: 0.65rem !important;
}

.le-contact-list {
  list-style: none !important;
  margin: 1rem 0 0 !important;
  padding: 0 !important;
}

.le-contact-list li {
  padding-left: 0 !important;
}

.le-contact-list li::before {
  display: none;
}

/* ---------- Inline actions / links ---------- */
.le-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(212, 175, 55, 0.14);
}

.le-text-link {
  display: inline-block;
  font-family: var(--font-body), 'Source Sans 3', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(212, 175, 55, 0.95);
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 175, 55, 0.4);
  padding-bottom: 0.2rem;
  transition: color 0.25s ease, border-color 0.25s ease;
  background: none;
  border-radius: 0;
  cursor: pointer;
}

.le-text-link:hover {
  color: #f4d03f;
  border-bottom-color: #f4d03f;
}

.le-text-link--muted {
  color: rgba(184, 189, 208, 0.85);
  border-bottom-color: rgba(184, 189, 208, 0.35);
}

.le-text-link--muted:hover {
  color: var(--primary-gold, #d4af37);
  border-bottom-color: var(--primary-gold, #d4af37);
}

.le-browser-list {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0 0 !important;
}

.le-browser-list a {
  text-decoration: underline;
  text-decoration-color: rgba(212, 175, 55, 0.35);
}

/* ---------- Centered utility pages (404 / grazie) ---------- */
.le-utility {
  min-height: calc(100vh - 8rem);
  display: flex;
  align-items: center;
  background: var(--bg-deep, #080e28);
  padding: clamp(7.5rem, 14vw, 10rem) 0 clamp(5rem, 10vw, 8rem);
  position: relative;
  overflow: hidden;
}

.le-utility::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, transparent 40%, rgba(10, 19, 54, 0.95) 100%);
}

.le-utility .container {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.le-utility-kicker {
  margin: 0 0 1.35rem;
  font-family: var(--font-body), 'Source Sans 3', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--primary-gold, #d4af37);
}

.le-utility-rule {
  width: 48px;
  height: 1px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(90deg, transparent, var(--primary-gold, #d4af37), transparent);
}

.le-utility-code {
  margin: 0 0 0.75rem;
  font-family: var(--font-display), 'Libre Baskerville', Georgia, serif;
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.04em;
  color: rgba(212, 175, 55, 0.55);
}

.le-utility h1 {
  margin: 0 0 1.15rem !important;
  font-family: var(--font-display), 'Libre Baskerville', Georgia, serif !important;
  font-size: clamp(1.85rem, 3.5vw, 2.65rem) !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
  color: #f7f4ec !important;
}

.le-utility-lead {
  margin: 0 auto 2.5rem !important;
  max-width: 28rem;
  font-family: var(--font-display), 'Libre Baskerville', Georgia, serif !important;
  font-size: clamp(1.05rem, 0.35vw + 1rem, 1.2rem) !important;
  font-style: italic;
  font-weight: 400 !important;
  line-height: 1.7 !important;
  color: rgba(230, 232, 240, 0.88) !important;
}

.le-utility-block {
  text-align: left;
  margin: 0 auto 2.5rem;
  max-width: 28rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(212, 175, 55, 0.18);
}

.le-utility-block h2 {
  margin: 0 0 1rem !important;
  font-family: var(--font-body), 'Source Sans 3', sans-serif !important;
  font-size: 0.68rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  color: rgba(212, 175, 55, 0.95) !important;
}

.le-utility-block ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.le-utility-block li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.2rem;
  color: #c8cddc;
  font-family: var(--font-body), 'Source Sans 3', sans-serif;
  font-size: 1.02rem;
  font-weight: 300;
  line-height: 1.65;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.le-utility-block li:last-child {
  border-bottom: none;
}

.le-utility-block li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.15em;
  width: 8px;
  height: 1px;
  background: var(--primary-gold, #d4af37);
}

.le-utility-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.75rem;
  margin: 0 0 2.5rem;
}

.le-utility-contact {
  margin: 0 auto;
  max-width: 28rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(212, 175, 55, 0.18);
  text-align: center;
}

.le-utility-contact h2 {
  margin: 0 0 0.75rem !important;
  font-family: var(--font-display), 'Libre Baskerville', Georgia, serif !important;
  font-size: clamp(1.15rem, 1vw + 1rem, 1.35rem) !important;
  font-weight: 400 !important;
  font-style: italic;
  color: #f2f4fa !important;
}

.le-utility-contact p {
  margin: 0 0 1rem !important;
  color: #c8cddc !important;
  font-family: var(--font-body), 'Source Sans 3', sans-serif !important;
  font-size: 1.02rem !important;
  font-weight: 300 !important;
  line-height: 1.7 !important;
}

.le-utility-contact strong {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--font-body), 'Source Sans 3', sans-serif;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(212, 175, 55, 0.9);
}

.le-utility-contact a {
  color: rgba(212, 175, 55, 0.95);
  text-decoration: underline;
  text-decoration-color: rgba(212, 175, 55, 0.35);
  text-underline-offset: 0.22em;
  transition: color 0.25s ease, text-decoration-color 0.25s ease;
}

.le-utility-contact a:hover {
  color: #f4d03f;
  text-decoration-color: #f4d03f;
}

@media (max-width: 600px) {
  .le-actions {
    flex-direction: column;
    align-items: center;
  }

  .le-hero .container,
  .le-title,
  .le-lead,
  .le-meta,
  .le-utility {
    text-align: center;
  }

  .le-title-rule,
  .le-utility-rule {
    margin-left: auto;
    margin-right: auto;
  }

  .le-prose {
    text-align: left;
  }

  .le-prose h2,
  .le-prose h3,
  .le-prose h4 {
    text-align: center;
  }

  .le-utility-links {
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
  }
}
