/* ==========================================================================
   AITANA TOUR · REGLAMENTO Y PÁGINAS LEGALES (rediseño 2027)
   Aviso legal · Política de privacidad · Devoluciones · Reglamento
   Comunes: base-v4.css. Todo va acotado a .lg para no tocar otras páginas.
   ========================================================================== */

.lg .lg-titulo { max-width: 1100px; }
.lg .gc-cabecera { padding-bottom: clamp(48px, 6vw, 80px); }
/* Separación vertical entre bloques (sin row-gap, que se multiplicaría por las filas del título fijo) */
.lg .legal-section > * + * { margin-top: 14px !important; }
.lg .legal-section > h3 { margin-top: 26px !important; }

/* ---------- Neutraliza estilos antiguos de styles-v3.css (cajas, degradados, radios) ---------- */
.lg .legal-content { max-width: none; margin: 0; }
.lg .legal-section,
.lg .legal-data,
.lg .event-detail,
.lg .route-card,
.lg .pricing-tier,
.lg .important-dates,
.lg .schedule-day,
.lg .date-item,
.lg .rule-item,
.lg .warning-notice,
.lg .important-notice,
.lg .final-cta,
.lg .event-info,
.lg .route-options,
.lg .pricing-table,
.lg .pickup-schedule,
.lg .rules-grid {
    border-radius: 0;
    box-shadow: none;
    text-align: left;
    background: none;
    margin: 0;
    font-weight: inherit;
    color: inherit;
}
.lg .legal-data { padding: 0; border-left: 0; }
.lg .rule-item, .lg .pricing-tier, .lg .route-card, .lg .schedule-day, .lg .date-item { border-left: 0; }
.lg .legal-section h3 { margin-bottom: 0 !important; }
.lg .important-dates { padding: 0; border-left: 0; }
.lg .legal-section h2 { display: block; border-bottom: 0; padding-bottom: 0; }
.lg .legal-section h2 i { display: none; }
.lg .legal-section p { margin: 0; }
.lg .legal-section ul { margin: 0; padding-left: 0; list-style: none; }
.lg .legal-section li { margin: 0; }
.lg .route-stats { flex-direction: row; }
.lg .stat { font-size: 15px; font-weight: 400; color: inherit; }
.lg .period { opacity: 1; }
.lg .rule-icon i { color: inherit; width: auto; height: auto; }
.lg .important-notice p { color: #2a2a2a !important; }
.lg .warning-notice p { color: var(--ai-blanco) !important; }


/* ---------- Intro ---------- */
.lg-intro { max-width: 980px; margin-bottom: clamp(40px, 5vw, 64px); display: flex; flex-direction: column; gap: 14px; }
.lg-intro p { font-size: clamp(18px, 1.8vw, 22px); line-height: 1.55; color: #2a2a2a; font-weight: 500; }
.lg-intro strong { color: var(--ai-negro); }

/* ---------- Secciones: título a la izquierda, texto a la derecha ---------- */
.lg .legal-content { border-top: 3px solid var(--ai-negro); }
.lg .legal-section {
    display: grid;
    gap: 14px;
    padding: clamp(28px, 3.6vw, 44px) 0;
    border-bottom: 1px solid var(--ai-gris-linea);
    scroll-margin-top: 90px;
}
/* minmax(0, …) evita que una URL larga ensanche la columna */
.lg .legal-section { grid-template-columns: minmax(0, 1fr); }
.lg .legal-section a { overflow-wrap: anywhere; }
@media (min-width: 1024px) {
    .lg .legal-section { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: 56px; row-gap: 0; }
    .lg .legal-section > h2 + * { margin-top: 0 !important; }
    .lg .legal-section > * { grid-column: 2; min-width: 0; }
    .lg .legal-section > h2 { grid-column: 1; grid-row: 1 / span 60; align-self: start; position: sticky; top: 96px; }
}
.lg .legal-section > h2 {
    font-family: var(--ai-f-display) !important;
    font-weight: 800 !important;
    font-size: clamp(24px, 2.4vw, 32px) !important;
    line-height: 1.02 !important;
    text-transform: uppercase;
    color: var(--ai-negro);
    margin: 0 0 6px !important;
    overflow-wrap: normal;
    hyphens: manual;
}
.lg .legal-section h3 {
    margin-top: 14px !important;
    font-family: var(--ai-f-mono) !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ai-rojo);
}
.lg .legal-section h4 { font-family: var(--ai-f-display) !important; font-weight: 800 !important; font-size: 22px !important; line-height: 1.05 !important; text-transform: uppercase; }
.lg .legal-section p,
.lg .legal-section li { font-size: 16px; line-height: 1.65; color: var(--ai-gris-texto); }
.lg .legal-section strong { color: var(--ai-negro); }
.lg .legal-section a { color: var(--ai-rojo); text-decoration: underline; text-underline-offset: 3px; }
.lg .legal-section a:hover { color: var(--ai-rojo-oscuro); }
.lg .legal-section > ul,
.lg .legal-data ul,
.lg ul.legal-data { border-top: 1px solid var(--ai-gris-linea); }
.lg .legal-section > ul li,
.lg .legal-data li,
.lg ul.legal-data li { position: relative; padding: 10px 0 10px 22px; border-bottom: 1px solid var(--ai-gris-linea); }
.lg .legal-section > ul li::before,
.lg .legal-data li::before { content: ''; position: absolute; left: 0; top: 21px; width: 10px; height: 2px; background: var(--ai-rojo); }
.lg .legal-section > ul li i.fas { margin-right: 6px; }
.lg .legal-section li i.fa-check-circle { color: var(--ai-negro) !important; }
.lg .legal-section li i.fa-times-circle { color: var(--ai-rojo) !important; }
.lg .legal-data { display: flex; flex-direction: column; gap: 10px; }

/* ---------- Avisos ---------- */
.lg .important-notice { background: var(--ai-gris); border-left: 4px solid var(--ai-rojo); padding: 18px 22px; }
.lg .important-notice p { color: #2a2a2a; }
.lg .warning-notice { background: var(--ai-rojo); padding: 18px 22px; }
.lg .warning-notice p,
.lg .warning-notice strong { color: var(--ai-blanco); }

/* ---------- Reglamento: datos del evento ---------- */
.lg .event-info { display: grid; border-top: 3px solid var(--ai-negro); }
@media (min-width: 700px) { .lg .event-info { grid-template-columns: 1fr 1fr 2fr; } }
.lg .event-detail { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--ai-gris-linea); font-size: 16px; line-height: 1.4; }
@media (min-width: 700px) { .lg .event-detail + .event-detail { padding-left: 16px; border-left: 1px solid var(--ai-gris-linea); } }
.lg .event-detail strong { display: block; font-family: var(--ai-f-mono); font-weight: 400; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #555555; margin-bottom: 4px; }

.lg .route-options { display: grid; gap: 12px; }
@media (min-width: 560px) { .lg .route-options { grid-template-columns: 1fr 1fr; } }
.lg .route-card { border: 1px solid var(--ai-negro); padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.lg .route-card:first-child { background: var(--ai-negro); color: var(--ai-blanco); }
.lg .route-card:first-child h4 { color: var(--ai-blanco); }
.lg .route-stats { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 15px; }
.lg .route-card:first-child .route-stats { color: #cfcfcf; }
.lg .route-stats strong { font-family: var(--ai-f-display); font-weight: 800; font-size: 26px; color: inherit; }
.lg .route-card:first-child .route-stats strong { color: var(--ai-blanco); }

/* Tarifas */
.lg .pricing-table { display: grid; gap: 12px; }
@media (min-width: 560px) { .lg .pricing-table { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .lg .pricing-table { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lg .pricing-tier { background: var(--ai-blanco); border: 1px solid var(--ai-gris-linea); padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.lg .pricing-tier h4 { font-size: 17px !important; font-family: var(--ai-f-texto) !important; font-weight: 700 !important; text-transform: none; line-height: 1.3 !important; }
.lg .pricing-tier .price { font-family: var(--ai-f-display); font-weight: 800; font-size: 40px; line-height: 1; color: var(--ai-rojo); }
.lg .pricing-tier .period { font-size: 14px; line-height: 1.45; color: var(--ai-gris-texto); }
.lg .pricing-tier .note { font-size: 13px; color: var(--ai-rojo); font-weight: 600; }
.lg .pricing-tier.early { background: var(--ai-negro); border-color: var(--ai-negro); }
.lg .pricing-tier.early h4 { color: var(--ai-blanco); }
.lg .pricing-tier.early .period { color: #cfcfcf; }

/* Horarios de recogida y fechas */
.lg .pickup-schedule,
.lg .important-dates { display: grid; gap: 12px; }
@media (min-width: 560px) { .lg .pickup-schedule, .lg .important-dates { grid-template-columns: 1fr 1fr; } }
.lg .schedule-day,
.lg .date-item { border-top: 3px solid var(--ai-negro); padding-top: 12px; font-size: 16px; line-height: 1.5; }
.lg .schedule-day strong,
.lg .date-item strong { display: block; font-family: var(--ai-f-display); font-weight: 800; font-size: 22px; text-transform: uppercase; line-height: 1.1; margin-bottom: 4px; }
.lg .schedule-day div { font-family: var(--ai-f-display); font-weight: 600; font-size: 20px; }

/* Normas del participante */
.lg .rules-grid { display: grid; gap: 0 32px; border-top: 1px solid var(--ai-gris-linea); }
@media (min-width: 700px) { .lg .rules-grid { grid-template-columns: 1fr 1fr; } }
.lg .rule-item { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--ai-gris-linea); }
.lg .rule-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--ai-negro); color: var(--ai-blanco); font-size: 16px; }
.lg .rule-item p { margin: 0; font-size: 15px; }

/* Bloque final del reglamento */
.lg .final-cta {
    margin-top: clamp(40px, 5vw, 64px);
    background: var(--ai-rojo);
    color: var(--ai-blanco);
    padding: clamp(32px, 5vw, 64px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}
.lg .final-cta h2 {
    font-family: var(--ai-f-display) !important;
    font-weight: 800 !important;
    font-size: clamp(34px, 5vw, 72px) !important;
    line-height: .92 !important;
    text-transform: uppercase;
    color: var(--ai-blanco);
    margin: 0 !important;
}
.lg .final-cta p { font-size: clamp(17px, 1.6vw, 20px); color: var(--ai-blanco); }
.lg .final-cta .ai-btn--negro:hover { background: var(--ai-blanco); color: var(--ai-negro); border-color: var(--ai-blanco); }
